Class AttributeHome
- java.lang.Object
-
- fr.paris.lutece.plugins.files2docs.business.AttributeHome
-
public final class AttributeHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Attribute objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreate(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creates 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 java.util.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 voidupdate(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Updates the attribute which is specified in parameter
-
-
-
Method Detail
-
create
public static void create(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 java.util.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
public static void update(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-