Package com.day.cq.wcm.commons.status
Class EditorResourceStatus.Action
java.lang.Object
com.day.cq.wcm.commons.status.EditorResourceStatus.Action
- Enclosing class:
EditorResourceStatus
Defines an action for an EditorResourceStatus. An action is defined by an id and a
label, which are used in the user interface to identify and render the action, respectively.
Actions are created using EditorResourceStatus.Builder.addAction(String, String).
-
Method Summary
-
Method Details
-
getId
Returns the id of this action. The action id is used in the user interface to identify this action, such that it can be acted upon when triggered.
In order to ensure that an action id is unique across different statuses, it should generally be prefixed by the status type (see
ResourceStatusProvider.getType()).- Returns:
- the action id
-
getLabel
Returns the label of this action, which is used in the user interface to render the action.- Returns:
- the action label
-