fr.paris.lutece.portal.business.user.attribute
Class AttributeDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.user.attribute.AttributeDAO
All Implemented Interfaces:
IAttributeDAO

public class AttributeDAO
extends Object
implements IAttributeDAO

AttributeDAO


Constructor Summary
AttributeDAO()
           
 
Method Summary
 void delete(int nIdAttribute)
          Delete an attribute
 int insert(IAttribute attribute)
          Insert a new attribute
 IAttribute load(int nIdAttribute, Locale locale)
          Load attribute
 List<IAttribute> selectAll(Locale locale)
          Load every attributes
 List<IAttribute> selectCoreAttributes(Locale locale)
          Load every attributes that do not come from a plugin
 List<IAttribute> selectPluginAttributes(String strPluginName, Locale locale)
          Load every attributes from plugin name
 void store(IAttribute attribute)
          Update an attribute
 void updateAttributeAnonymization(int nIdAttribute, boolean bAnonymize)
          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

AttributeDAO

public AttributeDAO()
Method Detail

load

public IAttribute load(int nIdAttribute,
                       Locale locale)
Load attribute

Specified by:
load in interface IAttributeDAO
Parameters:
nIdAttribute - ID
locale - Locale
Returns:
Attribute

insert

public int insert(IAttribute attribute)
Insert a new attribute

Specified by:
insert in interface IAttributeDAO
Parameters:
attribute - the attribute
Returns:
new PK

store

public void store(IAttribute attribute)
Update an attribute

Specified by:
store in interface IAttributeDAO
Parameters:
attribute - the attribute

delete

public void delete(int nIdAttribute)
Delete an attribute

Specified by:
delete in interface IAttributeDAO
Parameters:
nIdAttribute - The Id of the attribute

selectAll

public List<IAttribute> selectAll(Locale locale)
Load every attributes

Specified by:
selectAll in interface IAttributeDAO
Parameters:
locale - locale
Returns:
list of attributes

selectPluginAttributes

public List<IAttribute> selectPluginAttributes(String strPluginName,
                                               Locale locale)
Load every attributes from plugin name

Specified by:
selectPluginAttributes in interface IAttributeDAO
Parameters:
strPluginName - plugin name
locale - locale
Returns:
list of attributes

selectCoreAttributes

public List<IAttribute> selectCoreAttributes(Locale locale)
Load every attributes that do not come from a plugin

Specified by:
selectCoreAttributes in interface IAttributeDAO
Parameters:
locale - locale
Returns:
list of attributes

updateAttributeAnonymization

public void updateAttributeAnonymization(int nIdAttribute,
                                         boolean bAnonymize)
Update the anonymization status of the attribute.

Specified by:
updateAttributeAnonymization in interface IAttributeDAO
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.


Copyright © 2014 Mairie de Paris. All Rights Reserved.