public class CommandAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.CommandAPI
| Constructor and Description |
|---|
CommandAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(java.lang.String name,
byte[] jar) |
java.io.Serializable |
execute(long commandId,
java.util.Map<java.lang.String,java.io.Serializable> parameters) |
java.io.Serializable |
execute(java.lang.String commandName,
java.util.Map<java.lang.String,java.io.Serializable> parameters) |
java.io.Serializable |
executeWithUserTransactions(long commandId,
java.util.Map<java.lang.String,java.io.Serializable> parameters) |
java.io.Serializable |
executeWithUserTransactions(java.lang.String commandName,
java.util.Map<java.lang.String,java.io.Serializable> parameters) |
org.bonitasoft.engine.command.CommandDescriptor |
get(long commandId) |
java.util.List<org.bonitasoft.engine.command.CommandDescriptor> |
getAllCommands(int startIndex,
int maxResults,
org.bonitasoft.engine.command.CommandCriterion sort) |
org.bonitasoft.engine.command.CommandDescriptor |
getCommand(java.lang.String commandName) |
protected static TenantServiceAccessor |
getTenantAccessor() |
java.util.List<org.bonitasoft.engine.command.CommandDescriptor> |
getUserCommands(int startIndex,
int maxResults,
org.bonitasoft.engine.command.CommandCriterion sort) |
org.bonitasoft.engine.command.CommandDescriptor |
register(java.lang.String name,
java.lang.String description,
java.lang.String implementation) |
void |
removeDependency(java.lang.String name) |
org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.command.CommandDescriptor> |
searchCommands(org.bonitasoft.engine.search.SearchOptions searchOptions) |
void |
unregister(long commandId) |
void |
unregister(java.lang.String name) |
void |
unregisterAll() |
void |
update(long commandId,
org.bonitasoft.engine.command.CommandUpdater updateDescriptor) |
void |
update(java.lang.String commandName,
org.bonitasoft.engine.command.CommandUpdater updateDescriptor) |
protected static TenantServiceAccessor getTenantAccessor()
public void addDependency(java.lang.String name,
byte[] jar)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
addDependency in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic void removeDependency(java.lang.String name)
throws org.bonitasoft.engine.command.DependencyNotFoundException,
org.bonitasoft.engine.exception.DeletionException
removeDependency in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.DependencyNotFoundExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.command.CommandDescriptor register(java.lang.String name,
java.lang.String description,
java.lang.String implementation)
throws org.bonitasoft.engine.exception.AlreadyExistsException,
org.bonitasoft.engine.exception.CreationException
register in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.exception.AlreadyExistsExceptionorg.bonitasoft.engine.exception.CreationExceptionpublic java.io.Serializable execute(java.lang.String commandName,
java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.command.CommandParameterizationException,
org.bonitasoft.engine.command.CommandExecutionException
execute in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.command.CommandParameterizationExceptionorg.bonitasoft.engine.command.CommandExecutionExceptionpublic java.io.Serializable execute(long commandId,
java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.command.CommandParameterizationException,
org.bonitasoft.engine.command.CommandExecutionException
execute in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.command.CommandParameterizationExceptionorg.bonitasoft.engine.command.CommandExecutionExceptionpublic java.io.Serializable executeWithUserTransactions(java.lang.String commandName,
java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.command.CommandParameterizationException,
org.bonitasoft.engine.command.CommandExecutionException
executeWithUserTransactions in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.command.CommandParameterizationExceptionorg.bonitasoft.engine.command.CommandExecutionExceptionpublic java.io.Serializable executeWithUserTransactions(long commandId,
java.util.Map<java.lang.String,java.io.Serializable> parameters)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.command.CommandParameterizationException,
org.bonitasoft.engine.command.CommandExecutionException
executeWithUserTransactions in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.command.CommandParameterizationExceptionorg.bonitasoft.engine.command.CommandExecutionExceptionpublic void unregister(long commandId)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.exception.DeletionException
unregister in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic void unregister(java.lang.String name)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.exception.DeletionException
unregister in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic void unregisterAll()
throws org.bonitasoft.engine.exception.DeletionException
unregisterAll in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.command.CommandDescriptor get(long commandId)
throws org.bonitasoft.engine.command.CommandNotFoundException
get in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionpublic org.bonitasoft.engine.command.CommandDescriptor getCommand(java.lang.String commandName)
throws org.bonitasoft.engine.command.CommandNotFoundException
getCommand in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.command.CommandDescriptor> getAllCommands(int startIndex,
int maxResults,
org.bonitasoft.engine.command.CommandCriterion sort)
getAllCommands in interface org.bonitasoft.engine.api.CommandAPIpublic void update(long commandId,
org.bonitasoft.engine.command.CommandUpdater updateDescriptor)
throws org.bonitasoft.engine.exception.UpdateException
update in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic void update(java.lang.String commandName,
org.bonitasoft.engine.command.CommandUpdater updateDescriptor)
throws org.bonitasoft.engine.exception.UpdateException
update in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.exception.UpdateExceptionpublic java.util.List<org.bonitasoft.engine.command.CommandDescriptor> getUserCommands(int startIndex,
int maxResults,
org.bonitasoft.engine.command.CommandCriterion sort)
getUserCommands in interface org.bonitasoft.engine.api.CommandAPIpublic org.bonitasoft.engine.search.SearchResult<org.bonitasoft.engine.command.CommandDescriptor> searchCommands(org.bonitasoft.engine.search.SearchOptions searchOptions)
throws org.bonitasoft.engine.exception.SearchException
searchCommands in interface org.bonitasoft.engine.api.CommandAPIorg.bonitasoft.engine.exception.SearchException