Class MediationService


  • public class MediationService
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canSendEmail​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identity)
      Check that the given identity has an email attribute
      static MediationService instance()  
      boolean isSuccess​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.ResponseDto apiResponse)
      Check if the http response is a success or not
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 @IdentityDto to be verified
        Returns:
        true if the email @AttributeDto exists
      • 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 @IdentityDto to be verified
        Returns:
        true if the rules are matched