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 |
isAlwaysShowSuccessMessage()
Defines whether the action should always show the success message, even although the action takes less than #timeToWait.
|
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()
Deprecated.
since 6.2. This property is not supported in new framework. Any action can be executed in parallel. Use scheduler module instead to run non parallel jobs.
|
void |
setAlwaysShowSuccessMessage(boolean alwaysShowSuccessMessage) |
void |
setAsynchronous(boolean asynchronous) |
void |
setCatalog(String catalog) |
void |
setCommand(String command) |
void |
setDelay(int delay) |
void |
setNotifyUser(boolean notifyUser) |
void |
setParallel(boolean isParallel)
Deprecated.
since 6.2. This property is not supported in new framework. Any action can be executed in parallel. Use scheduler module instead to run non parallel jobs.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getShortcut
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)
@Deprecated public boolean isParallel()
true
.isAsynchronous()
@MgnlDeprecated(since="6.2", description="This property is not supported in new framework. Any action can be executed in parallel. Use scheduler module instead to run non parallel jobs.") @Deprecated public void setParallel(boolean isParallel)
public int getTimeToWait()
isAsynchronous()
public void setTimeToWait(int timeToWait)
public boolean isNotifyUser()
true
.isAsynchronous()
public void setNotifyUser(boolean notifyUser)
public boolean isAlwaysShowSuccessMessage()
public void setAlwaysShowSuccessMessage(boolean alwaysShowSuccessMessage)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.