Interface DraftAFDataService


  • @Deprecated
    public interface DraftAFDataService
    Deprecated.
    DraftAFDataService will get/delete/save user data (attachments and form data) filled in Adaptive Form
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Boolean deleteAFDraftUserData​(java.lang.String draftDataID)
      Deprecated.
      Deletes the user data stored against the ID passed as the argument
      boolean deleteAttachment​(java.lang.String attachmentID)
      Deprecated.
      To delete an attachment
      byte[] getAFDraftUserData​(java.lang.String draftDataID)
      Deprecated.
      Gets the user data stored against the ID passed as the argument
      java.lang.String saveAFUserData​(java.util.Map<java.lang.String,​java.lang.Object> draftUserDataMap)
      Deprecated.
      Saves user data provided in the argument map
      java.lang.String saveAttachments​(byte[] attachmentBytes)
      Deprecated.
      Saves the attachments for current adaptive form instance
    • Method Detail

      • deleteAFDraftUserData

        java.lang.Boolean deleteAFDraftUserData​(java.lang.String draftDataID)
                                         throws FormsPortalException
        Deprecated.
        Deletes the user data stored against the ID passed as the argument
        Parameters:
        draftDataID -
        Returns:
        status for the just occurred delete draft UserData operation
        Throws:
        FormsPortalException
      • saveAFUserData

        java.lang.String saveAFUserData​(java.util.Map<java.lang.String,​java.lang.Object> draftUserDataMap)
                                 throws FormsPortalException
        Deprecated.
        Saves user data provided in the argument map
        Parameters:
        draftUserDataMap - contains Form Data (key - "guideState"), Adaptive Form Name (Key - "guideName"), and Draft DataID (Key - "userDataID") in case of update
        Returns:
        userData ID would be returned which needs to be saved in metadata node
        Throws:
        FormsPortalException
      • getAFDraftUserData

        byte[] getAFDraftUserData​(java.lang.String draftDataID)
                           throws FormsPortalException
        Deprecated.
        Gets the user data stored against the ID passed as the argument
        Parameters:
        Draft - DataID
        Returns:
        guideState (which would then be populated in adaptive form to reload the draft) which is stored against draftDataID
        Throws:
        FormsPortalException
      • saveAttachments

        java.lang.String saveAttachments​(byte[] attachmentBytes)
                                  throws FormsPortalException
        Deprecated.
        Saves the attachments for current adaptive form instance
        Parameters:
        attachmentsBytes - would expect byte array of the attachment to be saved
        Returns:
        id for the attachment just saved (so that it could be retrieved later)
        Throws:
        FormsPortalException
      • deleteAttachment

        boolean deleteAttachment​(java.lang.String attachmentID)
                          throws FormsPortalException
        Deprecated.
        To delete an attachment
        Parameters:
        attachmentID -
        Returns:
        status of delete operation performed on attachment corresponding to this attachment ID
        Throws:
        FormsPortalException