Class AttributeDAO
java.lang.Object
fr.paris.lutece.portal.business.user.attribute.AttributeDAO
- All Implemented Interfaces:
IAttributeDAO
AttributeDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdAttribute) Delete an attributeintinsert(IAttribute attribute) Insert a new attributeLoad attributeLoad every attributesselectCoreAttributes(Locale locale) Load every attributes that do not come from a pluginselectPluginAttributes(String strPluginName, Locale locale) Load every attributes from plugin namevoidstore(IAttribute attribute) Update an attributevoidupdateAttributeAnonymization(int nIdAttribute, boolean bAnonymize) Update the anonymization status of the attribute.
-
Constructor Details
-
AttributeDAO
public AttributeDAO()
-
-
Method Details
-
load
Load attribute- Specified by:
loadin interfaceIAttributeDAO- Parameters:
nIdAttribute- IDlocale- Locale- Returns:
- Attribute
-
insert
Insert a new attribute- Specified by:
insertin interfaceIAttributeDAO- Parameters:
attribute- the attribute- Returns:
- new PK
-
store
Update an attribute- Specified by:
storein interfaceIAttributeDAO- Parameters:
attribute- the attribute
-
delete
public void delete(int nIdAttribute) Delete an attribute- Specified by:
deletein interfaceIAttributeDAO- Parameters:
nIdAttribute- The Id of the attribute
-
selectAll
Load every attributes- Specified by:
selectAllin interfaceIAttributeDAO- Parameters:
locale- locale- Returns:
- list of attributes
-
selectPluginAttributes
Load every attributes from plugin name- Specified by:
selectPluginAttributesin interfaceIAttributeDAO- Parameters:
strPluginName- plugin namelocale- locale- Returns:
- list of attributes
-
selectCoreAttributes
Load every attributes that do not come from a plugin- Specified by:
selectCoreAttributesin interfaceIAttributeDAO- Parameters:
locale- locale- Returns:
- list of attributes
-
updateAttributeAnonymization
public void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize) Update the anonymization status of the attribute.- Specified by:
updateAttributeAnonymizationin interfaceIAttributeDAO- Parameters:
nIdAttribute- Id of the attributebAnonymize- New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.
-