public class IdentityService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL_CONSOLIDATE_IDENTITY_EVENT_CODE |
static String |
CANCEL_MERGE_IDENTITY_EVENT_CODE |
static String |
CONSOLIDATE_IDENTITY_EVENT_CODE |
static String |
CREATE_IDENTITY_EVENT_CODE |
static String |
DECERTIFY_IDENTITY_EVENT_CODE |
static String |
DELETE_IDENTITY_EVENT_CODE |
static String |
GET_IDENTITY_EVENT_CODE |
static String |
MERGE_IDENTITY_EVENT_CODE |
static String |
SEARCH_IDENTITY_EVENT_CODE |
static String |
SPECIFIC_ORIGIN |
static String |
UPDATE_IDENTITY_EVENT_CODE |
| Constructor and Description |
|---|
IdentityService() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelMerge(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse response)
|
Identity |
create(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response)
Creates a new
Identity according to the given IdentityChangeRequest |
void |
delete(String customerId)
Delete the identity and all his children, including potential merged identities, EXCEPT identity history.
The purge consist of deleting, for the identity and all of its potential merged identities : the Identity object
the IdentityAttribute objetcs
the IdentityAttributeHistory objects
the SuspiciousIdentity objects
the ExcludedIdentities objects
The identity's history is kept. |
void |
deleteRequest(String customerId,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response)
request a deletion of identity .
|
Batch<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto> |
getIdentitiesBatchForPotentialDuplicate(DuplicateRule rule,
int batchSize)
Gets a list of qualified identities on which to search potential duplicates.
Returned identities must have all attributes checked by the provided rule, and must also not be already merged nor be tagged as suspicious. The list is sorted by quality (higher quality identities first). |
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto |
getQualifiedIdentity(String customerId) |
Identity |
importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response)
Imports an
Identity according to the given IdentityChangeRequest |
static IdentityService |
instance() |
Identity |
merge(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse response)
|
void |
search(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response,
String clientCode)
Perform an identity research over a list of attributes (key and values) specified in the
IdentitySearchRequest |
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto> |
search(List<String> customerIds)
Performs a search of a list of
IdentityDto, providing a list of customer ids |
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto |
search(String customerId)
Performs a search of an
IdentityDto, providing its customer id |
void |
search(String customerId,
String connectionId,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
Perform an identity research by customer or connection ID.
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse |
uncertifyIdentity(String strCustomerId,
String strClientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
Dé-certification d'une identité.
|
Identity |
update(String customerId,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response)
|
public static final String CREATE_IDENTITY_EVENT_CODE
public static final String UPDATE_IDENTITY_EVENT_CODE
public static final String DECERTIFY_IDENTITY_EVENT_CODE
public static final String GET_IDENTITY_EVENT_CODE
public static final String SEARCH_IDENTITY_EVENT_CODE
public static final String DELETE_IDENTITY_EVENT_CODE
public static final String CONSOLIDATE_IDENTITY_EVENT_CODE
public static final String MERGE_IDENTITY_EVENT_CODE
public static final String CANCEL_MERGE_IDENTITY_EVENT_CODE
public static final String CANCEL_CONSOLIDATE_IDENTITY_EVENT_CODE
public static final String SPECIFIC_ORIGIN
public static IdentityService instance()
public Identity create(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Identity according to the given IdentityChangeRequestrequest - the IdentityChangeRequest holding the parameters of the identity change requestauthor - the author of the requestclientCode - code of the ClientApplication requesting the changeresponse - the IdentityChangeResponse holding the status of the execution of the requestIdentityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of errorpublic Identity update(String customerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest request, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Identity according to the given IdentityChangeRequest and following the given rules: Identity must exist in te database. If not, NOT_FOUND status is returned in the execution responseIdentity must not be merged or deleted. In case of merged/deleted identity, the update is not performed and the customer ID of the
primary identity is returned in the execution response with a CONFLICT statusIdentity can be updated, its IdentityAttribute list is updated following the given rule:
IdentityAttribute exists, it is updated if the value is different, and if the process level given in the request is higher than the
existing one. If the value cannot be updated, the NOT_UPDATED status, associated with the attribute key, is returned in the execution response.IdentityAttribute does not exist, it is created. The CREATED status, associated with the attribute key, is returned in the execution
response.customerId - the id of the updated Identityrequest - the IdentityChangeRequest holding the parameters of the identity change requestauthor - the author of the requestclientCode - code of the ClientApplication requesting the changeresponse - the IdentityChangeResponse holding the status of the execution of the requestIdentityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of errorpublic Identity merge(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest request, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse response)
Identity specified in the given IdentityMergeRequest and following the given rules: Identity must exist and not be merged or deleted in te database. If not, FAILURE status is returned in the execution responseIdentityAttribute(s) of the secondary Identity are processed, according to the list of keys specified in the
IdentityMergeRequest.
IdentityAttribute is not present in the primary Identity, it is created.IdentityAttribute is present in the primary Identity, it is updated if the certification process is higher and the value is
different.request - the IdentityMergeRequest holding the parameters of the requestauthor - the author of the requestclientCode - code of the ClientApplication requesting the changeresponse - the IdentityMergeResponse holding the status of the execution of the requestIdentityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of errorpublic void cancelMerge(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse response)
request - the unmerge requestauthor - the author of the requestclientCode - the client code of the calling applicationresponse - the status of the executionpublic Identity importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Identity according to the given IdentityChangeRequestidentityChangeRequest - the IdentityChangeRequest holding the parameters of the identity change requestauthor - the author of the requestclientCode - code of the ClientApplication requesting the changeresponse - the IdentityChangeResponse holding the status of the execution of the requestIdentityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - in case of errorpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getQualifiedIdentity(String customerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void search(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest request,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response,
String clientCode)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
IdentitySearchRequestrequest - the IdentitySearchRequest holding the parameters of the researchauthor - the author of the requestresponse - the IdentitySearchResponse holding the status of the execution status and the results of the requestclientCode - code of the ClientApplication requesting the changeServiceContractNotFoundException - in case of ServiceContract management errorIdentityAttributeNotFoundException - in case of AttributeKey management errorfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void search(String customerId, String connectionId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
customerId - connectionId - response - clientCode - author - the author of the requestIdentityAttributeNotFoundExceptionServiceContractNotFoundExceptionfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto> search(List<String> customerIds)
IdentityDto, providing a list of customer idscustomerIds - the customer ids to search forIdentityDtopublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto search(String customerId)
IdentityDto, providing its customer idcustomerId - the customer id to search forIdentityDtopublic Batch<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto> getIdentitiesBatchForPotentialDuplicate(DuplicateRule rule, int batchSize)
rule - the rule used to get matching identitiespublic void deleteRequest(String customerId, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
customerId - the customer IDclientCode - the client codeauthor - the author of the requestfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse uncertifyIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
strCustomerId - customer IDIdentityAttributeService.uncertifyAttribute(fr.paris.lutece.plugins.identitystore.business.identity.IdentityAttribute)public void delete(String customerId)
Identity objectIdentityAttribute objetcsSuspiciousIdentity objectsExcludedIdentities objectscustomerId - the customerId of the identity to deleteCopyright © 2023 City of Paris. All rights reserved.