Class MediationService
java.lang.Object
fr.paris.lutece.plugins.identitymediation.service.MediationService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanSendEmail(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity) Check that the given identity has an email attributestatic MediationServiceinstance()booleanisSuccess(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto apiResponse) Check if the http response is a success or notbooleanvalidateIdentityCertification(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto) Check that the given identity has a minimum certification level according to the following rules: The identity must have all the pivot attributes filled (two possible cases, born in France or not All the pivot attributes must be certified with a level greater or equal than a threshold specified through the identitymediation.merge.minimum.certification property
-
Method Details
-
instance
-
isSuccess
public boolean isSuccess(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto apiResponse) Check if the http response is a success or not- Parameters:
apiResponse- the response to be verified- Returns:
- true in case of success
-
canSendEmail
public boolean canSendEmail(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity) Check that the given identity has an email attribute- Parameters:
identity- the @IdentityDtoto be verified- Returns:
- true if the email @
AttributeDtoexists
-
validateIdentityCertification
public boolean validateIdentityCertification(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto) Check that the given identity has a minimum certification level according to the following rules:- The identity must have all the pivot attributes filled (two possible cases, born in France or not
- All the pivot attributes must be certified with a level greater or equal than a threshold specified through the identitymediation.merge.minimum.certification property
- Parameters:
identityDto- the @IdentityDtoto be verified- Returns:
- true if the rules are matched
-