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

@ApplicationScoped public class AttributeDAO extends Object implements IAttributeDAO
AttributeDAO
  • Constructor Details

    • AttributeDAO

      public AttributeDAO()
  • Method Details

    • 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.