fr.paris.lutece.plugins.mylutece.business.attribute
public class AttributeHome extends Object
| Constructor and Description |
|---|
AttributeHome() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAnonymizationStatusUserField(String strFieldName,
boolean bAnonymizeFiled,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an anonymization status to a user field.
|
static int |
create(IAttribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert an new attribute
|
static List<IAttribute> |
findAll(Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes
|
static IAttribute |
findByPrimaryKey(int nIdAttribute,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute
|
static List<IAttribute> |
findMyLuteceAttributes(Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes that do not come from a plugin
|
static List<IAttribute> |
findPluginAttributes(String strPluginName,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes associated to a plugin
|
static Map<String,Boolean> |
getAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a map of anonymization status of a user field.
|
static void |
remove(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an attribute
|
static void |
removeAnonymizationStatusUserField(String strFieldName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an anonymization status of a user field.
|
static void |
update(IAttribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an attribute
|
static void |
updateAnonymizationStatusUserStaticField(String strFieldName,
boolean bAnonymizeFiled,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the anonymization status of a user field.
|
static void |
updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the anonymization status of the attribute.
|
public static IAttribute findByPrimaryKey(int nIdAttribute, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAttribute - ID Attributelocale - Localeplugin - The pluginpublic static int create(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
attribute - attributeplugin - The pluginpublic static void update(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
attribute - the attributeplugin - The pluginpublic static void remove(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAttribute - The id of the attributeplugin - The pluginpublic static List<IAttribute> findAll(Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
locale - localeplugin - The pluginpublic static List<IAttribute> findPluginAttributes(String strPluginName, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPluginName - plugin namelocale - localeplugin - The pluginpublic static List<IAttribute> findMyLuteceAttributes(Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
locale - localeplugin - The pluginpublic static void updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 static Map<String,Boolean> getAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The pluginpublic static void addAnonymizationStatusUserField(String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strFieldName - Name of the fieldbAnonymizeFiled - True if the field should be anonymize, false
otherwiseplugin - The pluginpublic static void removeAnonymizationStatusUserField(String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strFieldName - Name of the fieldplugin - The pluginpublic static void updateAnonymizationStatusUserStaticField(String strFieldName, boolean bAnonymizeFiled, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strFieldName - Name of the field to updatebAnonymizeFiled - True if the field should be anonymize, false
otherwiseplugin - The pluginCopyright © 2014 Mairie de Paris. All rights reserved.