@Experimental public interface Action
Interface for a work object action.
Action
instances can be built using an ActionBuilder
.
Modifier and Type | Method and Description |
---|---|
static ActionBuilder |
builder()
Creates a new action builder.
|
static ActionBuilder |
builder(Action template)
Creates a new action builder based on the given template action.
|
String |
getButtonLabel()
Returns the button label.
|
String |
getButtonLabelKey()
Returns the button label i18n message key.
|
String |
getDescription()
Returns the action description.
|
String |
getEndpoint()
The action REST endpoint (relative to the server base URL).
|
HttpMethod |
getEndpointHttpMethod()
The
HttpMethod to be used when the action REST endpoint is invoked. |
String |
getForm()
Returns the form key.
|
String |
getGroup()
Returns the grouping information for this action.
|
String |
getIcon()
Returns the icon key.
|
String |
getId()
Returns the action ID.
|
String |
getName()
Returns the action name.
|
String |
getNameKey()
Returns the action name i18n message key.
|
String |
getUrl()
Returns the navigation URL to be used when the action is completed.
|
Optional<WorkObject> |
getWorkObject()
Returns the optional work object associated with this action.
|
boolean |
isEnabled()
Returns the 'enabled' state.
|
boolean |
isHidden()
Returns the 'hidden' state.
|
boolean |
isRequired()
Returns the 'required' state.
|
String getId()
Returns the action ID.
String getNameKey()
Returns the action name i18n message key.
String getName()
Returns the action name.
String getForm()
Returns the form key.
This method may return null
if no form is required.
HttpMethod getEndpointHttpMethod()
The HttpMethod
to be used when the action REST endpoint is invoked.
String getEndpoint()
The action REST endpoint (relative to the server base URL).
String getButtonLabelKey()
Returns the button label i18n message key.
String getButtonLabel()
Returns the button label.
String getIcon()
Returns the icon key.
String getDescription()
Returns the action description.
boolean isEnabled()
Returns the 'enabled' state.
true
if the action is enabledboolean isHidden()
Returns the 'hidden' state.
true
if the action is hiddenboolean isRequired()
Returns the 'required' state.
true
if the action is requiredString getUrl()
Returns the navigation URL to be used when the action is completed.
The return value should be relative to the server base URL, e.g. "#/dashboard/user". Complete URLs (e.g. https://foo.com) are not supported.
String getGroup()
Returns the grouping information for this action.
Optional<WorkObject> getWorkObject()
Returns the optional work object associated with this action.
static ActionBuilder builder()
Creates a new action builder.
static ActionBuilder builder(Action template)
Creates a new action builder based on the given template action.
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.