Class IdentityRequestValidator
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.v3.web.rs.RequestValidator
-
- fr.paris.lutece.plugins.identitystore.v3.web.rs.IdentityRequestValidator
-
public final class IdentityRequestValidator extends RequestValidator
util class used to validate identity store request
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCancelMergeRequest(IdentityMergeRequest identityMergeRequest)Check whether the parameters related to the identity merge request are valid or notvoidcheckClientApplicationDto(ClientApplicationDto clientApplicationDto)voidcheckClosingServiceContract(ServiceContractDto serviceContractDto)voidcheckContractId(Integer contractId)check whether the parameters related to the service contract are valid or notvoidcheckCustomerId(String strCustomerId)check whether the parameters related to the identity are valid or notvoidcheckExportRequest(IdentityExportRequest request)Check whether the Identity Export Request is valid or notvoidcheckIdentityChange(IdentityChangeRequest identityChange, boolean isUpdate)check whether the parameters related to the identity are valid or notvoidcheckIdentityForUpdate(String strConnectionId, String strCustomerId)check whether the parameters related to the identity update are valid or notvoidcheckIdentityHistory(IdentityHistorySearchRequest request)voidcheckIdentitySearch(IdentitySearchRequest identitySearch)voidcheckMergeRequest(IdentityMergeRequest identityMergeRequest)Check whether the parameters related to the identity merge request are valid or notvoidcheckServiceContract(ServiceContractDto serviceContractDto)voidcheckUpdatedIdentitySearchRequest(UpdatedIdentitySearchRequest updatedIdentitySearchRequest)static IdentityRequestValidatorinstance()return singleton's instance-
Methods inherited from class fr.paris.lutece.plugins.identitystore.v3.web.rs.RequestValidator
checkApplicationCode, checkAuthor, checkClientCode, checkTargetClientCode
-
-
-
-
Method Detail
-
instance
public static IdentityRequestValidator instance()
return singleton's instance- Returns:
- IdentityRequestValidator
-
checkCustomerId
public void checkCustomerId(String strCustomerId) throws IdentityStoreException
check whether the parameters related to the identity are valid or not- Parameters:
strCustomerId- the customer id- Throws:
IdentityStoreException- if the parameters are not valid
-
checkContractId
public void checkContractId(Integer contractId) throws IdentityStoreException
check whether the parameters related to the service contract are valid or not- Parameters:
contractId- the service contract id- Throws:
IdentityStoreException- if the parameters are not valid
-
checkIdentityForUpdate
public void checkIdentityForUpdate(String strConnectionId, String strCustomerId) throws IdentityStoreException
check whether the parameters related to the identity update are valid or not- Parameters:
strConnectionId- the connection idstrCustomerId- the customer id- Throws:
IdentityStoreException- if the parameters are not valid
-
checkIdentityChange
public void checkIdentityChange(IdentityChangeRequest identityChange, boolean isUpdate) throws IdentityStoreException
check whether the parameters related to the identity are valid or not- Parameters:
identityChange-- Throws:
IdentityStoreException
-
checkIdentitySearch
public void checkIdentitySearch(IdentitySearchRequest identitySearch) throws IdentityStoreException
- Throws:
IdentityStoreException
-
checkIdentityHistory
public void checkIdentityHistory(IdentityHistorySearchRequest request) throws IdentityStoreException
- Throws:
IdentityStoreException
-
checkMergeRequest
public void checkMergeRequest(IdentityMergeRequest identityMergeRequest) throws IdentityStoreException
Check whether the parameters related to the identity merge request are valid or not- Parameters:
identityMergeRequest- the identity merge request- Throws:
IdentityStoreException- if the parameters are not valid
-
checkCancelMergeRequest
public void checkCancelMergeRequest(IdentityMergeRequest identityMergeRequest) throws IdentityStoreException
Check whether the parameters related to the identity merge request are valid or not- Parameters:
identityMergeRequest- the identity merge request- Throws:
IdentityStoreException- if the parameters are not valid
-
checkServiceContract
public void checkServiceContract(ServiceContractDto serviceContractDto) throws IdentityStoreException
- Throws:
IdentityStoreException
-
checkClosingServiceContract
public void checkClosingServiceContract(ServiceContractDto serviceContractDto) throws IdentityStoreException
- Throws:
IdentityStoreException
-
checkClientApplicationDto
public void checkClientApplicationDto(ClientApplicationDto clientApplicationDto) throws IdentityStoreException
- Throws:
IdentityStoreException
-
checkUpdatedIdentitySearchRequest
public void checkUpdatedIdentitySearchRequest(UpdatedIdentitySearchRequest updatedIdentitySearchRequest) throws IdentityStoreException
- Throws:
IdentityStoreException
-
checkExportRequest
public void checkExportRequest(IdentityExportRequest request) throws IdentityStoreException
Check whether the Identity Export Request is valid or not- Parameters:
request- the request- Throws:
IdentityStoreException- if the request is null or contains an empty or null CUID list
-
-