Interface PlatformCommandService
-
- All Known Implementing Classes:
PlatformCommandServiceImpl
public interface PlatformCommandService- Author:
- Zhang Bole, Emmanuel Duchastenier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(SPlatformCommand command)Create a sPlatformCommandvoiddelete(java.lang.String name)Delete a sPlatformCommand from its namevoiddeleteAll()Delete all sPlatformCommandsSPlatformCommandgetPlatformCommand(java.lang.String name)Get sPlatformCommand by its namejava.util.List<SPlatformCommand>getPlatformCommands(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 Detail
-
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(java.lang.String name) throws SPlatformCommandNotFoundException, SPlatformCommandDeletionException, SPlatformCommandGettingExceptionDelete 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
void deleteAll() throws SPlatformCommandDeletionExceptionDelete all sPlatformCommands- Throws:
SPlatformCommandDeletionException- occurs when an exception is thrown during sPlatformCommand creation- Since:
- 6.0
-
getPlatformCommand
SPlatformCommand getPlatformCommand(java.lang.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
java.util.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
-
-