Class MediationService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitymediation.service.MediationService
-
public class MediationService extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanSendEmail(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 Detail
-
instance
public static MediationService 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
-
-