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 IAttributeDAO
nIdAttribute
- IDlocale
- Localeplugin
- The pluginpublic int insert(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IAttributeDAO
attribute
- the attributeplugin
- The pluginpublic void store(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IAttributeDAO
attribute
- the attributeplugin
- The pluginpublic void delete(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IAttributeDAO
nIdAttribute
- the ID of the attributeplugin
- The pluginpublic List<IAttribute> selectAll(Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface IAttributeDAO
locale
- localeplugin
- The pluginpublic List<IAttribute> selectPluginAttributes(String strPluginName, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPluginAttributes
in interface IAttributeDAO
strPluginName
- plugin namelocale
- localeplugin
- The pluginpublic List<IAttribute> selectMyLuteceAttributes(Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMyLuteceAttributes
in interface IAttributeDAO
locale
- localeplugin
- The pluginpublic void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateAttributeAnonymization
in interface IAttributeDAO
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 pluginpublic Map<String,Boolean> selectAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAnonymizationStatusUserStaticField
in interface IAttributeDAO
plugin
- The pluginpublic void addAnonymizationStatusUserField(String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addAnonymizationStatusUserField
in interface IAttributeDAO
strFieldName
- 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 IAttributeDAO
strFieldName
- Name of the fieldplugin
- The pluginpublic void updateAnonymizationStatusUserStaticField(String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateAnonymizationStatusUserStaticField
in interface IAttributeDAO
strFieldName
- Name of the field to updatebAnonymizeFiled
- True if the field should be anonymize, false
otherwiseplugin
- The pluginCopyright © 2018 City of Paris. All rights reserved.