insensa.commands
Class ImportProjectCommand

java.lang.Object
  extended by insensa.commands.AbstractModelCommand
      extended by insensa.commands.ImportProjectCommand
All Implemented Interfaces:
ModelCommand

public class ImportProjectCommand
extends AbstractModelCommand


Nested Class Summary
private  class ImportProjectCommand.DeleteFolderSolution
           
 
Field Summary
private  java.util.List<java.io.File> fileConfigs
           
private  java.util.List<java.io.File> fileSetConfigs
           
private  java.io.File projectConfig
           
private  java.io.File sourceDir
           
private  float status
           
private  CUser user
           
 
Fields inherited from class insensa.commands.AbstractModelCommand
problem, workerStatus
 
Constructor Summary
ImportProjectCommand(CUser user, java.io.File sourceDir)
           
 
Method Summary
 void copyFiles(java.io.File source, java.io.File target, float stepSize)
           
private  void correctVersion()
           
 int countFiles(java.io.File source)
           
 void execute()
           
 void setSourceDir(java.io.File sourceDir)
           
 void setUser(CUser user)
           
 
Methods inherited from class insensa.commands.AbstractModelCommand
check, createDependendCommands, getProblem, getWorkerStatus, retry, setWorkerStatus, throwErrorMessage, throwProblem, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceDir

private java.io.File sourceDir

user

private CUser user

fileSetConfigs

private java.util.List<java.io.File> fileSetConfigs

fileConfigs

private java.util.List<java.io.File> fileConfigs

projectConfig

private java.io.File projectConfig

status

private float status
Constructor Detail

ImportProjectCommand

public ImportProjectCommand(CUser user,
                            java.io.File sourceDir)
Parameters:
user -
sourceDir -
Method Detail

copyFiles

public void copyFiles(java.io.File source,
                      java.io.File target,
                      float stepSize)
               throws java.io.IOException
Parameters:
source -
target -
stepSize -
Throws:
java.io.IOException

correctVersion

private void correctVersion()
                     throws java.io.IOException
Throws:
java.io.IOException

countFiles

public int countFiles(java.io.File source)
               throws ModelCommandException
Parameters:
source -
Returns:
Throws:
ModelCommandException

execute

public void execute()
             throws java.io.IOException,
                    CRasterFileException
Throws:
java.io.IOException
CRasterFileException
See Also:
ModelCommand.execute()

setSourceDir

public void setSourceDir(java.io.File sourceDir)
Parameters:
sourceDir -

setUser

public void setUser(CUser user)
Parameters:
user -