Interface PlatformCommandService
- All Known Implementing Classes:
PlatformCommandServiceImpl
public interface PlatformCommandService
- Author:
- Zhang Bole, Emmanuel Duchastenier
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(SPlatformCommand command) Create a sPlatformCommandvoidDelete a sPlatformCommand from its namevoidDelete all sPlatformCommandsgetPlatformCommand(String name) Get sPlatformCommand by its namegetPlatformCommands(QueryOptions queryOptions) Get the sPlatformCommand having the given value for the given int indexvoidupdate(SPlatformCommand command, EntityUpdateDescriptor updateDescriptor) Update a sPlatformCommand with given sPlatformCommand and new content.
-
Method Details
-
create
void create(SPlatformCommand command) throws SPlatformCommandAlreadyExistsException, SPlatformCommandCreationException, SPlatformCommandGettingException Create a sPlatformCommand- Parameters:
command-- 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- Since:
- 6.0
-
delete
void delete(String name) throws SPlatformCommandNotFoundException, SPlatformCommandDeletionException, SPlatformCommandGettingException Delete a sPlatformCommand from its name- Parameters:
name- 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- Since:
- 6.0
-
deleteAll
Delete all sPlatformCommands- Throws:
SPlatformCommandDeletionException- occurs when an exception is thrown during sPlatformCommand creation- Since:
- 6.0
-
getPlatformCommand
SPlatformCommand getPlatformCommand(String name) throws SPlatformCommandNotFoundException, SPlatformCommandGettingException Get sPlatformCommand by its name- Parameters:
name-- 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- Since:
- 6.0
-
getPlatformCommands
List<SPlatformCommand> getPlatformCommands(QueryOptions queryOptions) throws SPlatformCommandGettingException Get the sPlatformCommand having the given value for the given int index- Parameters:
queryOptions- criteria- Returns:
- a list of sPlatformCommand
- Throws:
SPlatformCommandGettingException- occurs when an exception is thrown during getting sPlatformCommand- Since:
- 6.0
-
update
void update(SPlatformCommand command, EntityUpdateDescriptor updateDescriptor) throws SPlatformCommandNotFoundException, SPlatformCommandUpdateException Update a sPlatformCommand with given sPlatformCommand and new content.- Parameters:
command-updateDescriptor-- Throws:
SPlatformCommandNotFoundException- occurs when the identifier does not refer to an existing sPlatformCommandSPlatformCommandUpdateException- occurs when an exception is thrown during sPlatformCommand update- Since:
- 6.0
-