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 java.lang.Object implements IRestServiceREST service for channel resource
-
-
Constructor Summary
Constructors Constructor Description IdentityStoreRestService()private constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateIdentity(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 inIdentityChangeRequest.
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.ResponsedeleteIdentity(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.ResponseexportIdentities(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.ResponsegetIdentity(java.lang.String strCustomerId, java.lang.String strHeaderClientCode, java.lang.String strHeaderAuthorName, java.lang.String strHeaderAuthorType, java.lang.String strHeaderAppCode)Gives Identity from a customerIDjavax.ws.rs.core.ResponsegetUpdatedIdentities(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.ResponseimportMediationIdentity(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 inIdentityChangeRequest.
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.ResponsemergeIdentities(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.ResponsesearchIdentities(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 attributesjavax.ws.rs.core.ResponsetestCreateIdentity(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.ResponsetestUpdateIdentity(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.ResponseuncertifyIdentity(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 methodjavax.ws.rs.core.ResponseunmergeIdentities(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.ResponseupdateIdentity(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
-
Methods inherited from interface fr.paris.lutece.plugins.identitystore.v3.web.rs.IRestService
buildJsonResponse
-
-
-
-
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.IdentityStoreExceptionGives Identity from a customerID- Parameters:
strCustomerId- customerIDstrHeaderClientCode- 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.IdentityStoreExceptionSearches 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.IdentityStoreExceptionCreates an identity.
The identity is created from the provided attributes inIdentityChangeRequest.
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 requestclientCode- 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.IdentityStoreExceptionTest 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 testclientCode- 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.IdentityStoreExceptionupdate identity method- Parameters:
identityChangeRequest- the identity update requestclientCode- 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.IdentityStoreExceptionTest 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 requestclientCode- 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.IdentityStoreExceptionMerge two identities.- Parameters:
identityMergeRequest- the identity merge requestclientCode- 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.IdentityStoreExceptionCancel the merge of two identities.- Parameters:
identityMergeRequest- the identity merge requestclientCode- 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.IdentityStoreExceptionDelete 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.IdentityStoreExceptionImport an identity from mediation website.
The identity is created from the provided attributes inIdentityChangeRequest.
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 requestclientCode- 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.IdentityStoreExceptionGives all modified identity CUIDs according to given request.- Parameters:
updatedIdentitySearchRequest- the requeststrHeaderClientCode- 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.IdentityStoreExceptionuncertify 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
-
-