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

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

public final class DocumentAttributeHome
extends java.lang.Object

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


Method Summary
static DocumentAttribute create(DocumentAttribute documentAttribute)
          Creation of an instance of documentAttribute
static DocumentAttribute findByPrimaryKey(int nKey)
          Returns an instance of a documentAttribute whose identifier is specified in parameter
static java.util.Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId, java.util.Locale locale)
           
static java.lang.String getAttributeParameterValue(int nAttributeId, java.lang.String strParameterName)
           
static void remove(int nAttributeId)
          Remove the DocumentAttribute whose identifier is specified in parameter
static void setDocumentTypeAttributes(DocumentType documentType)
          Returns a collection of documentAttributes objects
static DocumentAttribute update(DocumentAttribute documentAttribute)
          Update of the documentAttribute 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 DocumentAttribute create(DocumentAttribute documentAttribute)
Creation of an instance of documentAttribute

Parameters:
documentAttribute - The instance of the documentAttribute which contains the informations to store
Returns:
The instance of documentAttribute which has been created with its primary key.

update

public static DocumentAttribute update(DocumentAttribute documentAttribute)
Update of the documentAttribute which is specified in parameter

Parameters:
documentAttribute - The instance of the documentAttribute which contains the data to store
Returns:
The instance of the documentAttribute which has been updated

remove

public static void remove(int nAttributeId)
Remove the DocumentAttribute whose identifier is specified in parameter

Parameters:
nAttributeId -

findByPrimaryKey

public static DocumentAttribute findByPrimaryKey(int nKey)
Returns an instance of a documentAttribute whose identifier is specified in parameter

Parameters:
nKey - The Primary key of the documentAttribute
Returns:
An instance of documentAttribute

setDocumentTypeAttributes

public static void setDocumentTypeAttributes(DocumentType documentType)
Returns a collection of documentAttributes objects

Parameters:
documentType -

getAttributeParametersValues

public static java.util.Collection<AttributeTypeParameter> getAttributeParametersValues(int nAttributeId,
                                                                                        java.util.Locale locale)
Parameters:
nAttributeId -
locale -
Returns:

getAttributeParameterValue

public static java.lang.String getAttributeParameterValue(int nAttributeId,
                                                          java.lang.String strParameterName)
Parameters:
nAttributeId -
strParameterName -
Returns:


Copyright © 2007 Mairie de Paris. All Rights Reserved.