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 java.lang.Object implements org.bonitasoft.engine.api.PlatformCommandAPI- Author:
- Matthieu Chaffotte, Zhang Bole, Emmanuel Duchastenier, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description PlatformCommandAPIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependency(java.lang.String name, byte[] jar)java.io.Serializableexecute(java.lang.String platformCommandName, java.util.Map<java.lang.String,java.io.Serializable> parameters)org.bonitasoft.engine.command.CommandDescriptorgetCommand(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.CommandDescriptorregister(java.lang.String name, java.lang.String description, java.lang.String implementation)voidremoveDependency(java.lang.String name)voidunregister(java.lang.String platformCommandName)voidupdate(java.lang.String platformCommandName, org.bonitasoft.engine.command.CommandUpdater updater)
-
-
-
Method Detail
-
addDependency
public void addDependency(java.lang.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(java.lang.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(java.lang.String name, java.lang.String description, java.lang.String implementation) throws org.bonitasoft.engine.exception.CreationException- Specified by:
registerin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.exception.CreationException
-
execute
public 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- 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(java.lang.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(java.lang.String platformCommandName) throws org.bonitasoft.engine.command.CommandNotFoundException- Specified by:
getCommandin interfaceorg.bonitasoft.engine.api.PlatformCommandAPI- Throws:
org.bonitasoft.engine.command.CommandNotFoundException
-
getCommands
public java.util.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(java.lang.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
-
-