public class CommandAPIImpl extends Object implements CommandAPI
| Constructor and Description |
|---|
CommandAPIImpl() |
protected static TenantServiceAccessor getTenantAccessor()
public void addDependency(String name, byte[] jar) throws AlreadyExistsException, CreationException
addDependency in interface CommandAPIAlreadyExistsExceptionCreationExceptionpublic void removeDependency(String name) throws DependencyNotFoundException, DeletionException
removeDependency in interface CommandAPIDependencyNotFoundExceptionDeletionExceptionpublic CommandDescriptor register(String name, String description, String implementation) throws AlreadyExistsException, CreationException
register in interface CommandAPIAlreadyExistsExceptionCreationExceptionpublic Serializable execute(String commandName, Map<String,Serializable> parameters) throws CommandNotFoundException, CommandParameterizationException, CommandExecutionException
execute in interface CommandAPICommandNotFoundExceptionCommandParameterizationExceptionCommandExecutionExceptionpublic Serializable execute(long commandId, Map<String,Serializable> parameters) throws CommandNotFoundException, CommandParameterizationException, CommandExecutionException
execute in interface CommandAPICommandNotFoundExceptionCommandParameterizationExceptionCommandExecutionExceptionpublic Serializable executeWithUserTransactions(String commandName, Map<String,Serializable> parameters) throws CommandNotFoundException, CommandParameterizationException, CommandExecutionException
executeWithUserTransactions in interface CommandAPICommandNotFoundExceptionCommandParameterizationExceptionCommandExecutionExceptionpublic Serializable executeWithUserTransactions(long commandId, Map<String,Serializable> parameters) throws CommandNotFoundException, CommandParameterizationException, CommandExecutionException
executeWithUserTransactions in interface CommandAPICommandNotFoundExceptionCommandParameterizationExceptionCommandExecutionExceptionpublic void unregister(long commandId)
throws CommandNotFoundException,
DeletionException
unregister in interface CommandAPICommandNotFoundExceptionDeletionExceptionpublic void unregister(String name) throws CommandNotFoundException, DeletionException
unregister in interface CommandAPICommandNotFoundExceptionDeletionExceptionpublic void unregisterAll()
throws DeletionException
unregisterAll in interface CommandAPIDeletionExceptionpublic CommandDescriptor get(long commandId) throws CommandNotFoundException
get in interface CommandAPICommandNotFoundExceptionpublic CommandDescriptor getCommand(String commandName) throws CommandNotFoundException
getCommand in interface CommandAPICommandNotFoundExceptionpublic List<CommandDescriptor> getAllCommands(int startIndex, int maxResults, CommandCriterion sort)
getAllCommands in interface CommandAPIpublic void update(long commandId,
CommandUpdater updateDescriptor)
throws UpdateException
update in interface CommandAPIUpdateExceptionpublic void update(String commandName, CommandUpdater updateDescriptor) throws UpdateException
update in interface CommandAPIUpdateExceptionpublic List<CommandDescriptor> getUserCommands(int startIndex, int maxResults, CommandCriterion sort)
getUserCommands in interface CommandAPIpublic SearchResult<CommandDescriptor> searchCommands(SearchOptions searchOptions) throws SearchException
searchCommands in interface CommandAPISearchExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.