insensa
Class CUser

java.lang.Object
  extended by insensa.CUser

public class CUser
extends java.lang.Object


Field Summary
private  CProject activeProject
           
private  java.lang.String name
           
private  java.util.List<CProject> projects
           
static java.lang.String PROP_USER
           
static java.lang.String PROP_WORKSPACE
           
private  java.util.List<UserListener> userListener
           
private  java.lang.String workspacePath
           
 
Constructor Summary
CUser()
           
 
Method Summary
 CProject addNewProject(java.lang.String projectName, java.util.List<IProjectListener> listener)
           
 void addProject(CProject project)
           
 void addUserListener(UserListener listener)
           
 void closeProject()
           
private  int countFiles(CRasterFileSet fileSet)
           
 boolean createProject(CProject project)
           
 CProject getActiveProject()
           
 java.lang.String getName()
           
 CProject getProject(java.lang.String selProjectName)
           
 java.util.List<CProject> getProjects()
           
 java.lang.String getWorkspacePath()
           
 void openProject(CProject project, WorkerStatus wStatus)
           
 void removeProject(CProject project)
           
 void removeProject(java.lang.String projectName)
           
 void setName(java.lang.String name)
           
 void setWorkspacePath(java.lang.String workspacePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projects

private java.util.List<CProject> projects

name

private java.lang.String name

workspacePath

private java.lang.String workspacePath

activeProject

private CProject activeProject

userListener

private java.util.List<UserListener> userListener

PROP_WORKSPACE

public static final java.lang.String PROP_WORKSPACE
See Also:
Constant Field Values

PROP_USER

public static final java.lang.String PROP_USER
See Also:
Constant Field Values
Constructor Detail

CUser

public CUser()
Method Detail

addNewProject

public CProject addNewProject(java.lang.String projectName,
                              java.util.List<IProjectListener> listener)
                       throws java.io.IOException
Parameters:
projectName -
listener -
Returns:
Throws:
java.io.IOException

addProject

public void addProject(CProject project)
Parameters:
project -

addUserListener

public void addUserListener(UserListener listener)
Parameters:
listener -

closeProject

public void closeProject()

countFiles

private int countFiles(CRasterFileSet fileSet)
Parameters:
fileSet -
Returns:

createProject

public boolean createProject(CProject project)
                      throws java.io.IOException
Parameters:
project -
Returns:
Throws:
java.io.IOException

getActiveProject

public CProject getActiveProject()
Returns:

getName

public java.lang.String getName()
Returns:

getProject

public CProject getProject(java.lang.String selProjectName)
Parameters:
selProjectName -
Returns:

getProjects

public java.util.List<CProject> getProjects()
Returns:
a list of all projects or an empty List

getWorkspacePath

public java.lang.String getWorkspacePath()
Returns:

openProject

public void openProject(CProject project,
                        WorkerStatus wStatus)
                 throws java.io.IOException,
                        org.jdom.JDOMException,
                        CRasterFileException
Parameters:
project -
wStatus -
Throws:
java.io.IOException
org.jdom.JDOMException
CRasterFileException

removeProject

public void removeProject(CProject project)
Parameters:
project -

removeProject

public void removeProject(java.lang.String projectName)
                   throws java.io.IOException
Parameters:
projectName -
Throws:
java.io.IOException

setName

public void setName(java.lang.String name)
Parameters:
name -

setWorkspacePath

public void setWorkspacePath(java.lang.String workspacePath)
Parameters:
workspacePath -