fr.paris.lutece.plugins.files2docs.business
Class AttributeHome

java.lang.Object
  extended by fr.paris.lutece.plugins.files2docs.business.AttributeHome

public final class AttributeHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for Attribute objects


Method Summary
static void create(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates an instance of the attribute class
static Attribute findByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of the attribute object filtered by document attribute
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
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
static void removeByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the attribute whose mapping identifier is specified in parameter
static void update(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates the attribute which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 store
plugin - 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 identifier
plugin - 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 key
plugin - 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 store
plugin - 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 identifier
plugin - 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 identifier
plugin - The plugin
Returns:
An instance of Attribute


Copyright © 2012 Mairie de Paris. All Rights Reserved.