public class CommandService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CoserBusinessConfig |
config |
| Constructor and Description |
|---|
CommandService(CoserBusinessConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
doAction(Command command,
Project project,
AbstractDataContainer container)
Perform command on project.
|
String |
getUniqueCommandUUID()
Generate new unique command UUID.
|
void |
undoAction(Project project,
AbstractDataContainer container)
Undo last command on container.
|
void |
undoAction(Project project,
AbstractDataContainer container,
int commandsCount)
Undo specified command count on container.
|
protected CoserBusinessConfig config
public CommandService(CoserBusinessConfig config)
public String getUniqueCommandUUID()
public void doAction(Command command, Project project, AbstractDataContainer container) throws CoserBusinessException
command - command to performproject - projectcontainer - containerCoserBusinessExceptionpublic void undoAction(Project project, AbstractDataContainer container) throws CoserBusinessException
project - projectcontainer - containerCoserBusinessExceptionpublic void undoAction(Project project, AbstractDataContainer container, int commandsCount) throws CoserBusinessException
project - projectcontainer - containercommandsCount - commands count to undoCoserBusinessExceptionCopyright © 2010–2015 Ifremer. All rights reserved.