public final class IdentityRequestValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkAttributes(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto,
int nServiceContractId,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
check attached files are present in identity Dto and that attributes to update exist and are writable (or not writable AND unchanged)
|
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 |
checkDownloadFileAttributeParams(String strConnectionId,
String strClientCode,
String strAttributeKey) |
void |
checkIdentity(String strConnectionId,
String strCustomerId)
check whether the parameters related to the identity are valid or not
|
void |
checkIdentityChange(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange)
check whether the parameters related to the identity change 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 checkIdentity(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.v2.web.rs.dto.IdentityChangeDto identityChange)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - the identity changefr.paris.lutece.portal.service.util.AppException - if the parameters are not validfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkDownloadFileAttributeParams(String strConnectionId, String strClientCode, String strAttributeKey) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strConnectionId - connectionId (must not be empty)strClientCode - client application code (must not be empty)strAttributeKey - attribute key containing file (must not be empty)fr.paris.lutece.portal.service.util.AppException - thrown if input parameters are not valid or no file is foundfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void checkAttributes(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto,
int nServiceContractId,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityDto - identityDto with list of attributesnServiceContractId - service contract to check rightmapAttachedFiles - map of attached filesfr.paris.lutece.portal.service.util.AppException - thrown if provided attributes 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.