Class PlatformCommandServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.platform.command.impl.PlatformCommandServiceImpl
-
- All Implemented Interfaces:
PlatformCommandService
public class PlatformCommandServiceImpl extends java.lang.Object implements PlatformCommandService
- Author:
- Zhang Bole, Matthieu Chaffotte
-
-
Constructor Summary
Constructors Constructor Description PlatformCommandServiceImpl(PersistenceService platformPersistenceService, TechnicalLoggerService logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(SPlatformCommand platformCommand)Create a sPlatformCommandvoiddelete(java.lang.String platformCommandName)Delete a sPlatformCommand from its namevoiddeleteAll()Delete all sPlatformCommandsvoiddeletePlatformCommand(SPlatformCommand sPlatformCommand)SPlatformCommandgetPlatformCommand(java.lang.String platformCommandName)Get sPlatformCommand by its namejava.util.List<SPlatformCommand>getPlatformCommands(QueryOptions queryOptions)Get the sPlatformCommand having the given value for the given int indexvoidupdate(SPlatformCommand platformCommand, EntityUpdateDescriptor updateDescriptor)Update a sPlatformCommand with given sPlatformCommand and new content.
-
-
-
Constructor Detail
-
PlatformCommandServiceImpl
public PlatformCommandServiceImpl(PersistenceService platformPersistenceService, TechnicalLoggerService logger)
-
-
Method Detail
-
create
public void create(SPlatformCommand platformCommand) throws SPlatformCommandAlreadyExistsException, SPlatformCommandCreationException, SPlatformCommandGettingException
Description copied from interface:PlatformCommandServiceCreate a sPlatformCommand- Specified by:
createin interfacePlatformCommandService- Throws:
SPlatformCommandAlreadyExistsException- occurs when the sPlatformCommand has already been takenSPlatformCommandCreationException- occurs when an exception is thrown during sPlatformCommand creationSPlatformCommandGettingException- occurs when an exception is thrown during getting sPlatformCommand
-
deletePlatformCommand
public void deletePlatformCommand(SPlatformCommand sPlatformCommand) throws SPlatformCommandDeletionException
-
delete
public void delete(java.lang.String platformCommandName) throws SPlatformCommandNotFoundException, SPlatformCommandDeletionException, SPlatformCommandGettingExceptionDescription copied from interface:PlatformCommandServiceDelete a sPlatformCommand from its name- Specified by:
deletein interfacePlatformCommandService- Parameters:
platformCommandName- the platform name- Throws:
SPlatformCommandNotFoundException- occurs when the identifier does not refer to an existing sPlatformCommandSPlatformCommandDeletionException- occurs when an exception is thrown during sPlatformCommand creationSPlatformCommandGettingException- occurs when an exception is thrown during getting sPlatformCommand
-
deleteAll
public void deleteAll() throws SPlatformCommandDeletionExceptionDescription copied from interface:PlatformCommandServiceDelete all sPlatformCommands- Specified by:
deleteAllin interfacePlatformCommandService- Throws:
SPlatformCommandDeletionException- occurs when an exception is thrown during sPlatformCommand creation
-
getPlatformCommands
public java.util.List<SPlatformCommand> getPlatformCommands(QueryOptions queryOptions) throws SPlatformCommandGettingException
Description copied from interface:PlatformCommandServiceGet the sPlatformCommand having the given value for the given int index- Specified by:
getPlatformCommandsin interfacePlatformCommandService- Parameters:
queryOptions- criteria- Returns:
- a list of sPlatformCommand
- Throws:
SPlatformCommandGettingException- occurs when an exception is thrown during getting sPlatformCommand
-
getPlatformCommand
public SPlatformCommand getPlatformCommand(java.lang.String platformCommandName) throws SPlatformCommandNotFoundException, SPlatformCommandGettingException
Description copied from interface:PlatformCommandServiceGet sPlatformCommand by its name- Specified by:
getPlatformCommandin interfacePlatformCommandService- Returns:
- an entity of sPlatformCommand
- Throws:
SPlatformCommandNotFoundException- occurs when the identifier does not refer to an existing sPlatformCommandSPlatformCommandGettingException- occurs when an exception is thrown during getting sPlatformCommand
-
update
public void update(SPlatformCommand platformCommand, EntityUpdateDescriptor updateDescriptor) throws SPlatformCommandUpdateException
Description copied from interface:PlatformCommandServiceUpdate a sPlatformCommand with given sPlatformCommand and new content.- Specified by:
updatein interfacePlatformCommandService- Throws:
SPlatformCommandUpdateException- occurs when an exception is thrown during sPlatformCommand update
-
-