Package de.xima.fc.workflow.model
Class HttpContextData
- java.lang.Object
-
- de.xima.fc.workflow.model.HttpContextData
-
- All Implemented Interfaces:
IHttpContextData
,Serializable
public final class HttpContextData extends Object implements IHttpContextData
POJO implementation ofIHttpContextData
with a builder.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpContextData.Builder
Builder for creating an immutable instance ofIHttpContextData
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpContextData.Builder
builder()
String
getBaseUrl()
String
getContextPath()
Map<String,Serializable>
getSessionAttributesMap()
String
getSessionId()
boolean
isFormCheckRequested()
boolean
isPreviewRequested()
boolean
isReviewRequested()
boolean
isSaveRequested()
-
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interfaceIHttpContextData
- Returns:
- The base URL of the current HTTP request, i.e. the context path with the protocol, server, and port.
-
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interfaceIHttpContextData
- Returns:
- The context path of the current HTTP request, i.e. the path where the FORMCYCLE application is running.
-
getSessionAttributesMap
@Nonnull public Map<String,Serializable> getSessionAttributesMap()
- Specified by:
getSessionAttributesMap
in interfaceIHttpContextData
- Returns:
- A map of session attributes of the current HTTP session. May be an empty map, but must not be
null
.
-
getSessionId
public String getSessionId()
- Specified by:
getSessionId
in interfaceIHttpContextData
- Returns:
- The session ID of the current HTTP session. Empty string when there is not HTTP session.
-
isFormCheckRequested
public boolean isFormCheckRequested()
- Specified by:
isFormCheckRequested
in interfaceIHttpContextData
- Returns:
true
to indicate the form should be validated on the server, orfalse
otherwise.
-
isPreviewRequested
public boolean isPreviewRequested()
- Specified by:
isPreviewRequested
in interfaceIHttpContextData
- Returns:
true
if a preview was requested,false
otherwise.
-
isReviewRequested
public boolean isReviewRequested()
- Specified by:
isReviewRequested
in interfaceIHttpContextData
- Returns:
true
if a review was requested (when opening a form in the inbox), orfalse
otherwise.
-
isSaveRequested
public boolean isSaveRequested()
- Specified by:
isSaveRequested
in 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 totrue
buttons.
-
builder
public static HttpContextData.Builder builder()
- Returns:
- A new builder for creating an immutable instance of
IHttpContextData
.
-
-