public class CommandAPIImpl extends Object implements CommandAPI
| Constructor and Description |
|---|
CommandAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String name,
byte[] jar) |
Serializable |
execute(long commandId,
Map<String,Serializable> parameters) |
Serializable |
execute(String name,
Map<String,Serializable> parameters) |
CommandDescriptor |
get(long commandId) |
List<CommandDescriptor> |
getAllCommands(int startIndex,
int maxResults,
CommandCriterion sort) |
CommandDescriptor |
getCommand(String commandName) |
protected static TenantServiceAccessor |
getTenantAccessor() |
List<CommandDescriptor> |
getUserCommands(int startIndex,
int maxResults,
CommandCriterion sort) |
CommandDescriptor |
register(String name,
String description,
String implementation) |
void |
removeDependency(String name) |
SearchResult<CommandDescriptor> |
searchCommands(SearchOptions searchOptions) |
void |
unregister(long commandId) |
void |
unregister(String name) |
void |
unregisterAll() |
void |
update(long commandId,
CommandUpdater updater) |
void |
update(String commandName,
CommandUpdater updateDescriptor) |
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 name, 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 void unregister(String name) throws CommandNotFoundException, DeletionException
unregister in interface CommandAPICommandNotFoundExceptionDeletionExceptionpublic 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(String commandName, CommandUpdater updateDescriptor) throws UpdateException
update in interface CommandAPIUpdateExceptionpublic void unregisterAll()
throws DeletionException
unregisterAll in interface CommandAPIDeletionExceptionpublic List<CommandDescriptor> getUserCommands(int startIndex, int maxResults, CommandCriterion sort)
getUserCommands in interface CommandAPIpublic CommandDescriptor get(long commandId) throws CommandNotFoundException
get in interface CommandAPICommandNotFoundExceptionpublic void update(long commandId,
CommandUpdater updater)
throws UpdateException
update in interface CommandAPIUpdateExceptionpublic void unregister(long commandId)
throws CommandNotFoundException,
DeletionException
unregister in interface CommandAPICommandNotFoundExceptionDeletionExceptionpublic SearchResult<CommandDescriptor> searchCommands(SearchOptions searchOptions) throws SearchException
searchCommands in interface CommandAPISearchExceptionCopyright © 2013 BonitaSoft. All Rights Reserved.