Class AttributeTypeHome
java.lang.Object
fr.paris.lutece.plugins.document.business.attributes.AttributeTypeHome
This class provides instances management methods (create, find, ...) for DocumentAttributeType objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeTypecreate(AttributeType documentAttributeType) Creation of an instance of documentAttributeTypestatic Collection<AttributeType>findAll()Returns a collection of documentAttributeTypes objectsstatic AttributeTypefindByPrimaryKey(int nKey) Returns an instance of a documentAttributeType whose identifier is specified in parameterstatic fr.paris.lutece.util.ReferenceListGets managers liststatic List<AttributeTypeParameter>getAttributeTypeParameterList(String strAttributeTypeCode, Locale locale) Get Attribute type parameters liststatic fr.paris.lutece.util.ReferenceListgetAttributeTypesList(Locale locale) Returns a ReferenceList of AttributeTypes objectsstatic voidremove(AttributeType documentAttributeType) Remove the DocumentAttributeType whose identifier is specified in parameterstatic AttributeTypeupdate(AttributeType documentAttributeType) Update of the documentAttributeType which is specified in parameter
-
Method Details
-
create
Creation of an instance of documentAttributeType- Parameters:
documentAttributeType- The instance of the documentAttributeType which contains the informations to store- Returns:
- The instance of documentAttributeType which has been created with its primary key.
-
update
Update of the documentAttributeType which is specified in parameter- Parameters:
documentAttributeType- The instance of the documentAttributeType which contains the data to store- Returns:
- The instance of the documentAttributeType which has been updated
-
remove
Remove the DocumentAttributeType whose identifier is specified in parameter- Parameters:
documentAttributeType- The DocumentAttributeType object to remove
-
findByPrimaryKey
Returns an instance of a documentAttributeType whose identifier is specified in parameter- Parameters:
nKey- The Primary key of the documentAttributeType- Returns:
- An instance of documentAttributeType
-
findAll
Returns a collection of documentAttributeTypes objects- Returns:
- A collection of documentAttributeTypes
-
getAttributeTypesList
Returns a ReferenceList of AttributeTypes objects- Parameters:
locale- The locale- Returns:
- A ReferenceList of AttributeTypes
-
getAttributeManagersList
public static fr.paris.lutece.util.ReferenceList getAttributeManagersList()Gets managers list- Returns:
- A list of attribute managers
-
getAttributeTypeParameterList
public static List<AttributeTypeParameter> getAttributeTypeParameterList(String strAttributeTypeCode, Locale locale) Get Attribute type parameters list- Parameters:
strAttributeTypeCode- The attribute type codelocale- The locale- Returns:
- A list of attribute parameters list
-