Package com.orchestranetworks.ui
Interface UIFormRequestContext
public interface UIFormRequestContext
Encapsulates an HTTP request so that a custom form can
provide the user input validation context.
- Since:
- 5.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondisplayOccurrence
(Object aValue, SchemaNode aNode, boolean useLabels) Returns a string for displaying the specified value of the specified node, according to the current locale of this context.Returns the dataset currently selected.Returns current hierarchy node if the currentUIForm
is instantiated in the context of a hierarchy.Returns the current locale of the user session.Returns the node located at the specified path.getOptionalRequestParameterValue
(String aParameterName) Returns the HTTP parameter value in the incoming request.String[]
getOptionalRequestParameterValues
(String aParameterName) Returns the HTTP parameter values in the incoming request.Returns the current session.Returns the table node to which the form is attached, as specified in the data model.Returns the value at the specified path.getValueContext
(Path aPath) Returns the validation context of the specified node.getWebNameFor
(String aLocalId) Returns a string that uniquely identifies the entity specified in the context of the current form in the current page.getWebNameForPath
(Path aPath) Returns a string that uniquely identifies the entity specified in the context of the current form in the current page.boolean
Returnstrue
if the form is displayed in the context of a new record creation.boolean
Returnstrue
if the form is displayed in the context of the duplication of an existing record.
-
Method Details
-
getLocale
Locale getLocale()Returns the current locale of the user session. -
getSession
Session getSession()Returns the current session. -
getHierarchyNode
HierarchyNode getHierarchyNode()Returns current hierarchy node if the currentUIForm
is instantiated in the context of a hierarchy. Returnsnull
otherwise.This method allows to specialize the look and feel of user interface according to the hierarchy context.
-
getValue
Returns the value at the specified path.- Parameters:
aPath
- the location of the target relative to the current node (for maximizing reusability, it is advised to use a relative path)
-
getTableNode
SchemaNode getTableNode()Returns the table node to which the form is attached, as specified in the data model. -
getNode
Returns the node located at the specified path.- See Also:
-
getWebNameFor
Returns a string that uniquely identifies the entity specified in the context of the current form in the current page. -
getWebNameForPath
Returns a string that uniquely identifies the entity specified in the context of the current form in the current page.- Parameters:
aPath
- location of the target relative to the current node (for maximizing reusability, it is advised to use a relative path)
-
getValueContext
Returns the validation context of the specified node. -
getOptionalRequestParameterValue
Returns the HTTP parameter value in the incoming request. -
getOptionalRequestParameterValues
Returns the HTTP parameter values in the incoming request. -
displayOccurrence
Returns a string for displaying the specified value of the specified node, according to the current locale of this context.The specified value must be related to the specified node.
-
isCreatingRecord
boolean isCreatingRecord()Returnstrue
if the form is displayed in the context of a new record creation. In this case, the persistent record does not yet exist. -
isDuplicatingRecord
boolean isDuplicatingRecord()Returnstrue
if the form is displayed in the context of the duplication of an existing record. In this case, the target persistent record does not yet exist. -
getCurrentDataSet
Adaptation getCurrentDataSet()Returns the dataset currently selected.
-