fr.paris.lutece.plugins.mylutece.business.attribute
Interface IAttributeDAO

All Known Implementing Classes:
AttributeDAO

public interface IAttributeDAO

IAttributeDAO


Method Summary
 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.
 

Method Detail

load

IAttribute load(int nIdAttribute,
                Locale locale,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute

Parameters:
nIdAttribute - ID
locale - Locale
plugin - The plugin
Returns:
Attribute

insert

int insert(IAttribute attribute,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new attribute

Parameters:
attribute - the attribute
plugin - The plugin
Returns:
new PK

store

void store(IAttribute attribute,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an attribute

Parameters:
attribute - the attribute
plugin - The plugin

delete

void delete(int nIdAttribute,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an attribute

Parameters:
nIdAttribute - the ID of the attribute
plugin - The plugin

selectAll

List<IAttribute> selectAll(Locale locale,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes

Parameters:
locale - locale
plugin - The plugin
Returns:
list of attributes

selectPluginAttributes

List<IAttribute> selectPluginAttributes(String strPluginName,
                                        Locale locale,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes from plugin name

Parameters:
strPluginName - plugin name
locale - locale
plugin - The plugin
Returns:
list of attributes

selectMyLuteceAttributes

List<IAttribute> selectMyLuteceAttributes(Locale locale,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes that do not come from a plugin

Parameters:
locale - locale
plugin - 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 attribute
bAnonymize - New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.
plugin - The plugin

selectAnonymizationStatusUserStaticField

Map<String,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(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 field
bAnonymizeFiled - True if the field should be anonymize, false otherwise
plugin - The plugin

removeAnonymizationStatusUserField

void removeAnonymizationStatusUserField(String strFieldName,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an anonymization status to a user field.

Parameters:
strFieldName - Name of the field
plugin - The plugin

updateAnonymizationStatusUserStaticField

void updateAnonymizationStatusUserStaticField(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 update
bAnonymizeFiled - True if the field should be anonymize, false otherwise
plugin - The plugin


Copyright © 2014 Mairie de Paris. All Rights Reserved.