|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.mylutece.business.attribute.AttributeHome
public class AttributeHome
AttributeHome
Constructor Summary | |
---|---|
AttributeHome()
|
Method Summary | |
---|---|
static void |
addAnonymizationStatusUserField(java.lang.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 java.util.List<IAttribute> |
findAll(java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes |
static IAttribute |
findByPrimaryKey(int nIdAttribute,
java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load attribute |
static java.util.List<IAttribute> |
findMyLuteceAttributes(java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes that do not come from a plugin |
static java.util.List<IAttribute> |
findPluginAttributes(java.lang.String strPluginName,
java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load every attributes associated to a plugin |
static java.util.Map<java.lang.String,java.lang.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(java.lang.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(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeHome()
Method Detail |
---|
public static IAttribute findByPrimaryKey(int nIdAttribute, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAttribute
- ID Attributelocale
- Locale
public static int create(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
attribute
- attribute
public static void update(IAttribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
attribute
- the attributepublic static void remove(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAttribute
- The id of the attributepublic static java.util.List<IAttribute> findAll(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
locale
- locale
public static java.util.List<IAttribute> findPluginAttributes(java.lang.String strPluginName, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strPluginName
- plugin namelocale
- locale
public static java.util.List<IAttribute> findMyLuteceAttributes(java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
locale
- locale
public 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 java.util.Map<java.lang.String,java.lang.Boolean> getAnonymizationStatusUserStaticField(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The plugin
public static void addAnonymizationStatusUserField(java.lang.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(java.lang.String strFieldName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strFieldName
- Name of the fieldplugin
- The pluginpublic static void updateAnonymizationStatusUserStaticField(java.lang.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 plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |