public final class IdentityRequestValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
checkAttributes(fr.paris.lutece.plugins.identitystore.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 |
checkCreateParams(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChange,
String strAuthenticationKey)
check input parameters to create an identity
|
void |
checkDownloadFileAttributeParams(String strConnectionId,
String strClientCode,
String strAttributeKey,
String strAuthenticationKey) |
void |
checkFetchParams(String strConnectionId,
int nCustomerId,
String strClientAppCode,
String strAuthenticationKey)
check input parameters to get an identity
|
void |
checkUpdateParams(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChange,
String strAuthenticationKey)
check input parameters to update an identity
|
static IdentityRequestValidator |
instance()
return singleton's instance
|
public static IdentityRequestValidator instance()
public void checkFetchParams(String strConnectionId, int nCustomerId, String strClientAppCode, String strAuthenticationKey) throws fr.paris.lutece.portal.service.util.AppException
strConnectionId - connection id of identity to updatenCustomerId - customerIdstrClientAppCode - client application code asking for modifstrAuthenticationKey - client application hashfr.paris.lutece.portal.service.util.AppException - if the parameters are not validpublic void checkCreateParams(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChange,
String strAuthenticationKey)
throws fr.paris.lutece.portal.service.util.AppException
identityChange - identity changestrAuthenticationKey - client application hashfr.paris.lutece.portal.service.util.AppException - if the parameters are not validpublic void checkUpdateParams(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChange,
String strAuthenticationKey)
throws fr.paris.lutece.portal.service.util.AppException
identityChange - identity changestrAuthenticationKey - client application hashfr.paris.lutece.portal.service.util.AppException - if the parameters are not validpublic void checkDownloadFileAttributeParams(String strConnectionId, String strClientCode, String strAttributeKey, String strAuthenticationKey) 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)strAuthenticationKey - client application hashfr.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.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 validCopyright © 2016 City of Paris. All rights reserved.