public final class IdentityRequestValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkAttributes(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDto identityDto,
String strClientAppCode,
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.v1.web.rs.dto.IdentityDto identityDto,
String strClientAppCode,
AbstractCertifier certifier)
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.v1.web.rs.dto.IdentityChangeDto identityChange)
check whether the parameters related to the identity change are valid or not
|
static IdentityRequestValidator |
instance()
return singleton's instance
|
public static IdentityRequestValidator instance()
public void checkClientApplication(String strClientCode) throws fr.paris.lutece.portal.service.util.AppException
strClientCode - client application codefr.paris.lutece.portal.service.util.AppException - if the parameters are not validpublic void checkIdentity(String strConnectionId, String strCustomerId) throws fr.paris.lutece.portal.service.util.AppException
strConnectionId - the connection idstrCustomerId - the customer idfr.paris.lutece.portal.service.util.AppException - if the parameters are not validpublic void checkIdentityChange(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange)
throws fr.paris.lutece.portal.service.util.AppException
identityChange - the identity changefr.paris.lutece.portal.service.util.AppException - if the parameters are not validpublic void checkDownloadFileAttributeParams(String strConnectionId, String strClientCode, String strAttributeKey) throws fr.paris.lutece.portal.service.util.AppException
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 foundpublic void checkAttributes(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDto identityDto,
String strClientAppCode,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
throws fr.paris.lutece.portal.service.util.AppException
identityDto - identityDto with list of attributesstrClientAppCode - application code to check rightmapAttachedFiles - map of attached filesfr.paris.lutece.portal.service.util.AppException - thrown if provided attributes are not validpublic void checkCertification(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDto identityDto,
String strClientAppCode,
AbstractCertifier certifier)
throws fr.paris.lutece.portal.service.util.AppException
identityChange - the identity changestrClientAppCode - application code to check rightcertifier - the certifierfr.paris.lutece.portal.service.util.AppException - thrown if one of this rule is not okCopyright © 2021 City of Paris. All rights reserved.