fr.paris.lutece.plugins.document.business.attributes
Class AttributeTypeHome

java.lang.Object
  extended by fr.paris.lutece.plugins.document.business.attributes.AttributeTypeHome

public final class AttributeTypeHome
extends java.lang.Object

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


Method Summary
static AttributeType create(AttributeType documentAttributeType)
          Creation of an instance of documentAttributeType
static java.util.Collection<AttributeType> findAll()
          Returns a collection of documentAttributeTypes objects
static AttributeType findByPrimaryKey(int nKey)
          Returns an instance of a documentAttributeType whose identifier is specified in parameter
static fr.paris.lutece.util.ReferenceList getAttributeManagersList()
          Gets managers list
static java.util.List<AttributeTypeParameter> getAttributeTypeParameterList(java.lang.String strAttributeTypeCode, java.util.Locale locale)
          Get Attribute type parameters list
static fr.paris.lutece.util.ReferenceList getAttributeTypesList(java.util.Locale locale)
          Returns a ReferenceList of AttributeTypes objects
static void remove(AttributeType documentAttributeType)
          Remove the DocumentAttributeType whose identifier is specified in parameter
static AttributeType update(AttributeType documentAttributeType)
          Update of the documentAttributeType 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 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 java.util.Collection<AttributeType> findAll()
Returns a collection of documentAttributeTypes objects

Returns:
A collection of documentAttributeTypes

getAttributeTypesList

public static fr.paris.lutece.util.ReferenceList getAttributeTypesList(java.util.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 java.util.List<AttributeTypeParameter> getAttributeTypeParameterList(java.lang.String strAttributeTypeCode,
                                                                                   java.util.Locale locale)
Get Attribute type parameters list

Parameters:
strAttributeTypeCode - The attribute type code
locale - The locale
Returns:
A list of attribute parameters list


Copyright © 2009 Mairie de Paris. All Rights Reserved.