Class SubmissionRepositoryService

java.lang.Object
formflow.library.data.SubmissionRepositoryService

@Service @Transactional public class SubmissionRepositoryService extends Object
Service to retrieve and store Submission objects in the database.
  • Constructor Details

  • Method Details

    • save

      public Submission save(Submission submission)
      Saves the Submission in the database.
      Parameters:
      submission - the submission to save, not null
      Returns:
      UUID of the saved submission
    • findById

      public Optional<Submission> findById(UUID id)
      Searches for a particular Submission by its id
      Parameters:
      id - id of submission to look for, not null
      Returns:
      Optional containing Submission if found, else empty
    • removeFlowCSRF

      public void removeFlowCSRF(Submission submission)
      Removes the CSRF from the Submission's input data, if found.
      Parameters:
      submission - submission to remove the CSRF from, not null
    • removeSubflowCSRF

      public void removeSubflowCSRF(Submission submission, String subflowName)
      Removes the CSRF from a particular Submission's Subflow's iteration data, if found.

      This will remove the CSRF from all the iterations in the subflow.

      Parameters:
      submission - submission to look for subflows in, not null
      subflowName - the subflow to remove the CSRF from, not null