Class AttributeTypeHome
- java.lang.Object
-
- fr.paris.lutece.plugins.document.business.attributes.AttributeTypeHome
-
public final class AttributeTypeHome extends Object
This class provides instances management methods (create, find, ...) for DocumentAttributeType objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.ReferenceListgetAttributeManagersList()Gets 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 Detail
-
create
public static AttributeType create(AttributeType documentAttributeType)
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
public static AttributeType update(AttributeType documentAttributeType)
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
public static void remove(AttributeType documentAttributeType)
Remove the DocumentAttributeType whose identifier is specified in parameter- Parameters:
documentAttributeType- The DocumentAttributeType object to remove
-
findByPrimaryKey
public static AttributeType findByPrimaryKey(int nKey)
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
public static Collection<AttributeType> findAll()
Returns a collection of documentAttributeTypes objects- Returns:
- A collection of documentAttributeTypes
-
getAttributeTypesList
public static fr.paris.lutece.util.ReferenceList getAttributeTypesList(Locale locale)
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
-
-