Class IdentityStoreRestService


  • @Path("/rest/identitystore/v3/identity")
    public final class IdentityStoreRestService
    extends Object
    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, String clientCode, String authorName, String authorType, 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​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, String strCustomerId, String strClientCode, String authorName, String authorType, 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, String strHeaderClientAppCode, String authorName, String authorType, String strHeaderAppCode)  
      javax.ws.rs.core.Response getIdentity​(String strCustomerId, String strHeaderClientAppCode, String strHeaderAuthorName, String strHeaderAuthorType, 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, String strHeaderClientAppCode, String authorName, String authorType, 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, String clientCode, String authorName, String authorType, 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, String clientCode, String authorName, String authorType, String strHeaderAppCode)
      Merge two identities.
      javax.ws.rs.core.Response searchIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest, String strHeaderClientAppCode, String authorName, String authorType, String strHeaderAppCode)
      Searches Identities from a list of values for a series of attributes
      javax.ws.rs.core.Response uncertifyIdentity​(String strCustomerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UncertifyIdentityRequest uncertifyIdentityRequest, String clientCode, String authorName, String authorType, String strHeaderAppCode)
      uncertify identity method
      javax.ws.rs.core.Response unmergeIdentities​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest, String clientCode, String authorName, String authorType, 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, String strCustomerId, String clientCode, String authorName, String authorType, String strHeaderAppCode)
      update identity method
    • 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")
                                                     String strCustomerId,
                                                     @HeaderParam("client_code")
                                                     String strHeaderClientAppCode,
                                                     @HeaderParam("author_name")
                                                     String strHeaderAuthorName,
                                                     @HeaderParam("author_type")
                                                     String strHeaderAuthorType,
                                                     @HeaderParam("application_code") @DefaultValue("")
                                                     String strHeaderAppCode)
                                              throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Gives Identity from a customerID
        Parameters:
        strCustomerId - customerID
        strHeaderClientAppCode - 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")
                                                          String strHeaderClientAppCode,
                                                          @HeaderParam("author_name")
                                                          String authorName,
                                                          @HeaderParam("author_type")
                                                          String authorType,
                                                          @HeaderParam("application_code") @DefaultValue("")
                                                          String strHeaderAppCode)
                                                   throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Searches Identities from a list of values for a series of attributes
        Parameters:
        strHeaderClientAppCode - 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")
                                                        String clientCode,
                                                        @HeaderParam("author_name")
                                                        String authorName,
                                                        @HeaderParam("author_type")
                                                        String authorType,
                                                        @HeaderParam("application_code") @DefaultValue("")
                                                        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
      • 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")
                                                        String strCustomerId,
                                                        @HeaderParam("client_code")
                                                        String clientCode,
                                                        @HeaderParam("author_name")
                                                        String authorName,
                                                        @HeaderParam("author_type")
                                                        String authorType,
                                                        @HeaderParam("application_code") @DefaultValue("")
                                                        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
      • 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")
                                                         String clientCode,
                                                         @HeaderParam("author_name")
                                                         String authorName,
                                                         @HeaderParam("author_type")
                                                         String authorType,
                                                         @HeaderParam("application_code") @DefaultValue("")
                                                         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")
                                                           String clientCode,
                                                           @HeaderParam("author_name")
                                                           String authorName,
                                                           @HeaderParam("author_type")
                                                           String authorType,
                                                           @HeaderParam("application_code") @DefaultValue("")
                                                           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​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
                                                        @PathParam("customer_id")
                                                        String strCustomerId,
                                                        @HeaderParam("client_code")
                                                        String strClientCode,
                                                        @HeaderParam("author_name")
                                                        String authorName,
                                                        @HeaderParam("author_type")
                                                        String authorType,
                                                        @HeaderParam("application_code") @DefaultValue("")
                                                        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")
                                                                 String clientCode,
                                                                 @HeaderParam("author_name")
                                                                 String authorName,
                                                                 @HeaderParam("author_type")
                                                                 String authorType,
                                                                 @HeaderParam("application_code") @DefaultValue("")
                                                                 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")
                                                              String strHeaderClientAppCode,
                                                              @HeaderParam("author_name")
                                                              String authorName,
                                                              @HeaderParam("author_type")
                                                              String authorType,
                                                              @HeaderParam("application_code") @DefaultValue("")
                                                              String strHeaderAppCode)
                                                       throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Gives all modified identity CUIDs according to given request.
        Parameters:
        updatedIdentitySearchRequest - the request
        strHeaderClientAppCode - 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")
                                                           String strCustomerId,
                                                           fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UncertifyIdentityRequest uncertifyIdentityRequest,
                                                           @HeaderParam("client_code")
                                                           String clientCode,
                                                           @HeaderParam("author_name")
                                                           String authorName,
                                                           @HeaderParam("author_type")
                                                           String authorType,
                                                           @HeaderParam("application_code") @DefaultValue("")
                                                           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")
                                                          String strHeaderClientAppCode,
                                                          @HeaderParam("author_name")
                                                          String authorName,
                                                          @HeaderParam("author_type")
                                                          String authorType,
                                                          @HeaderParam("application_code") @DefaultValue("")
                                                          String strHeaderAppCode)
                                                   throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException