Class IdentityAttributeHome

java.lang.Object
fr.paris.lutece.plugins.identitystore.business.identity.IdentityAttributeHome

public final class IdentityAttributeHome extends Object
This class provides instances management methods (create, find, ...) for IdentityAttribute objects
  • Method Details

    • create

      public static IdentityAttribute create(IdentityAttribute identityAttribute)
      Create an instance of the identityAttribute class
      Parameters:
      identityAttribute - The instance of the IdentityAttribute which contains the informations to store
      Returns:
      The instance of identityAttribute which has been created with its primary key.
    • update

      public static IdentityAttribute update(IdentityAttribute identityAttribute)
      Update of the identityAttribute which is specified in parameter
      Parameters:
      identityAttribute - The instance of the IdentityAttribute which contains the data to store
      Returns:
      The instance of the identityAttribute which has been updated
    • remove

      public static void remove(int nIdentityId, int nAttributeId)
      Remove the identityAttribute whose identifier is specified in parameter
      Parameters:
      nIdentityId - The identity ID
      nAttributeId - The Attribute ID
    • removeAllAttributes

      public static void removeAllAttributes(int nIdentityId)
      Remove all the identityAttribute of an identity
      Parameters:
      nIdentityId - The identity ID
    • getAttributes

      public static Map<String,IdentityAttribute> getAttributes(int nIdentityId)
      Load the data of all attributes for a given identity ID which are allowed for the client application provided
      Parameters:
      nIdentityId - The identity ID
      Returns:
      the map which contains the data of all the identityAttribute objects
    • getAttributesByIdentityListFullAttributes

      public static List<IdentityAttribute> getAttributesByIdentityListFullAttributes(List<Identity> listIdentity)
      Load the data of a selection of attributes that are allowed for the client application provided for a list of identity
      Parameters:
      listIdentity - The list of identity
      Returns:
      the list which contains the data of the identityAttribute objects
    • addAttributeChangeHistory

      public static void addAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      add an attribute change event in history table
      Parameters:
      attributeChange - attribute change event
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getAttributeChangeHistory

      public static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(int nIdentityId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      get attribute change event in history table from the newest to the latest change
      Parameters:
      nIdentityId - identityId
      Returns:
      list of attribute changes
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • getAttributeChangeHistory

      public static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(String customerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      get attribute change event in history table from the newest to the latest change
      Parameters:
      customerId - customerId
      Returns:
      list of attribute changes
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException