Class IdentityStoreRestService

  • All Implemented Interfaces:
    IRestService

    @Path("/rest/identitystore/v3/identity")
    public final class IdentityStoreRestService
    extends java.lang.Object
    implements IRestService
    REST service for channel resource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Creates an identity.
      The identity is created from the provided attributes in IdentityChangeRequest.

      The attributes are created if their characteristics match the definition given into the active service contract associated to the client application.
      javax.ws.rs.core.Response deleteIdentity​(java.lang.String strCustomerId, java.lang.String strClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Delete request for an identity from the specified CustomerId The identity will be marked as expired, for the deletion Deamon.
      javax.ws.rs.core.Response exportIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest identityExportRequest, java.lang.String strHeaderClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)  
      javax.ws.rs.core.Response getIdentity​(java.lang.String strCustomerId, java.lang.String strHeaderClientCode, java.lang.String strHeaderAuthorName, java.lang.String strHeaderAuthorType, java.lang.String strHeaderAppCode)
      Gives Identity from a customerID
      javax.ws.rs.core.Response getUpdatedIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchRequest updatedIdentitySearchRequest, java.lang.String strHeaderClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Gives all modified identity CUIDs according to given request.
      javax.ws.rs.core.Response importMediationIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Import an identity from mediation website.
      The identity is created from the provided attributes in IdentityChangeRequest.

      The attributes are created if their characteristics match the definition given into the active service contract associated to the client application.
      javax.ws.rs.core.Response mergeIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Merge two identities.
      javax.ws.rs.core.Response searchIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest, java.lang.String strHeaderClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Searches Identities from a list of values for a series of attributes
      javax.ws.rs.core.Response testCreateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Test the data validity for the creation of a new Identity
      Send the data through all the controls.
      javax.ws.rs.core.Response testUpdateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, java.lang.String strCustomerId, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Test the data validity for the update of an Identity
      Send the data through all the controls.
      javax.ws.rs.core.Response uncertifyIdentity​(java.lang.String strCustomerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UncertifyIdentityRequest uncertifyIdentityRequest, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      uncertify identity method
      javax.ws.rs.core.Response unmergeIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Cancel the merge of two identities.
      javax.ws.rs.core.Response updateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, java.lang.String strCustomerId, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      update identity method
      • Methods inherited from class java.lang.Object

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

      • IdentityStoreRestService

        public IdentityStoreRestService()
        private constructor
    • Method Detail

      • getIdentity

        @GET
        @Path("{customer_id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getIdentity​(@PathParam("customer_id")
                                                     java.lang.String strCustomerId,
                                                     @HeaderParam("client_code")
                                                     java.lang.String strHeaderClientCode,
                                                     @HeaderParam("author_name")
                                                     java.lang.String strHeaderAuthorName,
                                                     @HeaderParam("author_type")
                                                     java.lang.String strHeaderAuthorType,
                                                     @HeaderParam("application_code") @DefaultValue("")
                                                     java.lang.String strHeaderAppCode)
                                              throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Gives Identity from a customerID
        Parameters:
        strCustomerId - customerID
        strHeaderClientCode - client code
        Returns:
        the identity
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • searchIdentities

        @POST
        @Path("/search")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response searchIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest,
                                                          @HeaderParam("client_code")
                                                          java.lang.String strHeaderClientCode,
                                                          @HeaderParam("author_name")
                                                          java.lang.String authorName,
                                                          @HeaderParam("author_type")
                                                          java.lang.String authorType,
                                                          @HeaderParam("application_code") @DefaultValue("")
                                                          java.lang.String strHeaderAppCode)
                                                   throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Searches Identities from a list of values for a series of attributes
        Parameters:
        strHeaderClientCode - client code
        Returns:
        the identities
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • createIdentity

        @POST
        @Consumes("application/json")
        public javax.ws.rs.core.Response createIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
                                                        @HeaderParam("client_code")
                                                        java.lang.String clientCode,
                                                        @HeaderParam("author_name")
                                                        java.lang.String authorName,
                                                        @HeaderParam("author_type")
                                                        java.lang.String authorType,
                                                        @HeaderParam("application_code") @DefaultValue("")
                                                        java.lang.String strHeaderAppCode)
                                                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Creates an identity.
        The identity is created from the provided attributes in IdentityChangeRequest.

        The attributes are created if their characteristics match the definition given into the active service contract associated to the client application.
        • Attribute must be writable
        • Attribute certification processus must be declared
        Parameters:
        identityChangeRequest - the identity creation request
        clientCode - the application code in the HTTP header
        Returns:
        http 200 if creation is ok with IdentityChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • testCreateIdentity

        @POST
        @Path("/control")
        @Consumes("application/json")
        public javax.ws.rs.core.Response testCreateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
                                                            @HeaderParam("client_code")
                                                            java.lang.String clientCode,
                                                            @HeaderParam("author_name")
                                                            java.lang.String authorName,
                                                            @HeaderParam("author_type")
                                                            java.lang.String authorType,
                                                            @HeaderParam("application_code") @DefaultValue("")
                                                            java.lang.String strHeaderAppCode)
                                                     throws 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:
        identityChangeRequest - the identity creation request to test
        clientCode - the application code in the HTTP header
        Returns:
        http 200 if creation is ok with IdentityChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • updateIdentity

        @PUT
        @Path("{customer_id}")
        @Consumes("application/json")
        public javax.ws.rs.core.Response updateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
                                                        @PathParam("customer_id")
                                                        java.lang.String strCustomerId,
                                                        @HeaderParam("client_code")
                                                        java.lang.String clientCode,
                                                        @HeaderParam("author_name")
                                                        java.lang.String authorName,
                                                        @HeaderParam("author_type")
                                                        java.lang.String authorType,
                                                        @HeaderParam("application_code") @DefaultValue("")
                                                        java.lang.String strHeaderAppCode)
                                                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        update identity method
        Parameters:
        identityChangeRequest - the identity update request
        clientCode - the header client app code
        Returns:
        http 200 if update is ok with ResponseDto
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • testUpdateIdentity

        @PUT
        @Path("{customer_id}/control")
        @Consumes("application/json")
        public javax.ws.rs.core.Response testUpdateIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
                                                            @PathParam("customer_id")
                                                            java.lang.String strCustomerId,
                                                            @HeaderParam("client_code")
                                                            java.lang.String clientCode,
                                                            @HeaderParam("author_name")
                                                            java.lang.String authorName,
                                                            @HeaderParam("author_type")
                                                            java.lang.String authorType,
                                                            @HeaderParam("application_code") @DefaultValue("")
                                                            java.lang.String strHeaderAppCode)
                                                     throws 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:
        identityChangeRequest - the identity update request
        clientCode - the header client app code
        Returns:
        http 200 if update is ok with ResponseDto
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • mergeIdentities

        @POST
        @Path("/merge")
        @Consumes("application/json")
        public javax.ws.rs.core.Response mergeIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest,
                                                         @HeaderParam("client_code")
                                                         java.lang.String clientCode,
                                                         @HeaderParam("author_name")
                                                         java.lang.String authorName,
                                                         @HeaderParam("author_type")
                                                         java.lang.String authorType,
                                                         @HeaderParam("application_code") @DefaultValue("")
                                                         java.lang.String strHeaderAppCode)
                                                  throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Merge two identities.
        Parameters:
        identityMergeRequest - the identity merge request
        clientCode - the client code in the HTTP header
        Returns:
        http 200 if creation is ok with IdentityChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • unmergeIdentities

        @POST
        @Path("/unmerge")
        @Consumes("application/json")
        public javax.ws.rs.core.Response unmergeIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest,
                                                           @HeaderParam("client_code")
                                                           java.lang.String clientCode,
                                                           @HeaderParam("author_name")
                                                           java.lang.String authorName,
                                                           @HeaderParam("author_type")
                                                           java.lang.String authorType,
                                                           @HeaderParam("application_code") @DefaultValue("")
                                                           java.lang.String strHeaderAppCode)
                                                    throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Cancel the merge of two identities.
        Parameters:
        identityMergeRequest - the identity merge request
        clientCode - the client code in the HTTP header
        Returns:
        http 200 if creation is ok with IdentityChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • deleteIdentity

        @DELETE
        @Path("{customer_id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteIdentity​(@PathParam("customer_id")
                                                        java.lang.String strCustomerId,
                                                        @HeaderParam("client_code")
                                                        java.lang.String strClientCode,
                                                        @HeaderParam("author_name")
                                                        java.lang.String authorName,
                                                        @HeaderParam("author_type")
                                                        java.lang.String authorType,
                                                        @HeaderParam("application_code") @DefaultValue("")
                                                        java.lang.String strHeaderAppCode)
                                                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Delete request for an identity from the specified CustomerId The identity will be marked as expired, for the deletion Deamon.
        Parameters:
        strCustomerId -
        strClientCode -
        Returns:
        a OK message if the deletion has been performed, a KO message otherwise
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • importMediationIdentity

        @POST
        @Path("/import")
        @Consumes("application/json")
        public javax.ws.rs.core.Response importMediationIdentity​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
                                                                 @HeaderParam("client_code")
                                                                 java.lang.String clientCode,
                                                                 @HeaderParam("author_name")
                                                                 java.lang.String authorName,
                                                                 @HeaderParam("author_type")
                                                                 java.lang.String authorType,
                                                                 @HeaderParam("application_code") @DefaultValue("")
                                                                 java.lang.String strHeaderAppCode)
                                                          throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Import an identity from mediation website.
        The identity is created from the provided attributes in IdentityChangeRequest.

        The attributes are created if their characteristics match the definition given into the active service contract associated to the client application.
        • Attribute must be writable
        • Attribute certification processus must be declared
        Parameters:
        identityChangeRequest - the identity creation request
        clientCode - the client application code in the HTTP header
        Returns:
        http 200 if creation is ok with IdentityChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getUpdatedIdentities

        @POST
        @Path("/updated")
        @Produces("application/json")
        public javax.ws.rs.core.Response getUpdatedIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchRequest updatedIdentitySearchRequest,
                                                              @HeaderParam("client_code")
                                                              java.lang.String strHeaderClientCode,
                                                              @HeaderParam("author_name")
                                                              java.lang.String authorName,
                                                              @HeaderParam("author_type")
                                                              java.lang.String authorType,
                                                              @HeaderParam("application_code") @DefaultValue("")
                                                              java.lang.String strHeaderAppCode)
                                                       throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Gives all modified identity CUIDs according to given request.
        Parameters:
        updatedIdentitySearchRequest - the request
        strHeaderClientCode - client code
        Returns:
        the identity list
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • uncertifyIdentity

        @PUT
        @Path("/uncertify/{customer_id}")
        @Consumes("application/json")
        public javax.ws.rs.core.Response uncertifyIdentity​(@PathParam("customer_id")
                                                           java.lang.String strCustomerId,
                                                           fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UncertifyIdentityRequest uncertifyIdentityRequest,
                                                           @HeaderParam("client_code")
                                                           java.lang.String clientCode,
                                                           @HeaderParam("author_name")
                                                           java.lang.String authorName,
                                                           @HeaderParam("author_type")
                                                           java.lang.String authorType,
                                                           @HeaderParam("application_code") @DefaultValue("")
                                                           java.lang.String strHeaderAppCode)
                                                    throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        uncertify identity method
        Parameters:
        clientCode - the header client app code
        Returns:
        http 200 if update is ok with ResponseDto
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • exportIdentities

        @POST
        @Path("/export")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response exportIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest identityExportRequest,
                                                          @HeaderParam("client_code")
                                                          java.lang.String strHeaderClientCode,
                                                          @HeaderParam("author_name")
                                                          java.lang.String authorName,
                                                          @HeaderParam("author_type")
                                                          java.lang.String authorType,
                                                          @HeaderParam("application_code") @DefaultValue("")
                                                          java.lang.String strHeaderAppCode)
                                                   throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException