Class IdentityService


  • public class IdentityService
    extends java.lang.Object
    IdentityService
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse createIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Creates an identity only if the identity does not already exist.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateResponse createIdentityTask​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateRequest request, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Create a task related to an IdentityDto by its customer ID.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse deleteIdentity​(java.lang.String strCustomerId, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Deletes an identity from the specified customer_Id
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportResponse exportIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest request, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Exports a list of identities according to the provided request and client code.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentity​(java.lang.String strCustomerId, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      get identity matching connectionId and customerId for provided application code
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentityByConnectionId​(java.lang.String strConnectionId, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      get identity matching connectionId for provided application code
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentityByCustomerId​(java.lang.String strCustomerId, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      get identity matching customerId for provided application code
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistoryGetResponse getIdentityHistory​(java.lang.String strCustomerId, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Gives the identity history (identity+attributes) from a customerID
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskListGetResponse getIdentityTaskList​(java.lang.String resourceId, java.lang.String resourceType, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Get the tasks related to a given resource.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskGetStatusResponse getIdentityTaskStatus​(java.lang.String taskCode, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Get the IdentityTaskStatusType of the task.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchResponse getUpdatedIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchRequest request, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      get identities that have been updated, according to given request.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse searchIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      returns a list of identity from combination of attributes
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchResponse searchIdentityHistory​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchRequest request, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Search for identities history according to given request
      void setExternalAttributesSourceList​(java.util.List<fr.paris.lutece.plugins.identitystore.v3.business.IExternalAttributeSource> listExternalAttributesSource)
      setter of additional attribute source parameter
      void setTransportProvider​(IIdentityTransportProvider transportProvider)
      setter of transportProvider parameter
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse testCreateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Test the data validity for the creation of a new Identity
      Send the data through all the controls.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse testUpdateIdentity​(java.lang.String customerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Test the data validity for the update of an Identity
      Send the data through all the controls.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse updateIdentity​(java.lang.String customerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      apply changes to an identity
      • Methods inherited from class java.lang.Object

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

      • IdentityService

        public IdentityService()
        Simple Constructor
      • IdentityService

        public IdentityService​(IIdentityTransportProvider transportProvider)
        Constructor with IIdentityTransportProvider in parameters
        Parameters:
        transportProvider - IIdentityTransportProvider
    • Method Detail

      • setTransportProvider

        public void setTransportProvider​(IIdentityTransportProvider transportProvider)
        setter of transportProvider parameter
        Parameters:
        transportProvider - IIdentityTransportProvider
      • setExternalAttributesSourceList

        public void setExternalAttributesSourceList​(java.util.List<fr.paris.lutece.plugins.identitystore.v3.business.IExternalAttributeSource> listExternalAttributesSource)
        setter of additional attribute source parameter
        Parameters:
        listExternalAttributesSource -
      • getIdentityByConnectionId

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentityByConnectionId​(java.lang.String strConnectionId,
                                                                                                                           java.lang.String strClientCode,
                                                                                                                           fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                    throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                                           fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        get identity matching connectionId for provided application code
        Parameters:
        strConnectionId - connection Id
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        identity if found
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getIdentityByCustomerId

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentityByCustomerId​(java.lang.String strCustomerId,
                                                                                                                         java.lang.String strClientCode,
                                                                                                                         fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                  throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                                         fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        get identity matching customerId for provided application code
        Parameters:
        strCustomerId - customer Id
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        identity if found
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getIdentity

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentity​(java.lang.String strCustomerId,
                                                                                                             java.lang.String strClientCode,
                                                                                                             fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                      throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                             fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        get identity matching connectionId and customerId for provided application code
        Parameters:
        strCustomerId - customer Id (can be null if strConnectionId is provided)
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        identity if found
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if inconsistent parameters provided, or errors occurs...
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • updateIdentity

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse updateIdentity​(java.lang.String customerId,
                                                                                                              fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
                                                                                                              java.lang.String strClientCode,
                                                                                                              fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                       throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                              fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        apply changes to an identity
        Parameters:
        customerId - the id of the customer
        identityChange - change to apply to identity
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the updated identity
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if error occured while updating identity
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • testUpdateIdentity

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse testUpdateIdentity​(java.lang.String customerId,
                                                                                                                  fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
                                                                                                                  java.lang.String strClientCode,
                                                                                                                  fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                           throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                                  fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Test the data validity for the update of an Identity
        Send the data through all the controls. Even if all the controls are passing correctly, the identity will NOT be updated.
        Parameters:
        customerId - the id of the customer
        identityChange - change to apply to identity
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the updated identity
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if error occured while updating identity
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • createIdentity

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse createIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
                                                                                                              java.lang.String strClientCode,
                                                                                                              fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                       throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                              fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Creates an identity only if the identity does not already exist. The identity is created from the provided attributes.

        The order to test if the identity exists: - by using the provided customer id if present - by using the provided connection id if present

        Parameters:
        identityChange - change to apply to identity
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the created identity
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if error occured while updating identity
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • testCreateIdentity

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse testCreateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
                                                                                                                  java.lang.String strClientCode,
                                                                                                                  fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                           throws fr.paris.lutece.portal.service.util.AppException,
                                                                                                                  fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Test the data validity for the creation of a new Identity
        Send the data through all the controls. Even if all the controls are passing correctly, an identity will NOT be created.
        Parameters:
        identityChange - change to apply to identity
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the created identity
        Throws:
        fr.paris.lutece.portal.service.util.AppException - if error occured while updating identity
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • deleteIdentity

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse deleteIdentity​(java.lang.String strCustomerId,
                                                                                                              java.lang.String strClientCode,
                                                                                                              fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                       throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Deletes an identity from the specified customer_Id
        Parameters:
        strCustomerId - the customer id
        strClientCode - client code of calling application
        author - the author of the request
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • searchIdentities

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse searchIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest,
                                                                                                                  java.lang.String strClientCode,
                                                                                                                  fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                           throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        returns a list of identity from combination of attributes
        Parameters:
        identitySearchRequest - search request tpo perform
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        identity filled according to application rights for user identified by connection id
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getIdentityHistory

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistoryGetResponse getIdentityHistory​(java.lang.String strCustomerId,
                                                                                                                         java.lang.String strClientCode,
                                                                                                                         fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                  throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Gives the identity history (identity+attributes) from a customerID
        Parameters:
        strCustomerId - customerID
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the history
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • searchIdentityHistory

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchResponse searchIdentityHistory​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchRequest request,
                                                                                                                               java.lang.String strClientCode,
                                                                                                                               fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                        throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Search for identities history according to given request
        Parameters:
        request - request
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the history
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getUpdatedIdentities

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchResponse getUpdatedIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchRequest request,
                                                                                                                             java.lang.String strClientCode,
                                                                                                                             fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                      throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        get identities that have been updated, according to given request.
        Parameters:
        request - the request
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        the list of identities
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • exportIdentities

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportResponse exportIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest request,
                                                                                                                     java.lang.String strClientCode,
                                                                                                                     fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                              throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Exports a list of identities according to the provided request and client code.
        Parameters:
        request - the export request
        strClientCode - the client code
        Returns:
        IdentityExportResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • createIdentityTask

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateResponse createIdentityTask​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateRequest request,
                                                                                                                      java.lang.String strClientCode,
                                                                                                                      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                               throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Create a task related to an IdentityDto by its customer ID.
        Parameters:
        request - the task creation request
        strClientCode - the client code calling the request
        author - the author of the request
        Returns:
        the code of the created task used to identify that task for further usage
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of error
      • getIdentityTaskStatus

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskGetStatusResponse getIdentityTaskStatus​(java.lang.String taskCode,
                                                                                                                            java.lang.String strClientCode,
                                                                                                                            fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                     throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get the IdentityTaskStatusType of the task.
        Parameters:
        taskCode - the code of the task returned at creation time
        strClientCode - the client code calling the request
        author - the author of the request
        Returns:
        an IdentityTaskGetStatusResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of error
      • getIdentityTaskList

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskListGetResponse getIdentityTaskList​(java.lang.String resourceId,
                                                                                                                        java.lang.String resourceType,
                                                                                                                        java.lang.String strClientCode,
                                                                                                                        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get the tasks related to a given resource.
        Parameters:
        resourceId - the ID of the resource
        resourceType - the type of the resource
        strClientCode - the client code calling the request
        author - the author of the request
        Returns:
        an IdentityTaskGetResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of error