org.bonitasoft.engine.command.api.impl
public class CommandServiceImpl extends Object implements CommandService
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) |
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)
public void create(org.bonitasoft.engine.command.model.SCommand command) throws SCommandAlreadyExistsException, SCommandCreationException
create in interface CommandServiceSCommandAlreadyExistsExceptionSCommandCreationExceptionpublic 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 void delete(long commandId)
throws SCommandNotFoundException,
SCommandDeletionException
delete in interface CommandServiceSCommandNotFoundExceptionSCommandDeletionExceptionpublic long getNumberOfCommands(org.bonitasoft.engine.persistence.QueryOptions options)
throws org.bonitasoft.engine.persistence.SBonitaSearchException
getNumberOfCommands in interface CommandServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionpublic List<org.bonitasoft.engine.command.model.SCommand> searchCommands(org.bonitasoft.engine.persistence.QueryOptions options) throws org.bonitasoft.engine.persistence.SBonitaSearchException
searchCommands in interface CommandServiceorg.bonitasoft.engine.persistence.SBonitaSearchExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.