Class PlatformCommandServiceImpl
java.lang.Object
org.bonitasoft.engine.platform.command.impl.PlatformCommandServiceImpl
- All Implemented Interfaces:
PlatformCommandService
- Author:
- Zhang Bole, Matthieu Chaffotte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(SPlatformCommand platformCommand) Create a sPlatformCommandvoidDelete a sPlatformCommand from its namevoidDelete all sPlatformCommandsvoiddeletePlatformCommand(SPlatformCommand sPlatformCommand) getPlatformCommand(String platformCommandName) Get sPlatformCommand by its namegetPlatformCommands(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 Details
-
PlatformCommandServiceImpl
-
-
Method Details
-
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(String platformCommandName) throws SPlatformCommandNotFoundException, SPlatformCommandDeletionException, SPlatformCommandGettingException Description 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
Description copied from interface:PlatformCommandServiceDelete all sPlatformCommands- Specified by:
deleteAllin interfacePlatformCommandService- Throws:
SPlatformCommandDeletionException- occurs when an exception is thrown during sPlatformCommand creation
-
getPlatformCommands
public 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(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
-