public class CommandServiceImpl extends Object implements CommandService
| Modifier and Type | Field and Description |
|---|---|
static int |
FETCH_SIZE |
COMMAND| Constructor and Description |
|---|
CommandServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
CommandProvider defaultCommandProvider) |
CommandServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
CommandProvider defaultCommandProvider,
int fetchSize) |
public static final int FETCH_SIZE
public CommandServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
CommandProvider defaultCommandProvider)
public CommandServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
CommandProvider defaultCommandProvider,
int fetchSize)
public void create(org.bonitasoft.engine.command.model.SCommand command) throws SCommandAlreadyExistsException, SCommandCreationException
create in interface CommandServiceSCommandAlreadyExistsExceptionSCommandCreationExceptionpublic void delete(long commandId)
throws SCommandNotFoundException,
SCommandDeletionException
delete in interface CommandServiceSCommandNotFoundExceptionSCommandDeletionExceptionprotected void delete(org.bonitasoft.engine.command.model.SCommand command, org.bonitasoft.engine.command.model.SCommandLogBuilder logBuilder) throws SCommandDeletionException
SCommandDeletionExceptionpublic void delete(String commandName) throws SCommandNotFoundException, SCommandDeletionException
delete in interface CommandServiceSCommandNotFoundExceptionSCommandDeletionExceptionpublic void deleteAll()
throws SCommandDeletionException
deleteAll in interface CommandServiceSCommandDeletionExceptionpublic org.bonitasoft.engine.command.model.SCommand get(String commandName) throws SCommandNotFoundException
get in interface CommandServiceSCommandNotFoundExceptionpublic List<org.bonitasoft.engine.command.model.SCommand> getAllCommands(int startIndex, int maxResults, org.bonitasoft.engine.command.model.SCommandCriterion sCommandCriterion) throws SCommandGettingException
getAllCommands in interface CommandServiceSCommandGettingExceptionpublic void update(org.bonitasoft.engine.command.model.SCommand command, org.bonitasoft.engine.recorder.model.EntityUpdateDescriptor updateDescriptor) throws SCommandUpdateException
update in interface CommandServiceSCommandUpdateExceptionpublic List<org.bonitasoft.engine.command.model.SCommand> getUserCommands(int startIndex, int maxResults, org.bonitasoft.engine.command.model.SCommandCriterion sCommandCriterion) throws SCommandGettingException
getUserCommands in interface CommandServiceSCommandGettingExceptionpublic org.bonitasoft.engine.command.model.SCommand get(long commandId) throws SCommandNotFoundException
get in interface CommandServiceSCommandNotFoundExceptionpublic long getNumberOfCommands(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaReadException
getNumberOfCommands in interface CommandServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<org.bonitasoft.engine.command.model.SCommand> searchCommands(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaReadException
searchCommands in interface CommandServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void start()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
start in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void stop()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
stop in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void pause()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
pause in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic void resume()
throws org.bonitasoft.engine.commons.exceptions.SBonitaException
resume in interface org.bonitasoft.engine.commons.LifecycleServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionCopyright © 2015 Bonitasoft S.A.. All rights reserved.