Class IdentityRequestValidator
java.lang.Object
fr.paris.lutece.plugins.identitystore.v3.web.rs.RequestValidator
fr.paris.lutece.plugins.identitystore.v3.web.rs.IdentityRequestValidator
util class used to validate identity store request
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCancelMergeRequest(IdentityMergeRequest identityMergeRequest) Check whether the parameters related to the identity merge request are valid or notvoidcheckClientApplicationDto(ClientApplicationDto clientApplicationDto) voidcheckClientCode(String clientCode) check whether the parameters related to the application are valid or notvoidcheckClosingServiceContract(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 change request are valid or notvoidcheckIdentityForUpdate(String strConnectionId, String strCustomerId) check whether the parameters related to the identity update are valid or notvoidvoidcheckIdentitySearch(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) voidstatic IdentityRequestValidatorinstance()return singleton's instanceMethods inherited from class fr.paris.lutece.plugins.identitystore.v3.web.rs.RequestValidator
checkApplicationCode, checkAuthor, checkTargetClientCode
-
Method Details
-
instance
return singleton's instance- Returns:
- IdentityRequestValidator
-
checkCustomerId
check 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
check 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(String strConnectionId, String strCustomerId) throws RequestFormatException check 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
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
-
checkClientCode
Description copied from class:RequestValidatorcheck whether the parameters related to the application are valid or not- Overrides:
checkClientCodein classRequestValidator- Parameters:
clientCode- client application code- Throws:
RequestFormatException- if the parameters are not valid
-
checkUpdatedIdentitySearchRequest
public void checkUpdatedIdentitySearchRequest(UpdatedIdentitySearchRequest request) throws RequestFormatException - Throws:
RequestFormatException
-
checkExportRequest
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
-