Class AttachmentRequestUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canProcessAttachmentRequest​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto, java.lang.String strApplicationCode)
      This method determines whether a user is authorized to initiate an attachment request.
      static boolean canShowUserDataForm​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)
      Allows the display of the user information block in the form to be conditional.
      static java.util.Map<java.lang.String,​java.lang.String> checkIdentityForm​(IdentityFormDTO identityFormDto)  
      static IdentityFormDTO convertToIdentityFormDTO​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDTO)
      Convert to identity form dto
      static void keepOnlyModifiedAttributes​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto newIdentity)
      Filters the attributes of the given IdentityDto to keep only those that have been modified.
      static void updateIdentityDto​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto, IdentityFormDTO identityFormDTO)
      Update identityDto data
      • Methods inherited from class java.lang.Object

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

      • convertToIdentityFormDTO

        public static IdentityFormDTO convertToIdentityFormDTO​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDTO)
        Convert to identity form dto
        Parameters:
        identityDTO -
        Returns:
      • updateIdentityDto

        public static void updateIdentityDto​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto,
                                             IdentityFormDTO identityFormDTO)
        Update identityDto data
        Parameters:
        identityDto -
        identityFormDTO -
      • checkIdentityForm

        public static java.util.Map<java.lang.String,​java.lang.String> checkIdentityForm​(IdentityFormDTO identityFormDto)
      • canShowUserDataForm

        public static boolean canShowUserDataForm​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)
        Allows the display of the user information block in the form to be conditional.
        Parameters:
        identityDto -
        Returns:
        Returns true if the user information block should be displayed
      • canProcessAttachmentRequest

        public static boolean canProcessAttachmentRequest​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto,
                                                          java.lang.String strApplicationCode)
        This method determines whether a user is authorized to initiate an attachment request. It verifies that the user's certification level is strictly lower than the level required by the service contract, and that the minimum certification level required by the SN system falls within the LEVEL_MIN and LEVEL_MAX parameters.
        Parameters:
        identityDto -
        strApplicationCode -
        Returns:
        true if can proccess
      • keepOnlyModifiedAttributes

        public static void keepOnlyModifiedAttributes​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto newIdentity)
        Filters the attributes of the given IdentityDto to keep only those that have been modified.
        Parameters:
        newIdentity -