Class IdentityAttributeDAO

java.lang.Object
fr.paris.lutece.plugins.identitystore.business.identity.IdentityAttributeDAO
All Implemented Interfaces:
IIdentityAttributeDAO

public final class IdentityAttributeDAO extends Object implements IIdentityAttributeDAO
This class provides Data Access methods for IdentityAttribute objects
  • Field Summary

    Fields inherited from interface fr.paris.lutece.plugins.identitystore.business.identity.IIdentityAttributeDAO

    BEAN_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    add an historical change attribute entry
    void
    delete(int nIdentityId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteAllAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete all attributes matching the provided identityId
    fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange
    getAttributeChange(fr.paris.lutece.util.sql.DAOUtil daoUtil)
     
    List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange>
    getAttributeChangeHistory(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    return list of attribute change history for an identity attribute from the newest to the latest change
    List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange>
    getAttributeChangeHistory(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    return list of attribute change history for an identity attribute from the newest to the latest change
    getIdentityAttribute(fr.paris.lutece.util.sql.DAOUtil daoUtil)
     
    void
    insert(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    selectAllAttributesByIdentityList(List<Identity> listIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of a selection of attributes for a list of identity
    selectAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the identityAttribute objects and returns them as a list
    void
    store(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IdentityAttributeDAO

      public IdentityAttributeDAO()
  • Method Details

    • insert

      public void insert(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IIdentityAttributeDAO
      Parameters:
      identityAttribute - instance of the IdentityAttribute object to insert
      plugin - the Plugin
    • delete

      public void delete(int nIdentityId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IIdentityAttributeDAO
      Parameters:
      nIdentityId - The identity ID
      nAttributeId - The Attribute ID
      plugin - the Plugin
    • store

      public void store(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IIdentityAttributeDAO
      Parameters:
      identityAttribute - the reference of the IdentityAttribute
      plugin - the Plugin
    • selectAttributes

      public Map<String,IdentityAttribute> selectAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the identityAttribute objects and returns them as a list
      Specified by:
      selectAttributes in interface IIdentityAttributeDAO
      Parameters:
      nIdentityId - The Identity ID
      plugin - the Plugin
      Returns:
      The map which contains the data of all the identityAttribute objects
    • selectAllAttributesByIdentityList

      public List<IdentityAttribute> selectAllAttributesByIdentityList(List<Identity> listIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of a selection of attributes for a list of identity
      Specified by:
      selectAllAttributesByIdentityList in interface IIdentityAttributeDAO
      Parameters:
      listIdentity - The list of identity
      plugin - the Plugin
      Returns:
      the list which contains the data of the identityAttribute objects
    • deleteAllAttributes

      public void deleteAllAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IIdentityAttributeDAO
      Delete all attributes matching the provided identityId
      Specified by:
      deleteAllAttributes in interface IIdentityAttributeDAO
      Parameters:
      nIdentityId - The identity ID
      plugin - the Plugin
    • addAttributeChangeHistory

      public void addAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Description copied from interface: IIdentityAttributeDAO
      add an historical change attribute entry
      Specified by:
      addAttributeChangeHistory in interface IIdentityAttributeDAO
      Parameters:
      attributeChange - attribute change desc object
      plugin - the Plugin
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getAttributeChangeHistory

      public List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Description copied from interface: IIdentityAttributeDAO
      return list of attribute change history for an identity attribute from the newest to the latest change
      Specified by:
      getAttributeChangeHistory in interface IIdentityAttributeDAO
      Parameters:
      nIdentityId - identityId
      plugin - plugin
      Returns:
      list of attribute change history for an identity attribute
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getAttributeChangeHistory

      public List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      Description copied from interface: IIdentityAttributeDAO
      return list of attribute change history for an identity attribute from the newest to the latest change
      Specified by:
      getAttributeChangeHistory in interface IIdentityAttributeDAO
      Parameters:
      customerId - customerId
      plugin - plugin
      Returns:
      list of attribute change history for an identity attribute
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getIdentityAttribute

      public IdentityAttribute getIdentityAttribute(fr.paris.lutece.util.sql.DAOUtil daoUtil)
    • getAttributeChange

      public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange getAttributeChange(fr.paris.lutece.util.sql.DAOUtil daoUtil) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException