public final class IdentityRequestValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkCertification(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto,
int nServiceContractId)
Check certification authorization, in this order - clientApplication has to got the certifier - certifier and clientApplication must have certification
right on all attributs of the identitychange given
|
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
|
void |
checkSearchAttributes(Map<String,List<String>> mapAttributeValues,
int nServiceContractId)
check attached files are present in identity Dto and that attributes to update exist and are writable (or not writable AND unchanged)
|
static IdentityRequestValidator |
instance()
return singleton's instance
|
public static IdentityRequestValidator instance()
public 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.IdentityStoreExceptionpublic void checkSearchAttributes(Map<String,List<String>> mapAttributeValues, int nServiceContractId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
mapAttributeValues - map of attached filesnServiceContractId - service contract to check rightfr.paris.lutece.portal.service.util.AppException - thrown if provided attributes are not validfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkCertification(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto,
int nServiceContractId)
throws fr.paris.lutece.portal.service.util.AppException
identityDto - the identity to checknServiceContractId - service contract to check rightfr.paris.lutece.portal.service.util.AppException - thrown if one of this rule is not okCertifierNotFoundExceptionCopyright © 2023 City of Paris. All rights reserved.