public class SimpleAction extends Object implements CockpitAction<String,String>
| Constructor and Description |
|---|
SimpleAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerform(ActionContext<String> ctx)
Returns true if the action can be performed for the given context, false otherwise.
|
String |
getConfirmationMessage(ActionContext<String> ctx)
Returns the confirmation message to be shown to the user in the confirmation dialog if confirmation is needed
(see
CockpitAction.needsConfirmation(ActionContext)). |
boolean |
needsConfirmation(ActionContext<String> ctx)
Returns true if the action should be confirmed by user before being performed, false otherwise.
|
ActionResult<String> |
perform(ActionContext<String> ctx)
Performs the action.
|
public ActionResult<String> perform(ActionContext<String> ctx)
CockpitActionperform in interface CockpitAction<String,String>ctx - context containing the data and other informationpublic boolean canPerform(ActionContext<String> ctx)
CockpitActioncanPerform in interface CockpitAction<String,String>ctx - context containing the data and other informationpublic boolean needsConfirmation(ActionContext<String> ctx)
CockpitActionneedsConfirmation in interface CockpitAction<String,String>ctx - context containing the data and other informationpublic String getConfirmationMessage(ActionContext<String> ctx)
CockpitActionCockpitAction.needsConfirmation(ActionContext)).getConfirmationMessage in interface CockpitAction<String,String>ctx - context containing the data and other informationCockpitAction.needsConfirmation(ActionContext)Copyright © 2018. All rights reserved.