public class IdentityService extends Object
| Constructor and Description |
|---|
IdentityService() |
| Modifier and Type | Method and Description |
|---|---|
Identity |
create(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
String applicationCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response)
Creates a new
Identity according to the given IdentityChangeRequest |
void |
createAttributeKey(AttributeKey attributeKey) |
void |
deleteAttributeKey(AttributeKey attributeKey) |
void |
fullIndexing() |
AttributeKey |
getAttributeKey(String keyName) |
Identity |
importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
String applicationCode,
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 identityMergeRequest,
String applicationCode,
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 identitySearchRequest,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response,
String applicationCode)
Perform an identity research over a list of attributes (key and values) specified in the
IdentitySearchRequest |
void |
search(String customerId,
String connectionId,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response,
String applicationCode)
Perform an identity research by customer or connection ID.
|
Identity |
update(String customerId,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest,
String applicationCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse response)
|
void |
updateAttributeKey(AttributeKey attributeKey) |
public static IdentityService instance()
public Identity create(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, String applicationCode, 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 requestapplicationCode - 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 identityChangeRequest, String applicationCode, 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 IdentityidentityChangeRequest - the IdentityChangeRequest holding the parameters of the identity change requestapplicationCode - 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 identityMergeRequest, String applicationCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse response) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
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 of the secondary Identity is read.
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.identityMergeRequest - the IdentityMergeRequest holding the parameters of the requestapplicationCode - 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 Identity importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChangeRequest, String applicationCode, 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 requestapplicationCode - 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 void fullIndexing()
public AttributeKey getAttributeKey(String keyName) throws IdentityAttributeNotFoundException
public void createAttributeKey(AttributeKey attributeKey)
public void updateAttributeKey(AttributeKey attributeKey)
public void deleteAttributeKey(AttributeKey attributeKey)
public void search(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response,
String applicationCode)
throws ServiceContractNotFoundException,
IdentityAttributeNotFoundException
IdentitySearchRequestidentitySearchRequest - the IdentitySearchRequest holding the parameters of the researchresponse - the IdentitySearchResponse holding the status of the execution status and the results of the requestapplicationCode - code of the ClientApplication requesting the changeServiceContractNotFoundException - in case of ServiceContract management errorIdentityAttributeNotFoundException - in case of AttributeKey management errorpublic void search(String customerId, String connectionId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse response, String applicationCode) throws IdentityAttributeNotFoundException, ServiceContractNotFoundException
customerId - connectionId - response - applicationCode - IdentityAttributeNotFoundExceptionServiceContractNotFoundExceptionCopyright © 2023 City of Paris. All rights reserved.