uk.ac.mrc.hgmp.embreo.filemgr
Class EmbreoFileRoots

java.lang.Object
  |
  +--uk.ac.mrc.hgmp.embreo.filemgr.EmbreoFileRoots
All Implemented Interfaces:
java.io.Serializable

public class EmbreoFileRoots
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
EmbreoFileRoots(EmbreoParams mysettings)
          Retrieve the list of available filesystem roots
 
Method Summary
 java.lang.String getCurrentDir()
          Get the currently selected directory
 java.lang.String getCurrentRoot()
          Get the currently selected root
 java.lang.String getDefaultRoot()
          Get the default root, if defined, else return null
 int getDefaultRootIndex()
          Get the index of the default root in the Vector, else return -1
 java.util.Hashtable getRoots()
          Get the list of filesystem roots
 java.util.Vector getRootVector()
          Get the list of filesystem roots
 void setCurrentDir(java.lang.String newDir)
          Set the current directory
 void setCurrentRoot(java.lang.String newRoot)
          Set the current root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbreoFileRoots

public EmbreoFileRoots(EmbreoParams mysettings)
                throws EmbreoAuthException
Retrieve the list of available filesystem roots

Parameters:
mysettings - EmbreoParams defining server parameters
Method Detail

getRoots

public java.util.Hashtable getRoots()
Get the list of filesystem roots


getRootVector

public java.util.Vector getRootVector()
Get the list of filesystem roots


getDefaultRoot

public java.lang.String getDefaultRoot()
Get the default root, if defined, else return null


getDefaultRootIndex

public int getDefaultRootIndex()
Get the index of the default root in the Vector, else return -1


getCurrentDir

public java.lang.String getCurrentDir()
Get the currently selected directory


setCurrentDir

public void setCurrentDir(java.lang.String newDir)
Set the current directory

Parameters:
newRoot - The name of the new current directory

getCurrentRoot

public java.lang.String getCurrentRoot()
Get the currently selected root


setCurrentRoot

public void setCurrentRoot(java.lang.String newRoot)
Set the current root

Parameters:
newRoot - The name of the new filesystem root.