insensa.commands
Class AbstractModelCommand

java.lang.Object
  extended by insensa.commands.AbstractModelCommand
All Implemented Interfaces:
ModelCommand
Direct Known Subclasses:
CreateUserCommand, DeleteProjectCommand, ImportConfigCommand, ImportFilesCommand, ImportFolderCommand, ImportProjectCommand, ImportProjectCommand.DeleteFolderSolution, LinkFileCommand, MoveFileCommand, OpenProjectCommand, RenameFileSetCommand, RenameRasterFileCommand

public abstract class AbstractModelCommand
extends java.lang.Object
implements ModelCommand


Field Summary
protected  ICommandProblem problem
           
protected  WorkerStatus workerStatus
           
 
Constructor Summary
AbstractModelCommand()
           
 
Method Summary
 boolean check()
           
 void createDependendCommands()
           
 ICommandProblem getProblem()
           
 WorkerStatus getWorkerStatus()
           
 void retry()
           
 void setWorkerStatus(WorkerStatus wStatus)
           
protected  void throwErrorMessage(java.lang.String errorMessage)
           
protected  void throwProblem(ICommandProblem problem)
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface insensa.commands.ModelCommand
execute
 

Field Detail

workerStatus

protected WorkerStatus workerStatus

problem

protected ICommandProblem problem
Constructor Detail

AbstractModelCommand

public AbstractModelCommand()
Method Detail

check

public boolean check()
Specified by:
check in interface ModelCommand
Returns:
See Also:
ModelCommand.check()

createDependendCommands

public void createDependendCommands()
Specified by:
createDependendCommands in interface ModelCommand
See Also:
ModelCommand.createDependendCommands()

getProblem

public ICommandProblem getProblem()
Specified by:
getProblem in interface ModelCommand
Returns:
See Also:
ModelCommand.getProblem()

getWorkerStatus

public WorkerStatus getWorkerStatus()
Specified by:
getWorkerStatus in interface ModelCommand
Returns:
See Also:
ModelCommand.getWorkerStatus()

retry

public void retry()
           throws java.io.IOException,
                  CRasterFileException
Specified by:
retry in interface ModelCommand
Throws:
java.io.IOException
CRasterFileException
See Also:
ModelCommand.retry()

setWorkerStatus

public void setWorkerStatus(WorkerStatus wStatus)
Specified by:
setWorkerStatus in interface ModelCommand
See Also:
ModelCommand.setWorkerStatus(insensa.WorkerStatus)

throwErrorMessage

protected void throwErrorMessage(java.lang.String errorMessage)
                          throws ModelCommandException
Parameters:
errorMessage -
Throws:
ModelCommandException

throwProblem

protected void throwProblem(ICommandProblem problem)
                     throws ModelCommandException
Parameters:
problem -
Throws:
ModelCommandException

undo

public void undo()
          throws java.io.IOException,
                 CRasterFileException
Specified by:
undo in interface ModelCommand
Throws:
java.io.IOException
CRasterFileException
See Also:
ModelCommand.undo()