public class IdentityAttributeValidationService extends Object
| Constructor and Description |
|---|
IdentityAttributeValidationService() |
| Modifier and Type | Method and Description |
|---|---|
static IdentityAttributeValidationService |
instance() |
void |
validateIdentityAttributeValues(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ChangeResponse response)
Validates all attribute values stored in the provided identity, according to each attribute validation regex.
|
void |
validatePivotAttributesIntegrity(String cuid,
String clientCode,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityRequest,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ChangeResponse response)
Validates the integrity of pivot attributes stored in the provided identity.
If a pivot attribute is present and certified with a process with a greater or equal level to the defined process in configuration, then ALL the pivot attributes need to be present and certified with the same certification process. If the birthcountry code attribute is set and doesn't correspond to FRANCE, then the birthplace code attribute is allowed to be missing. If the above rules are not fullfiled, the response status is put to FAILURE. |
public static IdentityAttributeValidationService instance()
public void validateIdentityAttributeValues(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ChangeResponse response)
throws IdentityAttributeNotFoundException
identity - the identityresponse - the responseIdentityAttributeNotFoundExceptionpublic void validatePivotAttributesIntegrity(String cuid, String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityRequest, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ChangeResponse response) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
cuid - the cuididentityRequest - the identity requestresponse - the responsefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2024 City of Paris. All rights reserved.