public class PlatformCommandAPIImpl
extends java.lang.Object
implements org.bonitasoft.engine.api.PlatformCommandAPI
| Constructor and Description |
|---|
PlatformCommandAPIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(java.lang.String name,
byte[] jar) |
java.io.Serializable |
execute(java.lang.String platformCommandName,
java.util.Map<java.lang.String,java.io.Serializable> parameters) |
org.bonitasoft.engine.command.CommandDescriptor |
getCommand(java.lang.String platformCommandName) |
java.util.List<org.bonitasoft.engine.command.CommandDescriptor> |
getCommands(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) |
void |
unregister(java.lang.String platformCommandName) |
void |
update(java.lang.String platformCommandName,
org.bonitasoft.engine.command.CommandUpdater updater) |
public void addDependency(java.lang.String name,
byte[] jar)
throws org.bonitasoft.engine.exception.CreationException
addDependency in interface org.bonitasoft.engine.api.PlatformCommandAPIorg.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.PlatformCommandAPIorg.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.CreationException
register in interface org.bonitasoft.engine.api.PlatformCommandAPIorg.bonitasoft.engine.exception.CreationExceptionpublic java.io.Serializable execute(java.lang.String platformCommandName,
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.PlatformCommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.command.CommandParameterizationExceptionorg.bonitasoft.engine.command.CommandExecutionExceptionpublic void unregister(java.lang.String platformCommandName)
throws org.bonitasoft.engine.command.CommandNotFoundException,
org.bonitasoft.engine.exception.DeletionException
unregister in interface org.bonitasoft.engine.api.PlatformCommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.exception.DeletionExceptionpublic org.bonitasoft.engine.command.CommandDescriptor getCommand(java.lang.String platformCommandName)
throws org.bonitasoft.engine.command.CommandNotFoundException
getCommand in interface org.bonitasoft.engine.api.PlatformCommandAPIorg.bonitasoft.engine.command.CommandNotFoundExceptionpublic java.util.List<org.bonitasoft.engine.command.CommandDescriptor> getCommands(int startIndex,
int maxResults,
org.bonitasoft.engine.command.CommandCriterion sort)
getCommands in interface org.bonitasoft.engine.api.PlatformCommandAPIpublic void update(java.lang.String platformCommandName,
org.bonitasoft.engine.command.CommandUpdater updater)
throws org.bonitasoft.engine.exception.UpdateException
update in interface org.bonitasoft.engine.api.PlatformCommandAPIorg.bonitasoft.engine.exception.UpdateException