Class IdentityStoreRestService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.v3.web.rs.IdentityStoreRestService
-
@Path("/rest/identitystore/v3/identity") public final class IdentityStoreRestService extends ObjectREST 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, String clientCode, String authorName, String authorType, 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(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.ResponseexportIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest identityExportRequest, String strHeaderClientAppCode, String authorName, String authorType, String strHeaderAppCode)javax.ws.rs.core.ResponsegetIdentity(String strCustomerId, String strHeaderClientAppCode, String strHeaderAuthorName, String strHeaderAuthorType, String strHeaderAppCode)Gives Identity from a customerIDjavax.ws.rs.core.ResponsegetUpdatedIdentities(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.ResponseimportMediationIdentity(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 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, String clientCode, String authorName, String authorType, String strHeaderAppCode)Merge two identities.javax.ws.rs.core.ResponsesearchIdentities(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 attributesjavax.ws.rs.core.ResponseuncertifyIdentity(String strCustomerId, String clientCode, String authorName, String authorType, String strHeaderAppCode)uncertify identity methodjavax.ws.rs.core.ResponseunmergeIdentities(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.ResponseupdateIdentity(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
-
-
-
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.IdentityStoreExceptionGives Identity from a customerID- Parameters:
strCustomerId- customerIDstrHeaderClientAppCode- 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.IdentityStoreExceptionSearches 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.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
-
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.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
-
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.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") 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.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(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.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") 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.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") 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.IdentityStoreExceptionGives all modified identity CUIDs according to given request.- Parameters:
updatedIdentitySearchRequest- the requeststrHeaderClientAppCode- 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, @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.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") 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
-
-