Class AttributeHome
java.lang.Object
fr.paris.lutece.plugins.files2docs.business.AttributeHome
This class provides instances management methods (create, find, ...) for Attribute objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreates an instance of the attribute classstatic AttributefindByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the attribute object filtered by document attributestatic Collection<Attribute>findByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the attribute objects filtered by mappingstatic AttributefindByPrimaryKey(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a attribute whose identifier is specified in parameterstatic voidremoveByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Removes the attribute whose mapping identifier is specified in parameterstatic voidUpdates the attribute which is specified in parameter
-
Method Details
-
create
Creates an instance of the attribute class- Parameters:
attribute- The instance of the Attribute which contains the informations to storeplugin- The plugin
-
findByMapping
public static Collection<Attribute> findByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the attribute objects filtered by mapping- Parameters:
nMappingId- The mapping identifierplugin- The plugin- Returns:
- A collection which contains the data of the attribute objects filtered by mapping
-
findByPrimaryKey
public static Attribute findByPrimaryKey(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of a attribute whose identifier is specified in parameter- Parameters:
nAttributeId- The attribute primary keyplugin- The plugin- Returns:
- An instance of Attribute
-
update
Updates the attribute which is specified in parameter- Parameters:
attribute- The instance of the Attribute which contains the data to storeplugin- The plugin
-
removeByMapping
public static void removeByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Removes the attribute whose mapping identifier is specified in parameter- Parameters:
nMappingId- The mapping identifierplugin- The plugin
-
findByDocumentAttribute
public static Attribute findByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data of the attribute object filtered by document attribute- Parameters:
nDocumentAttributeId- The document attribute identifierplugin- The plugin- Returns:
- An instance of Attribute
-