Class AttributeDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.user.attribute.AttributeDAO
-
- All Implemented Interfaces:
IAttributeDAO
public class AttributeDAO extends java.lang.Object implements IAttributeDAO
AttributeDAO
-
-
Constructor Summary
Constructors Constructor Description AttributeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdAttribute)Delete an attributeintinsert(IAttribute attribute)Insert a new attributeIAttributeload(int nIdAttribute, java.util.Locale locale)Load attributejava.util.List<IAttribute>selectAll(java.util.Locale locale)Load every attributesjava.util.List<IAttribute>selectCoreAttributes(java.util.Locale locale)Load every attributes that do not come from a pluginjava.util.List<IAttribute>selectPluginAttributes(java.lang.String strPluginName, java.util.Locale locale)Load every attributes from plugin namevoidstore(IAttribute attribute)Update an attributevoidupdateAttributeAnonymization(int nIdAttribute, boolean bAnonymize)Update the anonymization status of the attribute.
-
-
-
Method Detail
-
load
public IAttribute load(int nIdAttribute, java.util.Locale locale)
Load attribute- Specified by:
loadin interfaceIAttributeDAO- Parameters:
nIdAttribute- IDlocale- Locale- Returns:
- Attribute
-
insert
public int insert(IAttribute attribute)
Insert a new attribute- Specified by:
insertin interfaceIAttributeDAO- Parameters:
attribute- the attribute- Returns:
- new PK
-
store
public void store(IAttribute attribute)
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
public java.util.List<IAttribute> selectAll(java.util.Locale locale)
Load every attributes- Specified by:
selectAllin interfaceIAttributeDAO- Parameters:
locale- locale- Returns:
- list of attributes
-
selectPluginAttributes
public java.util.List<IAttribute> selectPluginAttributes(java.lang.String strPluginName, java.util.Locale locale)
Load every attributes from plugin name- Specified by:
selectPluginAttributesin interfaceIAttributeDAO- Parameters:
strPluginName- plugin namelocale- locale- Returns:
- list of attributes
-
selectCoreAttributes
public java.util.List<IAttribute> selectCoreAttributes(java.util.Locale locale)
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.
-
-