public interface WidgetValidationContext
UICustomWidget
Modifier and Type | Method and Description |
---|---|
SchemaNode |
getNode(Path aPath)
Returns the node located at the specified path.
|
String |
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.
|
AccessPermission |
getPermission(Path aPath)
Returns the current user's access rights on the node specified by
a path.
|
Session |
getSession()
Returns the current session.
|
Object |
getValue(Path aPath)
Returns the value to the specified path.
|
ValueContextForInputValidation |
getValueContext()
Returns the validation context of the current node.
|
ValueContextForInputValidation |
getValueContext(Path aPath)
Returns the validation context of the specified node.
|
String |
getWidgetName()
Returns a string that uniquely identifies the current component in the current page.
|
String |
getWidgetName(Path aPath)
Returns the custom widget name based on the given path.
|
String |
getWidgetName(String aLocalId)
Returns the custom widget name based on the given string.
|
String |
getWidgetNameOfParent()
Returns the custom widget name of the parent component.
|
Object getValue(Path aPath)
aPath
- the location of the target relative to the current node (for maximizing reusability,
it is advised to use a relative path)Session getSession()
ValueContextForInputValidation getValueContext()
ValueContextForInputValidation getValueContext(Path aPath)
String getOptionalRequestParameterValue(String aParameterName)
String[] getOptionalRequestParameterValues(String aParameterName)
SchemaNode getNode(Path aPath)
SchemaNode.getNode(Path)
String getWidgetName()
The widget name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the widget name policy can be modified at any time.
String getWidgetName(Path aPath)
The widget name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the widget name policy can be modified at any time.
aPath
- location of the target relative to the current node (for maximizing reusability,
it is advised to use a relative path)String getWidgetName(String aLocalId)
The widget name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the widget name policy can be modified at any time.
aLocalId
- must respect the pattern [a-zA-Z0-9_.-]+
String getWidgetNameOfParent()
The web name is only to be used on custom external components (with the HTML attribute name or id for example). It must not be used to manipulate native components or widgets. Native components are internal and the web name policy can be modified at any time.
AccessPermission getPermission(Path aPath)
aPath
- the path of the node. The path must be relative to the path of
the current widget.PathAccessException
- to report that the path is invalid.SessionPermissions.getNodeAccessPermissionForForm(SchemaNode, Adaptation)