public class PlatformCommandAPIImpl extends Object implements PlatformCommandAPI
| Constructor and Description |
|---|
PlatformCommandAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String name,
byte[] jar) |
Serializable |
execute(String platformCommandName,
Map<String,Serializable> parameters) |
CommandDescriptor |
get(String platformCommandName) |
CommandDescriptor |
getCommand(String platformCommandName) |
List<CommandDescriptor> |
getCommands(int startIndex,
int maxResults,
CommandCriterion sort) |
CommandDescriptor |
register(String name,
String description,
String implementation) |
void |
removeDependency(String name) |
void |
unregister(String platformCommandName) |
void |
update(String platformCommandName,
CommandUpdater updater) |
public void addDependency(String name, byte[] jar) throws AlreadyExistsException, CreationException
addDependency in interface PlatformCommandAPIAlreadyExistsExceptionCreationExceptionpublic void removeDependency(String name) throws DependencyNotFoundException, DeletionException
removeDependency in interface PlatformCommandAPIDependencyNotFoundExceptionDeletionExceptionpublic CommandDescriptor register(String name, String description, String implementation) throws AlreadyExistsException, CreationException
register in interface PlatformCommandAPIAlreadyExistsExceptionCreationExceptionpublic Serializable execute(String platformCommandName, Map<String,Serializable> parameters) throws CommandNotFoundException, CommandParameterizationException, CommandExecutionException
execute in interface PlatformCommandAPICommandNotFoundExceptionCommandParameterizationExceptionCommandExecutionExceptionpublic void unregister(String platformCommandName) throws CommandNotFoundException, DeletionException
unregister in interface PlatformCommandAPICommandNotFoundExceptionDeletionExceptionpublic CommandDescriptor get(String platformCommandName) throws CommandNotFoundException
get in interface PlatformCommandAPICommandNotFoundExceptionpublic CommandDescriptor getCommand(String platformCommandName) throws CommandNotFoundException
getCommand in interface PlatformCommandAPICommandNotFoundExceptionpublic List<CommandDescriptor> getCommands(int startIndex, int maxResults, CommandCriterion sort)
getCommands in interface PlatformCommandAPIpublic void update(String platformCommandName, CommandUpdater updater) throws UpdateException
update in interface PlatformCommandAPIUpdateExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.