public class IdentityService extends Object
| Constructor and Description |
|---|
IdentityService()
Simple Constructor
|
IdentityService(IIdentityTransportProvider transportProvider)
Constructor with IIdentityTransportProvider in parameters
|
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse |
createIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
String strClientCode)
Creates an identity only if the identity does not already exist.
|
void |
deleteIdentity(String strConnectionId,
String strApplicationCode)
Deletes an identity from the specified connectionId
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse |
getIdentity(String strCustomerId,
String strApplicationCode)
get identity matching connectionId and customerId for provided application code
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse |
getIdentityByConnectionId(String strConnectionId,
String strApplicationCode)
get identity matching connectionId for provided application code
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse |
getIdentityByCustomerId(String strCustomerId,
String strApplicationCode)
get identity matching customerId for provided application code
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse |
getServiceContract(String strClientCode)
returns the active service contract for the given application code
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse |
importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
String strClientCode)
import an identity
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse |
searchIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest,
String strClientCode)
returns a list of identity from combination of attributes
|
void |
setTransportProvider(IIdentityTransportProvider transportProvider)
setter of transportProvider parameter
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse |
updateIdentity(String customerId,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
String strClientCode)
apply changes to an identity
|
public IdentityService()
public IdentityService(IIdentityTransportProvider transportProvider)
transportProvider - IIdentityTransportProviderpublic void setTransportProvider(IIdentityTransportProvider transportProvider)
transportProvider - IIdentityTransportProviderpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentityByConnectionId(String strConnectionId, String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strConnectionId - connection IdstrApplicationCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentityByCustomerId(String strCustomerId, String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - customer IdstrApplicationCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentity(String strCustomerId, String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - customer Id (can be null if strConnectionId is provided)strApplicationCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse updateIdentity(String customerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - change to apply to identitystrClientCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if error occured while updating identityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse createIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
String strClientCode)
throws fr.paris.lutece.portal.service.util.AppException,
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
The order to test if the identity exists: - by using the provided customer id if present - by using the provided connection id if present
identityChange - change to apply to identityfr.paris.lutece.portal.service.util.AppException - if error occured while updating identityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void deleteIdentity(String strConnectionId, String strApplicationCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strConnectionId - the connection idstrApplicationCode - the application codefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse searchIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest,
String strClientCode)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identitySearchRequest - search request tpo performstrClientCode - application code who requested identitiesfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getServiceContract(String strClientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strClientCode - application code who requested service contractfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange,
String strClientCode)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - change to apply to identitystrClientCode - application code who requested identitiesfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.