Interface IIdentityAttributeDAO

  • All Known Implementing Classes:
    IdentityAttributeDAO

    public interface IIdentityAttributeDAO
    IIdentityAttributeDAO Interface
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String BEAN_NAME  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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
      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
      void insert​(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      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
      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
      void store​(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(IdentityAttribute identityAttribute,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        identityAttribute - instance of the IdentityAttribute object to insert
        plugin - the Plugin
      • store

        void store​(IdentityAttribute identityAttribute,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        identityAttribute - the reference of the IdentityAttribute
        plugin - the Plugin
      • delete

        void delete​(int nIdentityId,
                    int nAttributeId,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdentityId - The identity ID
        nAttributeId - The Attribute ID
        plugin - the Plugin
      • selectAttributes

        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
        Parameters:
        nIdentityId - The Identity ID
        plugin - the Plugin
        Returns:
        The map which contains the data of all the identityAttribute objects
      • selectAllAttributesByIdentityList

        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
        Parameters:
        listIdentity - The list of identity
        plugin - the Plugin
        Returns:
        the list which contains the data of the identityAttribute objects
      • deleteAllAttributes

        void deleteAllAttributes​(int nIdentityId,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete all attributes matching the provided identityId
        Parameters:
        nIdentityId - The identity ID
        plugin - the Plugin
      • addAttributeChangeHistory

        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
        add an historical change attribute entry
        Parameters:
        attributeChange - attribute change desc object
        plugin - the Plugin
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getAttributeChangeHistory

        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
        return list of attribute change history for an identity attribute from the newest to the latest change
        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

        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
        return list of attribute change history for an identity attribute from the newest to the latest change
        Parameters:
        customerId - customerId
        plugin - plugin
        Returns:
        list of attribute change history for an identity attribute
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException