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(java.lang.Integer contractId)check whether the parameters related to the service contract are valid or notvoidcheckCustomerId(java.lang.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 change request are valid or notvoidcheckIdentityForUpdate(java.lang.String strConnectionId, java.lang.String strCustomerId)check whether the parameters related to the identity update are valid or notvoidcheckIdentityHistory(IdentityHistorySearchRequest request)voidcheckIdentitySearch(IdentitySearchRequest identitySearch)check whether the parameters related to the identity search request are valid or notvoidcheckMergeRequest(IdentityMergeRequest identityMergeRequest)Check whether the parameters related to the identity merge request are valid or notvoidcheckServiceContract(ServiceContractDto serviceContractDto)voidcheckUpdatedIdentitySearchRequest(UpdatedIdentitySearchRequest request)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(java.lang.String strCustomerId) throws RequestFormatExceptioncheck whether the parameters related to the identity are valid or not- Parameters:
strCustomerId- the customer id- Throws:
IdentityStoreException- if the parameters are not validRequestFormatException
-
checkContractId
public void checkContractId(java.lang.Integer contractId) throws RequestFormatExceptioncheck whether the parameters related to the service contract are valid or not- Parameters:
contractId- the service contract id- Throws:
RequestFormatException- if the parameters are not valid
-
checkIdentityForUpdate
public void checkIdentityForUpdate(java.lang.String strConnectionId, java.lang.String strCustomerId) throws RequestFormatExceptioncheck whether the parameters related to the identity update are valid or not- Parameters:
strConnectionId- the connection idstrCustomerId- the customer id- Throws:
RequestFormatException- if the parameters are not valid
-
checkIdentityChange
public void checkIdentityChange(IdentityChangeRequest identityChange, boolean isUpdate) throws RequestFormatException
check whether the parameters related to the identity change request are valid or not- Parameters:
identityChange- the change requestisUpdate-truefor updating an existing identity,falsefor creating a new one- Throws:
RequestFormatException
-
checkIdentitySearch
public void checkIdentitySearch(IdentitySearchRequest identitySearch) throws RequestFormatException
check whether the parameters related to the identity search request are valid or not- Parameters:
identitySearch-- Throws:
RequestFormatException
-
checkIdentityHistory
public void checkIdentityHistory(IdentityHistorySearchRequest request) throws RequestFormatException
- Throws:
RequestFormatException
-
checkMergeRequest
public void checkMergeRequest(IdentityMergeRequest identityMergeRequest) throws RequestFormatException
Check whether the parameters related to the identity merge request are valid or not- Parameters:
identityMergeRequest- the identity merge request- Throws:
RequestFormatException- if the parameters are not valid
-
checkCancelMergeRequest
public void checkCancelMergeRequest(IdentityMergeRequest identityMergeRequest) throws RequestFormatException
Check whether the parameters related to the identity merge request are valid or not- Parameters:
identityMergeRequest- the identity merge request- Throws:
RequestFormatException- if the parameters are not valid
-
checkServiceContract
public void checkServiceContract(ServiceContractDto serviceContractDto) throws RequestFormatException
- Throws:
RequestFormatException
-
checkClosingServiceContract
public void checkClosingServiceContract(ServiceContractDto serviceContractDto) throws RequestFormatException
- Throws:
RequestFormatException
-
checkClientApplicationDto
public void checkClientApplicationDto(ClientApplicationDto clientApplicationDto) throws RequestFormatException
- Throws:
RequestFormatException
-
checkUpdatedIdentitySearchRequest
public void checkUpdatedIdentitySearchRequest(UpdatedIdentitySearchRequest request) throws RequestFormatException
- Throws:
RequestFormatException
-
checkExportRequest
public void checkExportRequest(IdentityExportRequest request) throws RequestFormatException
Check whether the Identity Export Request is valid or not- Parameters:
request- the request- Throws:
RequestFormatException- if the request is null or contains an empty or null CUID list
-
-