Class IdentityAttributeHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addAttributeChangeHistory​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange)
      add an attribute change event in history table
      static IdentityAttribute create​(IdentityAttribute identityAttribute)
      Create an instance of the identityAttribute class
      static java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory​(int nIdentityId)
      get attribute change event in history table from the newest to the latest change
      static java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory​(java.lang.String customerId)
      get attribute change event in history table from the newest to the latest change
      static java.util.Map<java.lang.String,​IdentityAttribute> getAttributes​(int nIdentityId)
      Load the data of all attributes for a given identity ID which are allowed for the client application provided
      static java.util.List<IdentityAttribute> getAttributesByIdentityListFullAttributes​(java.util.List<Identity> listIdentity)
      Load the data of a selection of attributes that are allowed for the client application provided for a list of identity
      static void remove​(int nIdentityId, int nAttributeId)
      Remove the identityAttribute whose identifier is specified in parameter
      static void removeAllAttributes​(int nIdentityId)
      Remove all the identityAttribute of an identity
      static IdentityAttribute update​(IdentityAttribute identityAttribute)
      Update of the identityAttribute which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.util.Map<java.lang.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 java.util.List<IdentityAttribute> getAttributesByIdentityListFullAttributes​(java.util.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 java.util.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 java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory​(java.lang.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