Interface IAttributeDAO
-
- All Known Implementing Classes:
AttributeDAO
public interface IAttributeDAOIAttributeDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAnonymizationStatusUserField(java.lang.String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)Add an anonymization status to a user field.voiddelete(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete an attributeintinsert(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new attributeIAttributeload(int nIdAttribute, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load attributevoidremoveAnonymizationStatusUserField(java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove an anonymization status to a user field.java.util.List<IAttribute>selectAll(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load every attributesjava.util.Map<java.lang.String,java.lang.Boolean>selectAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the anonymization status of a user field.java.util.List<IAttribute>selectMyLuteceAttributes(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load every attributes that do not come from a pluginjava.util.List<IAttribute>selectPluginAttributes(java.lang.String strPluginName, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load every attributes from plugin namevoidstore(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update an attributevoidupdateAnonymizationStatusUserStaticField(java.lang.String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the anonymization status of a user field.voidupdateAttributeAnonymization(int nIdAttribute, boolean bAnonymize, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the anonymization status of the attribute.
-
-
-
Method Detail
-
load
IAttribute load(int nIdAttribute, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute- Parameters:
nIdAttribute- IDlocale- Localeplugin- The plugin- Returns:
- Attribute
-
insert
int insert(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new attribute- Parameters:
attribute- the attributeplugin- The plugin- Returns:
- new PK
-
store
void store(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an attribute- Parameters:
attribute- the attributeplugin- The plugin
-
delete
void delete(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete an attribute- Parameters:
nIdAttribute- the ID of the attributeplugin- The plugin
-
selectAll
java.util.List<IAttribute> selectAll(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes- Parameters:
locale- localeplugin- The plugin- Returns:
- list of attributes
-
selectPluginAttributes
java.util.List<IAttribute> selectPluginAttributes(java.lang.String strPluginName, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes from plugin name- Parameters:
strPluginName- plugin namelocale- localeplugin- The plugin- Returns:
- list of attributes
-
selectMyLuteceAttributes
java.util.List<IAttribute> selectMyLuteceAttributes(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes that do not come from a plugin- Parameters:
locale- localeplugin- The plugin- Returns:
- list of attributes
-
updateAttributeAnonymization
void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize, fr.paris.lutece.portal.service.plugin.Plugin plugin)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.plugin- The plugin
-
selectAnonymizationStatusUserStaticField
java.util.Map<java.lang.String,java.lang.Boolean> selectAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the anonymization status of a user field.- Parameters:
plugin- The plugin- Returns:
- A map containing the associations of user field name and a boolean describing whether the field should be anonymized.
-
addAnonymizationStatusUserField
void addAnonymizationStatusUserField(java.lang.String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)Add an anonymization status to a user field.- Parameters:
strFieldName- Name of the fieldbAnonymizeFiled- True if the field should be anonymize, false otherwiseplugin- The plugin
-
removeAnonymizationStatusUserField
void removeAnonymizationStatusUserField(java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove an anonymization status to a user field.- Parameters:
strFieldName- Name of the fieldplugin- The plugin
-
updateAnonymizationStatusUserStaticField
void updateAnonymizationStatusUserStaticField(java.lang.String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the anonymization status of a user field.- Parameters:
strFieldName- Name of the field to updatebAnonymizeFiled- True if the field should be anonymize, false otherwiseplugin- The plugin
-
-