public class CommandActionDefinition extends ConfiguredActionDefinition
Constructor and Description |
---|
CommandActionDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
getCatalog() |
String |
getCommand() |
int |
getDelay()
Defines the delay (in seconds) after which the command should start, if asynchronous.
|
Map<String,Object> |
getParams() |
int |
getTimeToWait()
Defines how long (in milliseconds) the UI should remain blocked until notifying user that the action will complete in the background, if asynchronous.
|
boolean |
isAsynchronous()
Defines whether this action should try to run asynchronously, e.g.
|
boolean |
isNotifyUser()
Defines whether the action should notify the user in the Pulse, if asynchronous and if it completes in the background.
|
boolean |
isParallel()
Defines whether the command may be executed in parallel for multiple items, if asynchronous.
|
void |
setAsynchronous(boolean asynchronous) |
void |
setCatalog(String catalog) |
void |
setCommand(String command) |
void |
setDelay(int delay) |
void |
setNotifyUser(boolean notifyUser) |
void |
setParallel(boolean isParallel) |
void |
setParams(Map<String,Object> params) |
void |
setTimeToWait(int timeToWait) |
String |
toString() |
getAvailability, getDescription, getErrorMessage, getFailureMessage, getI18nBasename, getIcon, getImplementationClass, getLabel, getName, getSuccessMessage, setAvailability, setDescription, setErrorMessage, setFailureMessage, setI18nBasename, setIcon, setImplementationClass, setLabel, setName, setSuccessMessage
public String getCommand()
public void setCommand(String command)
public String getCatalog()
CommandsManager.DEFAULT_CATALOG
if not set otherwise.public void setCatalog(String catalog)
public boolean isAsynchronous()
public void setAsynchronous(boolean asynchronous)
public int getDelay()
isAsynchronous()
public void setDelay(int delay)
public boolean isParallel()
true
.isAsynchronous()
public void setParallel(boolean isParallel)
public int getTimeToWait()
isAsynchronous()
public void setTimeToWait(int timeToWait)
public boolean isNotifyUser()
true
.isAsynchronous()
public void setNotifyUser(boolean notifyUser)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.