fr.paris.lutece.portal.service.user.attribute
Class AttributeService

java.lang.Object
  extended by fr.paris.lutece.portal.service.user.attribute.AttributeService

public class AttributeService
extends java.lang.Object

AttributeService


Method Summary
 void createAttribute(IAttribute attribute)
          Create a new attribute and its attribute field
 java.util.List<IAttribute> getAllAttributesWithFields(java.util.Locale locale)
          Get all user attributes with its attribute fields
 java.util.List<IAttribute> getAllAttributesWithoutFields(java.util.Locale locale)
          Get all user attribute without its attribute fields
 IAttribute getAttributeWithFields(int nIdAttribute, java.util.Locale locale)
          Get the attribute with its attribute fields
 IAttribute getAttributeWithoutFields(int nIdAttribute, java.util.Locale locale)
          Get an attribute without its attribute fields
 java.util.List<IAttribute> getCoreAttributesWithFields(java.util.Locale locale)
          Get core user attributes with its attribute fields
 java.util.List<IAttribute> getCoreAttributesWithoutFields(java.util.Locale locale)
          Get core user attribute without its attribute fields
static AttributeService getInstance()
          Get the instance of AttributeService
 java.util.List<IAttribute> getPluginAttributesWithFields(java.lang.String strPluginName, java.util.Locale locale)
          Get plugin user attributes with its attribute fields
 java.util.List<IAttribute> getPluginAttributesWithoutFields(java.lang.String strPluginName, java.util.Locale locale)
          Get plugin user attribute without its attribute fields
 void removeAttribute(int nIdAttribute)
          Remove the attribute from a given attribute ID
 void setAttributeField(IAttribute attribute)
          Set the attribute field from a given IAttribute
 void setAttributeFields(java.util.List<IAttribute> listAttributes)
          Set the attribute fields from a given list of IAttribute
 void updateAttribute(IAttribute attribute)
          Update the attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AttributeService getInstance()
Get the instance of AttributeService

Returns:
an instance of AttributeService

getAttributeWithoutFields

public IAttribute getAttributeWithoutFields(int nIdAttribute,
                                            java.util.Locale locale)
Get an attribute without its attribute fields

Parameters:
nIdAttribute - the id attribute
locale - Locale
Returns:
a IAttribute

getAttributeWithFields

public IAttribute getAttributeWithFields(int nIdAttribute,
                                         java.util.Locale locale)
Get the attribute with its attribute fields

Parameters:
nIdAttribute - the id attribute
locale - the Locale
Returns:
a IAttribute

getAllAttributesWithoutFields

public java.util.List<IAttribute> getAllAttributesWithoutFields(java.util.Locale locale)
Get all user attribute without its attribute fields

Parameters:
locale - the Locale
Returns:
a list of IAttibute

getCoreAttributesWithoutFields

public java.util.List<IAttribute> getCoreAttributesWithoutFields(java.util.Locale locale)
Get core user attribute without its attribute fields

Parameters:
locale - the Locale
Returns:
a list of IAttibute

getPluginAttributesWithoutFields

public java.util.List<IAttribute> getPluginAttributesWithoutFields(java.lang.String strPluginName,
                                                                   java.util.Locale locale)
Get plugin user attribute without its attribute fields

Parameters:
strPluginName - the plugin name
locale - the Locale
Returns:
a list of IAttibute

getAllAttributesWithFields

public java.util.List<IAttribute> getAllAttributesWithFields(java.util.Locale locale)
Get all user attributes with its attribute fields

Parameters:
locale - the Locale
Returns:
a list of IAttribute

getCoreAttributesWithFields

public java.util.List<IAttribute> getCoreAttributesWithFields(java.util.Locale locale)
Get core user attributes with its attribute fields

Parameters:
locale - the Locale
Returns:
a list of IAttribute

getPluginAttributesWithFields

public java.util.List<IAttribute> getPluginAttributesWithFields(java.lang.String strPluginName,
                                                                java.util.Locale locale)
Get plugin user attributes with its attribute fields

Parameters:
strPluginName - the plugin name
locale - the Locale
Returns:
a list of IAttribute

setAttributeFields

public void setAttributeFields(java.util.List<IAttribute> listAttributes)
Set the attribute fields from a given list of IAttribute

Parameters:
listAttributes - the list of IAttribute

setAttributeField

public void setAttributeField(IAttribute attribute)
Set the attribute field from a given IAttribute

Parameters:
attribute - the IAttribute

createAttribute

public void createAttribute(IAttribute attribute)
Create a new attribute and its attribute field

Parameters:
attribute - the IAttribute to create

updateAttribute

public void updateAttribute(IAttribute attribute)
Update the attribute

Parameters:
attribute - the IAttribute to update

removeAttribute

public void removeAttribute(int nIdAttribute)
Remove the attribute from a given attribute ID

Parameters:
nIdAttribute - the ID attribute


Copyright © 2011 Mairie de Paris. All Rights Reserved.