Package formflow.library
Class FormFlowController
java.lang.Object
formflow.library.FormFlowController
- Direct Known Subclasses:
FileController,PdfController,ScreenController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<FlowConfiguration>static final Stringprotected final SubmissionRepositoryServiceprotected final UserFileRepositoryService -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleandoesFlowExist(String flow) findOrCreateSubmission(jakarta.servlet.http.HttpSession httpSession, String flow) If the submission information exists in the HttpSession, find it in the db.protected FlowConfigurationprotected SubmissiongetSubmissionFromSession(jakarta.servlet.http.HttpSession session, String flow) This method will return a Submission that was referenced the HttpSession for a particular flow, if one exists.static UUIDgetSubmissionIdForFlow(jakarta.servlet.http.HttpSession session, String flow) Returns the UUID of the Submission associated with the given flow.protected SubmissionsaveToRepository(Submission submission) protected SubmissionsaveToRepository(Submission submission, String subflowName) protected voidsetSubmissionInSession(jakarta.servlet.http.HttpSession session, Submission submission, String flow) protected static voidthrowNotFoundError(String flow, String screen, String message)
-
Field Details
-
submissionRepositoryService
-
userFileRepositoryService
-
flowConfigurations
-
SUBMISSION_MAP_NAME
- See Also:
-
-
Method Details
-
saveToRepository
-
saveToRepository
-
getFlowConfigurationByName
-
doesFlowExist
-
throwNotFoundError
-
findOrCreateSubmission
If the submission information exists in the HttpSession, find it in the db. If a submission is not found, create a new one.- Parameters:
httpSession- The HttpSession to look in for informationflow- The name of the flow to retrieve data about- Returns:
- Submission A Submission object from the database or a new one if one was not found
-
getSubmissionIdForFlow
Returns the UUID of the Submission associated with the given flow.- Parameters:
session- The HttpSession the user is inflow- The flow to look up the submission ID for- Returns:
- The submission id if it exists for the given flow, else null
-
getSubmissionFromSession
protected Submission getSubmissionFromSession(jakarta.servlet.http.HttpSession session, String flow) This method will return a Submission that was referenced the HttpSession for a particular flow, if one exists. If the session or now Submission exists, a null will be returned.- Parameters:
session- the HttpSession data will be looked for inflow- the current flow to retrieve the Submission for- Returns:
- Submission for the flow, if one exists, else null
-
setSubmissionInSession
protected void setSubmissionInSession(jakarta.servlet.http.HttpSession session, Submission submission, String flow)
-