Class IdentityStoreRestService

java.lang.Object
fr.paris.lutece.plugins.identitystore.v3.web.rs.IdentityStoreRestService
All Implemented Interfaces:
IRestService

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

    Constructors
    Constructor
    Description
    private constructor
  • Method Summary

    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(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 strHeaderClientCode, String authorName, String authorType, String strHeaderAppCode)
     
    javax.ws.rs.core.Response
    getIdentity(String strCustomerId, String strHeaderClientCode, 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 strHeaderClientCode, 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 strHeaderClientCode, String authorName, String authorType, 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, String clientCode, String authorName, String authorType, 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, String strCustomerId, String clientCode, String authorName, String authorType, 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(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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface fr.paris.lutece.plugins.identitystore.v3.web.rs.IRestService

    buildJsonResponse
  • Constructor Details

    • IdentityStoreRestService

      public IdentityStoreRestService()
      private constructor
  • Method Details

    • getIdentity

      @GET @Path("{customer_id}") @Produces("application/json") public javax.ws.rs.core.Response getIdentity(@PathParam("customer_id") String strCustomerId, @HeaderParam("client_code") String strHeaderClientCode, @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
      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") String strHeaderClientCode, @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:
      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") 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
    • 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") 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
      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") 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
    • 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") 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
      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") 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(@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 strHeaderClientCode, @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
      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") 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 strHeaderClientCode, @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