Class AttributeHome
java.lang.Object
fr.paris.lutece.portal.business.user.attribute.AttributeHome
AttributeHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcreate(IAttribute attribute) Insert an new attributestatic List<IAttribute>Load every attributesstatic IAttributefindByPrimaryKey(int nIdAttribute, Locale locale) Load attributestatic List<IAttribute>findCoreAttributes(Locale locale) Load every attributes that do not come from a pluginstatic List<IAttribute>findPluginAttributes(String strPluginName, Locale locale) Load every attributes associated to a pluginstatic voidremove(int nIdAttribute) Delete an attributestatic voidupdate(IAttribute attribute) Update an attributestatic voidupdateAttributeAnonymization(int nIdAttribute, boolean bAnonymize) Update the anonymization status of the attribute.
-
Method Details
-
findByPrimaryKey
Load attribute- Parameters:
nIdAttribute- ID Attributelocale- Locale- Returns:
- Attribute
-
create
Insert an new attribute- Parameters:
attribute- attribute- Returns:
- new PK
-
update
Update an attribute- Parameters:
attribute- the attribute
-
remove
public static void remove(int nIdAttribute) Delete an attribute- Parameters:
nIdAttribute- The id of the attribute
-
findAll
Load every attributes- Parameters:
locale- locale- Returns:
- list of attributes
-
findPluginAttributes
Load every attributes associated to a plugin- Parameters:
strPluginName- plugin namelocale- locale- Returns:
- list of attributes
-
findCoreAttributes
Load every attributes that do not come from a plugin- Parameters:
locale- locale- Returns:
- list of attributes
-
updateAttributeAnonymization
public static void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize) Update the anonymization status of the attribute.- Parameters:
nIdAttribute- Id of the attributebAnonymize- New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.
-