Class RequiredAttachmentDao

    • Constructor Detail

      • RequiredAttachmentDao

        public RequiredAttachmentDao()
    • Method Detail

      • getRequiredAttachmentForPK

        public RequiredAttachment getRequiredAttachmentForPK​(Object id)
        Return the required attachment for the given id
        Parameters:
        id - the required attachment id
        Returns:
        the required attachment for the given id
      • createOrUpdateRequiredAttachment

        public RequiredAttachment createOrUpdateRequiredAttachment​(Submission submission,
                                                                   RequiredAttachmentMetadata metadata)
        Create or update a RequiredAttachment record for the submission with the specified required attachment metadata.
        Parameters:
        submission - the submission record (required)
        metadata - the required attachment metadata (required)
        Returns:
        the new or update required attachment record
        Since:
        4.1.0
      • createOrUpdateRequiredAttachment

        public RequiredAttachment createOrUpdateRequiredAttachment​(Submission submission,
                                                                   String attachmentName)
        Create or update a RequiredAttachment record for the submission with the specified required attachment name.
        Parameters:
        submission - the submission record (required)
        attachmentName - the required attachment name (required)
        Returns:
        the new or update required attachment record
        Since:
        5.0.0
      • createOrUpdateManuallySubmittedRequiredAttachment

        public RequiredAttachment createOrUpdateManuallySubmittedRequiredAttachment​(Submission submission,
                                                                                    String attachmentName,
                                                                                    String mandatoryStatus)
        Create or update a manually submitted RequiredAttachment record for the submission with the name and mandatory status.
        Parameters:
        submission - the submission record (required)
        attachmentName - the required attachment name (required)
        mandatoryStatus - the mandatory status [ Required | Optional ]
        Returns:
        the new or update required attachment record
        Since:
        4.1.0
      • getRequiredAttachmentForSubmission

        public RequiredAttachment getRequiredAttachmentForSubmission​(Submission submission,
                                                                     String attachmentName)
        Return the required attachment for the given submission and attachment name.
        Parameters:
        submission - the submission record (required)
        attachmentName - the required attachment name (required)
        Returns:
        the required attachment for the given submission and attachment name.
        Since:
        4.1.0