public class MockIdentityTransportRest extends Object
| Constructor and Description |
|---|
MockIdentityTransportRest() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientApplication(String strClientCode)
check whether the parameters related to the application are valid or not
|
void |
checkCustomerId(String strCustomerId)
check whether the parameters related to the identity are valid or not
|
void |
checkIdentityChange(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange)
check whether the parameters related to the identity are valid or not
|
void |
checkIdentityForUpdate(String strConnectionId,
String strCustomerId)
check whether the parameters related to the identity update are valid or not
|
void |
checkIdentitySearch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearch) |
void |
checkMergeRequest(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest)
Check whether the parameters related to the identity merge request are valid or not
|
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.
|
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.ResponseDto |
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 strClientCode)
get identity matching connectionId 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 to the id store
|
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 |
setHttpTransport(IHttpTransportProvider httpTransport)
setter of httpTransport
|
void |
setIdentityStoreEndPoint(String strIdentityStoreEndPoint)
setter of identityStoreEndPoint
|
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)
Updates an identity.
|
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentity(String strCustomerId, String strClientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
getIdentity in interface IIdentityTransportProviderstrCustomerId - customer IdstrClientCode - application code of calling applicationfr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException - if no identity found for input parametersfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...public 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.plugins.identitystore.web.exception.IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
updateIdentity in interface IIdentityTransportProvidercustomerId - customer IdidentityChange - change to apply to identitystrClientCode - application code who requested identitiesIdentityChangeResponsefr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundExceptionfr.paris.lutece.portal.service.util.AppException - if error occurred while updating identitypublic 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
createIdentity in interface IIdentityTransportProvideridentityChange - change to apply to identityIdentityChangeResponsefr.paris.lutece.portal.service.util.AppException - if error occurred while updating identitypublic 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
IIdentityTransportProviderimportIdentity in interface IIdentityTransportProvideridentityChange - change to apply to identitystrClientCode - application code who requested identitiesfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.ResponseDto deleteIdentity(String strConnectionId, String strApplicationCode)
deleteIdentity in interface IIdentityTransportProviderstrConnectionId - the connection idstrApplicationCode - the application code on the headerResponseDto objectpublic void setIdentityStoreEndPoint(String strIdentityStoreEndPoint)
strIdentityStoreEndPoint - value to usepublic void setHttpTransport(IHttpTransportProvider httpTransport)
httpTransport - IHttpTransportProvider to usepublic 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
searchIdentities in interface IIdentityTransportProvideridentitySearchRequest - change to apply to identitystrClientCode - 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
getServiceContract in interface IIdentityTransportProviderstrClientCode - application code who requested service contractfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkClientApplication(String strClientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strClientCode - client application codefr.paris.lutece.portal.service.util.AppException - if the parameters are not validfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkCustomerId(String strCustomerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - the customer idfr.paris.lutece.portal.service.util.AppException - if the parameters are not validfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkIdentityForUpdate(String strConnectionId, String strCustomerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strConnectionId - the connection idstrCustomerId - the customer idfr.paris.lutece.portal.service.util.AppException - if the parameters are not validfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkIdentityChange(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - fr.paris.lutece.portal.service.util.AppExceptionfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkIdentitySearch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearch)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkMergeRequest(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMergeRequest)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityMergeRequest - the identity merge requestfr.paris.lutece.portal.service.util.AppException - if the parameters are not validfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.