Package de.xima.fc.workflow.model
Class HttpContextData
java.lang.Object
de.xima.fc.workflow.model.HttpContextData
- All Implemented Interfaces:
IHttpContextData,Serializable
POJO implementation of
IHttpContextData with a builder.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for creating an immutable instance ofIHttpContextData. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpContextData.Builderbuilder()booleanbooleanbooleanboolean
-
Method Details
-
getBaseUrl
- Specified by:
getBaseUrlin interfaceIHttpContextData- Returns:
- The base URL of the current HTTP request, i.e. the context path with the protocol, server, and port.
-
getContextPath
- Specified by:
getContextPathin interfaceIHttpContextData- Returns:
- The context path of the current HTTP request, i.e. the path where the formcycle application is running.
-
getFormRequestType
- Specified by:
getFormRequestTypein interfaceIHttpContextData- Returns:
- The form request type of the current HTTP request
-
getFrqSessionAttributesMap
- Specified by:
getFrqSessionAttributesMapin interfaceIHttpContextData- Returns:
- A map of session attributes of the current FRQ session. May be an empty map, but must not be
null.
-
getFrqSessionId
- Specified by:
getFrqSessionIdin interfaceIHttpContextData- Returns:
- The session ID of the current FRQ session. Empty string when not FRQ session exists.
-
getSessionAttributesMap
- Specified by:
getSessionAttributesMapin interfaceIHttpContextData- Returns:
- A map of session attributes of the current HTTP session. May be an empty map, but must not be
null.
-
getSessionId
- Specified by:
getSessionIdin interfaceIHttpContextData- Returns:
- The session ID of the current HTTP session. Empty string when not HTTP session exists.
-
isFormCheckRequested
public boolean isFormCheckRequested()- Specified by:
isFormCheckRequestedin interfaceIHttpContextData- Returns:
trueto indicate the form should be validated on the server, orfalseotherwise.
-
isPreviewRequested
public boolean isPreviewRequested()- Specified by:
isPreviewRequestedin interfaceIHttpContextData- Returns:
trueif a preview was requested,falseotherwise.
-
isReviewRequested
public boolean isReviewRequested()- Specified by:
isReviewRequestedin interfaceIHttpContextData- Returns:
trueif a review was requested (when opening a form in the inbox), orfalseotherwise.
-
isSaveRequested
public boolean isSaveRequested()- Specified by:
isSaveRequestedin interfaceIHttpContextData- Returns:
- Whether the form record should only be saved, i.e. when the user submitted the form via a save button.
Both submit and save buttons are treated equally as in that they both trigger the workflow to be executed.
The main difference is that the default
Vorgang.isSaved()will be set totruebuttons.
-
builder
- Returns:
- A new builder for creating an immutable instance of
IHttpContextData.
-