Class AttributeTypeHome


  • public final class AttributeTypeHome
    extends Object
    This class provides instances management methods (create, find, ...) for DocumentAttributeType objects
    • 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 code
        locale - The locale
        Returns:
        A list of attribute parameters list