Package org.bonitasoft.engine.api.impl
Class PlatformCommandAPIImpl
java.lang.Object
org.bonitasoft.engine.api.impl.PlatformCommandAPIImpl
- All Implemented Interfaces:
org.bonitasoft.engine.api.PlatformCommandAPI
public class PlatformCommandAPIImpl
extends Object
implements org.bonitasoft.engine.api.PlatformCommandAPI
- Author:
- Matthieu Chaffotte, Zhang Bole, Emmanuel Duchastenier, Celine Souchet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependency(String name, byte[] jar) execute(String platformCommandName, Map<String, Serializable> parameters) org.bonitasoft.engine.command.CommandDescriptorgetCommand(String platformCommandName) List<org.bonitasoft.engine.command.CommandDescriptor>getCommands(int startIndex, int maxResults, org.bonitasoft.engine.command.CommandCriterion sort) org.bonitasoft.engine.command.CommandDescriptorvoidremoveDependency(String name) voidunregister(String platformCommandName) void
-
Constructor Details
-
PlatformCommandAPIImpl
public PlatformCommandAPIImpl()
-
-
Method Details
-
addDependency
public void addDependency(String name, byte[] jar) throws org.bonitasoft.engine.exception.CreationException - Specified by:
addDependencyin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
removeDependency
public void removeDependency(String name) throws org.bonitasoft.engine.command.DependencyNotFoundException, org.bonitasoft.engine.exception.DeletionException - Specified by:
removeDependencyin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.command.DependencyNotFoundExceptionorg.bonitasoft.engine.exception.DeletionException
-
register
public org.bonitasoft.engine.command.CommandDescriptor register(String name, String description, String implementation) throws org.bonitasoft.engine.exception.CreationException - Specified by:
registerin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
execute
public Serializable execute(String platformCommandName, Map<String, Serializable> parameters) throws org.bonitasoft.engine.command.CommandNotFoundException, org.bonitasoft.engine.command.CommandParameterizationException, org.bonitasoft.engine.command.CommandExecutionException- Specified by:
executein interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.command.CommandParameterizationExceptionorg.bonitasoft.engine.command.CommandExecutionException
-
unregister
public void unregister(String platformCommandName) throws org.bonitasoft.engine.command.CommandNotFoundException, org.bonitasoft.engine.exception.DeletionException - Specified by:
unregisterin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.command.CommandNotFoundExceptionorg.bonitasoft.engine.exception.DeletionException
-
getCommand
public org.bonitasoft.engine.command.CommandDescriptor getCommand(String platformCommandName) throws org.bonitasoft.engine.command.CommandNotFoundException - Specified by:
getCommandin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.command.CommandNotFoundException
-
getCommands
public List<org.bonitasoft.engine.command.CommandDescriptor> getCommands(int startIndex, int maxResults, org.bonitasoft.engine.command.CommandCriterion sort) - Specified by:
getCommandsin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI
-
update
public void update(String platformCommandName, org.bonitasoft.engine.command.CommandUpdater updater) throws org.bonitasoft.engine.exception.UpdateException - Specified by:
updatein interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.exception.UpdateException
-