public class AttributeDAO extends Object implements IAttributeDAO
| Constructor and Description |
|---|
AttributeDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnonymizationStatusUserField(String strFieldName,
boolean bAnonymizeFiled,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an anonymization status to a user field.
|
void |
delete(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an attribute
|
int |
insert(IAttribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new attribute
|
IAttribute |
load(int nIdAttribute,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute
|
void |
removeAnonymizationStatusUserField(String strFieldName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an anonymization status to a user field.
|
List<IAttribute> |
selectAll(Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes
|
Map<String,Boolean> |
selectAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the anonymization status of a user field.
|
List<IAttribute> |
selectMyLuteceAttributes(Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes that do not come from a plugin
|
List<IAttribute> |
selectPluginAttributes(String strPluginName,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes from plugin name
|
void |
store(IAttribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an attribute
|
void |
updateAnonymizationStatusUserStaticField(String strFieldName,
boolean bAnonymizeFiled,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the anonymization status of a user field.
|
void |
updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the anonymization status of the attribute.
|
public IAttribute load(int nIdAttribute, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAttributeDAOnIdAttribute - IDlocale - Localeplugin - The pluginpublic int insert(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAttributeDAOattribute - the attributeplugin - The pluginpublic void store(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAttributeDAOattribute - the attributeplugin - The pluginpublic void delete(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAttributeDAOnIdAttribute - the ID of the attributeplugin - The pluginpublic List<IAttribute> selectAll(Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface IAttributeDAOlocale - localeplugin - The pluginpublic List<IAttribute> selectPluginAttributes(String strPluginName, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginAttributes in interface IAttributeDAOstrPluginName - plugin namelocale - localeplugin - The pluginpublic List<IAttribute> selectMyLuteceAttributes(Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMyLuteceAttributes in interface IAttributeDAOlocale - localeplugin - The pluginpublic void updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateAttributeAnonymization in interface IAttributeDAOnIdAttribute - Id of the attributebAnonymize - New value of the anonymization status. True means the
attribute should be anonymize, false means it doesn't.plugin - The pluginpublic Map<String,Boolean> selectAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAnonymizationStatusUserStaticField in interface IAttributeDAOplugin - The pluginpublic void addAnonymizationStatusUserField(String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addAnonymizationStatusUserField in interface IAttributeDAOstrFieldName - Name of the fieldbAnonymizeFiled - True if the field should be anonymize, false
otherwiseplugin - The pluginpublic void removeAnonymizationStatusUserField(String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeAnonymizationStatusUserField in interface IAttributeDAOstrFieldName - Name of the fieldplugin - The pluginpublic void updateAnonymizationStatusUserStaticField(String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateAnonymizationStatusUserStaticField in interface IAttributeDAOstrFieldName - Name of the field to updatebAnonymizeFiled - True if the field should be anonymize, false
otherwiseplugin - The pluginCopyright © 2018 City of Paris. All rights reserved.