public final class AttributeHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
create(IAttribute attribute)
Insert an new attribute
|
static List<IAttribute> |
findAll(Locale locale)
Load every attributes
|
static IAttribute |
findByPrimaryKey(int nIdAttribute,
Locale locale)
Load attribute
|
static List<IAttribute> |
findCoreAttributes(Locale locale)
Load every attributes that do not come from a plugin
|
static List<IAttribute> |
findPluginAttributes(String strPluginName,
Locale locale)
Load every attributes associated to a plugin
|
static void |
remove(int nIdAttribute)
Delete an attribute
|
static void |
update(IAttribute attribute)
Update an attribute
|
static void |
updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize)
Update the anonymization status of the attribute.
|
public static IAttribute findByPrimaryKey(int nIdAttribute, Locale locale)
nIdAttribute - ID Attributelocale - Localepublic static int create(IAttribute attribute)
attribute - attributepublic static void update(IAttribute attribute)
attribute - the attributepublic static void remove(int nIdAttribute)
nIdAttribute - The id of the attributepublic static List<IAttribute> findAll(Locale locale)
locale - localepublic static List<IAttribute> findPluginAttributes(String strPluginName, Locale locale)
strPluginName - plugin namelocale - localepublic static List<IAttribute> findCoreAttributes(Locale locale)
locale - localepublic static void updateAttributeAnonymization(int nIdAttribute,
boolean bAnonymize)
nIdAttribute - Id of the attributebAnonymize - New value of the anonymization status. True means the attribute should be anonymize, false means it doesn't.Copyright © 2020 City of Paris. All rights reserved.