Class AttachmentRequestService


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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static AttachmentRequest createAttachmentRequest​(AttachmentRequest attachmentRequest)
      Create attachment request
      static boolean createIdentityTask​(java.lang.String strCustomerId, java.util.Map<java.lang.String,​java.lang.String> metadata)
      Creating an ATTACHMENT_CERTIFICATION_REQUEST type task
      static void deleteFiles​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto identityTaskDto)
      This method removes user attachments by retrieving information from the taskstack metadata that contains the provider and file path in S3
      static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract​(java.lang.String strApplicationCode)
      Get active service contract
      static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getIdentityByGuid​(java.lang.String strGuid)
      Get identity by guid
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto getIdentityTask​(java.lang.String strTaskCode)
      Get identity task by task code
      static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto getIdentityTaskInProgress​(java.lang.String strCustomerId)
      Returns IdentityTaskDto if the user has a task in progress
      static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchResponse getIdentityTaskSearch​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchRequest request)
      Get identity task search
      static java.util.List<AttachmentRequest> getListAttachmentRequest()
      Gets list of attachment request
      static java.util.List<AttachmentRequest> getListAttachmentRequestByCuid​(java.lang.String strCuid)
      Gets list of attachment request by cuid
      static void removeAttachmentRequest​(int nIdAttachmentRequest)
      Remove attachment request by id
      static boolean updateIdentity​(java.lang.String strCustomerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)
      Update identity
      static boolean updateIdentityTaskStatus​(java.lang.String strTaskCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskStatusType statusType)
      Update identity task status
      • Methods inherited from class java.lang.Object

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

      • BEAN_IDENTITY_STORE_NAME

        public static final java.lang.String BEAN_IDENTITY_STORE_NAME
        See Also:
        Constant Field Values
      • BEAN_SERVICE_CONTRACT_NAME

        public static final java.lang.String BEAN_SERVICE_CONTRACT_NAME
        See Also:
        Constant Field Values
      • PROPERTY_IDENTITY_CLIENT_CODE

        public static final java.lang.String PROPERTY_IDENTITY_CLIENT_CODE
    • Method Detail

      • getIdentityByGuid

        public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getIdentityByGuid​(java.lang.String strGuid)
        Get identity by guid
        Parameters:
        strGuid -
        Returns:
        the identity find
      • updateIdentity

        public static boolean updateIdentity​(java.lang.String strCustomerId,
                                             fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)
        Update identity
        Parameters:
        strCustomerId -
        identityDto -
        Returns:
      • getIdentityTaskSearch

        public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchResponse getIdentityTaskSearch​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchRequest request)
        Get identity task search
        Parameters:
        request -
        Returns:
      • createIdentityTask

        public static boolean createIdentityTask​(java.lang.String strCustomerId,
                                                 java.util.Map<java.lang.String,​java.lang.String> metadata)
        Creating an ATTACHMENT_CERTIFICATION_REQUEST type task
        Parameters:
        request -
        metadata -
        Returns:
        true if the task has been created
      • updateIdentityTaskStatus

        public static boolean updateIdentityTaskStatus​(java.lang.String strTaskCode,
                                                       fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskStatusType statusType)
        Update identity task status
        Parameters:
        strTaskCode -
        statusType -
        Returns:
        true if the status has been updated
      • getIdentityTask

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto getIdentityTask​(java.lang.String strTaskCode)
        Get identity task by task code
        Parameters:
        strTaskCode -
        Returns:
        the identity tasj by task code
      • getActiveServiceContract

        public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract​(java.lang.String strApplicationCode)
        Get active service contract
        Parameters:
        strApplicationCode -
        Returns:
        the active service contract
      • getIdentityTaskInProgress

        public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto getIdentityTaskInProgress​(java.lang.String strCustomerId)
        Returns IdentityTaskDto if the user has a task in progress
        Parameters:
        strCustomerId -
        Returns:
        identityTaskDto if the user has a task in progress
      • deleteFiles

        public static void deleteFiles​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto identityTaskDto)
        This method removes user attachments by retrieving information from the taskstack metadata that contains the provider and file path in S3
        Parameters:
        identityTaskDto -
      • getListAttachmentRequest

        public static java.util.List<AttachmentRequest> getListAttachmentRequest()
        Gets list of attachment request
        Returns:
        list of attachment request
      • getListAttachmentRequestByCuid

        public static java.util.List<AttachmentRequest> getListAttachmentRequestByCuid​(java.lang.String strCuid)
        Gets list of attachment request by cuid
        Returns:
        list of attachment request
      • createAttachmentRequest

        public static AttachmentRequest createAttachmentRequest​(AttachmentRequest attachmentRequest)
        Create attachment request
        Parameters:
        attachmentRequest -
        Returns:
        attachment request created
      • removeAttachmentRequest

        public static void removeAttachmentRequest​(int nIdAttachmentRequest)
        Remove attachment request by id
        Parameters:
        nIdAttachmentRequest -