wt.clients.filevault
Class FvMountInfoMaster

java.lang.Object
  extended bywt.clients.filevault.FvMountInfoMaster

public class FvMountInfoMaster
extends Object


Nested Class Summary
(package private)  class FvMountInfoMaster.MountInfo
          This class is package scope on purpose
(package private)  class FvMountInfoMaster.VaultSchedInfo
           
 
Field Summary
private  Hashtable _folderKeys
          folders indexed by folder object id.
private  com.objectspace.jgl.HashMap _folderMounts
          Folder mounts keyed by Folder object id.
private  Vector _folders
           
private  com.objectspace.jgl.HashMap _hostKeyedMounts
           
private  Hashtable _hostKeys
          hosts indexed by host object id.
private  Vector _hosts
           
(package private)  Hashtable _locSched
           
private  Hashtable _mounts
           
private  ResourceBundle _rb
           
private  Hashtable _remFolderKeys
           
private  com.objectspace.jgl.HashMap _remoteFolderMounts
           
private  com.objectspace.jgl.HashMap _remoteVaultKeyedMounts
           
(package private)  Hashtable _remSched
           
private  com.objectspace.jgl.HashMap _siteFolders
           
private  com.objectspace.jgl.HashMap _siteHosts
           
private  Hashtable _siteKeys
           
private  com.objectspace.jgl.HashMap _siteMounts
           
private  com.objectspace.jgl.HashMap _siteRemoteFolders
           
private  com.objectspace.jgl.HashMap _siteRemoteVaults
           
private  Vector _sites
           
private  com.objectspace.jgl.HashMap _siteVaults
           
private  com.objectspace.jgl.HashMap _vaultKeyedMounts
           
private  Hashtable _vaultKeys
          Vaults indexed by vault object id.
private  Vector _vaults
           
private  Hashtable _vaultSched
           
private  boolean DEBUG
           
private static String REPL_CLASS
           
private static String REPL_METHOD
           
private static String REV_CLASS
           
private static String REV_METHOD
           
 
Constructor Summary
private FvMountInfoMaster()
          Private constructor
 
Method Summary
 void addFolder(String vaultName, String folderName, long capacity, long threshold, boolean readOnly, boolean enabled, int seqNum)
          addFolder adds a folder to the system.
 void addNewMount(int hostIndex, String folderName, String path, boolean isLocal, boolean folderEnabled)
          addNewMount Adds a new mount to the system.
 void addNewMount(String hostName, String folderName, String path, boolean isLocal, boolean folderEnabled)
          addNewMount Adds a new mount to the system.
private  void addSiteMounts(Long siteID, Enumeration vaultEnum)
           
 void broadcastSiteConfig(Long siteKey)
           
 void cleanFolder(Long folderKey)
           
 void cleanVault(int vaultIndex)
          Cleans the file vault.
 void cleanVault(Long vaultKey)
          Cleans the file vault.
 void createVault(String vaultName, boolean readOnly, boolean remote, Site theSite, boolean designatedForCache)
          createVault Creates a new empty vault in the fileVault system.
 void deleteFolder(Long folderKey)
           
 void deleteHost(Long hostKey)
          Deletes a host given the host object iD.
private  void deleteHostHelper(FvHost theHost)
          deleteHostHelper Actually performs the delete.
 void deleteVault(Long vaultKey)
          Deletes a vault given its vault key
private  Enumeration fetchMounts()
          We are using the Site object as the access control key.
private  void fetchSchedItems(String targClass, String targMethod)
           
 Choice FillFolderChoice(Choice theBox, Site currSite, String currSelection, boolean local)
          Fills a java.awt.Choice box with the folders in selected site and pre-selects a folder item.
 Choice FillHostChoice(Choice theBox, Site currSite, String currSelection)
          Fills a host choice box with the hosts in the selected site, and selects an item at load time.
 Choice FillSiteChoice(Choice theBox)
          There are several places where a choice of available sites is needed.
 Choice FillSiteChoice(Choice theBox, String selectedItem)
           
 Choice FillVaultChoice(Choice theBox)
          There are several places where a combo box of available vaults is needed.
 Choice FillVaultChoice(Choice theBox, Site theSite, String selectedItem, boolean local)
           
 Choice FillVaultChoice(Choice theBox, String selectedItem)
           
 boolean folderHasMounts(Long folderKey)
          Determines whether a folder has any mounts attached.
 FileFolder getFolder(Long folderKey)
          Gets a folder given its object ID.
 FileFolder getFolder(String folderName)
          Return a folder given its name
 FvAdminFolderInfo getFolderInfo(Long key)
          Gets an FvAdminFOlderInfo object.
 Enumeration getFolderMounts(Long folderKey)
           
 Enumeration getFolders()
          Deprecated.  
 Vector getFolders(Vault theVault)
          Gets a vector of Folders given a vault.
 Site getFolderSite(FileFolder theFolder)
          Return site of a folder
 Site getFolderSite(Long folderKey)
          Return site of a folder given its key.
 Site getFolderSite(String folderName)
          Return site of selected folder
 FvHost getHost(int index)
           
 FvHost getHost(Long objID)
          Returns a host given its objectID Returns an FvHost object on success, returns null if the host is not found.
 FvHost getHost(String hostName)
          Return a host given its name
 Enumeration getHostMounts(Long key)
          Returns an enumeration containing all the mounts for a host given the objectID of the vault.
 Enumeration getHosts()
          Deprecated.  
 Site getHostSite(FvHost host)
          Return site of a host
 Site getHostSite(Long hostKey)
          Return site of a host
 Site getHostSite(String hostName)
          Return site of selected host
private  ScheduleItem getLatestScheduleItem(Vault theVault)
          Get the latest schedule item for a particular vault.
 Enumeration getLocalFolderMounts(Long folderKey)
          Returns the mounts of a given folder object.
 FvMount getMount(String mountID)
           
 int getNumberOfSites()
          Return the number of existing sites
private  Long getObjectId(WTObject obj)
           
private  ResourceBundle getRB()
           
 Enumeration getRemoteFolderMounts(Long folderKey)
          Returns the mounts of a given RemoteFolder object.
 Enumeration getRemoteFolders(Long key)
           
 Enumeration getRemoteVaultMounts(Long vaultKey)
          Get all the mounts for a remote vault
 Site getSite(int index)
          Returns a site given its index.
 Site getSite(Long objID)
          Returns a site given its objectID Returns an Site object on success, returns null if the host is not found.
 Site getSite(String siteName)
          Return a site given its name
 Enumeration getSiteFolders(Long siteKey)
          Get all the hosts for a site
 Enumeration getSiteHosts(Long siteKey)
          Get all the hosts for a site
 Enumeration getSiteHosts(Site theSite)
           
 Enumeration getSiteMounts(Long siteKey)
          Get all the mounts for a site
 Enumeration getSiteRemoteFolders(Long siteKey)
           
 Enumeration getSiteRemoteVaults(Long siteKey)
          Get all the remote vaults for a site
 Enumeration getSiteRemoteVaults(Site theSite)
           
 Enumeration getSites()
          Returns an enumeration containing all the sites in the system
 Enumeration getSiteVaults(Long siteKey)
          Get all the vaults for a site
 Enumeration getSiteVaults(Site theSite)
           
 Vault getVault(Long vaultKey)
          Get a vault given its vault Key
 Vault getVault(String vaultName)
          Get a vault given its name
 Enumeration getVaultMounts(Long vaultKey)
          Get all the mounts for a vault.
 Enumeration getVaults()
          Get an enumeration of the current set of vaults.
 FvMountInfoMaster.VaultSchedInfo getVaultSchedInfo(Long key)
           
 FvMountInfoMaster.VaultSchedInfo getVaultSchedInfo(Vault theVault)
           
 Site getVaultSite(Long vaultID)
           
 Site getVaultSite(Vault vault)
           
 boolean hostHasMounts(Long key)
           
private  void init()
          Initialize the collections.
private  void initFolders(Site theSite)
           
private  void initHosts(Site theSite)
          Helper function that initializes the _hosts vector
private  void initialize()
           
private  void initMountInfo()
          Helper method that initializes the MountInfo Structure
private  void initRemoteFolders(Site theSite)
           
private  void initRemoteVaults(Site theSite)
          Helper method to initialize the collection of remote vaults.
private  void initSiteMounts(Site theSite)
           
private  void initSites()
           
private  void initVaults(Site theSite)
          Helper method to initialize the collection of vaults.
 FileFolder moveFolderToNewVault(String vaultName, FileFolder theFolder)
          Move folder to new vault.
 FileFolder moveFolderToNewVault(Vault theVault, FileFolder theFolder)
          Move folder to new vault.
static FvMountInfoMaster newFvMountInfoMaster()
          Create a new object and return it to the caller.
private  boolean remoteFolderHasMounts(Long folderKey)
          Deprecated.  
 void removeMount(String mountID)
          Remove a mount from the system.
 void reset()
          reset Clears all the elements of this class.
 void resetReplication(ReplicaVault theVault)
          Reset the content replication rules for a ReplicaVault At the moment this is a placeholder.
 void resetReplication(Site theSite)
          Reset the replication statuses of the entire site.
 void resetUndelivered(ReplicaVault theVault)
           
 void resetUndelivered(Site theSite)
          Reset repliation for an entire site.
 void toggleEnableFvFolder(Long folderKey)
           
 void toggleEnableRemoteFolder(Long folderKey)
           
 void toggleEnableVault(Long key)
           
 FileFolder updateFolder(FvAdminFolderInfo info)
          Updates the attributes of an FvFolderObject.
private  void updateFolderSeqNumbers(Vault vault)
           
 void updateMount(FvMount mount, String hostName, String folderName, String path, boolean isLocal)
          Updates the attributes of a mount.
 void updateVaultAttrs(Vault theVault, String newName, boolean newReadOnly, boolean newDesignatedForCache)
          Updates the vault attributes Thiis method obdates the attributes of a given vault.
 void updateVaultFolderSeq(Vault origVault, String vaultName, boolean readOnly, Vector folderSeq)
          This function updates a file vault.
 void validateFolderMounts(Long key)
           
 void validateHostMounts(Long key)
           
 void validateMount(String key)
           
 void validateVaultMounts(Long key)
          Validates vault mounts
 boolean vaultHasFolders(Long vaultKey)
          Checks to see if a vault has any folders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rb

private ResourceBundle _rb

DEBUG

private final boolean DEBUG
See Also:
Constant Field Values

_vaults

private Vector _vaults

_folders

private Vector _folders

_hosts

private Vector _hosts

_vaultKeys

private Hashtable _vaultKeys
Vaults indexed by vault object id.


_folderKeys

private Hashtable _folderKeys
folders indexed by folder object id.


_hostKeys

private Hashtable _hostKeys
hosts indexed by host object id.


_folderMounts

private com.objectspace.jgl.HashMap _folderMounts
Folder mounts keyed by Folder object id.


_remoteFolderMounts

private com.objectspace.jgl.HashMap _remoteFolderMounts

_vaultKeyedMounts

private com.objectspace.jgl.HashMap _vaultKeyedMounts

_remoteVaultKeyedMounts

private com.objectspace.jgl.HashMap _remoteVaultKeyedMounts

_hostKeyedMounts

private com.objectspace.jgl.HashMap _hostKeyedMounts

_mounts

private Hashtable _mounts

_sites

private Vector _sites

_siteKeys

private Hashtable _siteKeys

_siteVaults

private com.objectspace.jgl.HashMap _siteVaults

_siteRemoteVaults

private com.objectspace.jgl.HashMap _siteRemoteVaults

_siteHosts

private com.objectspace.jgl.HashMap _siteHosts

_siteFolders

private com.objectspace.jgl.HashMap _siteFolders

_siteMounts

private com.objectspace.jgl.HashMap _siteMounts

_vaultSched

private Hashtable _vaultSched

_remSched

Hashtable _remSched

_locSched

Hashtable _locSched

REV_CLASS

private static final String REV_CLASS
See Also:
Constant Field Values

REV_METHOD

private static final String REV_METHOD
See Also:
Constant Field Values

REPL_CLASS

private static final String REPL_CLASS
See Also:
Constant Field Values

REPL_METHOD

private static final String REPL_METHOD
See Also:
Constant Field Values

_remFolderKeys

private Hashtable _remFolderKeys

_siteRemoteFolders

private com.objectspace.jgl.HashMap _siteRemoteFolders
Constructor Detail

FvMountInfoMaster

private FvMountInfoMaster()
Private constructor

Method Detail

getRB

private ResourceBundle getRB()

newFvMountInfoMaster

public static FvMountInfoMaster newFvMountInfoMaster()
Create a new object and return it to the caller.


initialize

private void initialize()

getSites

public Enumeration getSites()
Returns an enumeration containing all the sites in the system


broadcastSiteConfig

public void broadcastSiteConfig(Long siteKey)
                         throws WTException
Throws:
WTException

getSite

public Site getSite(String siteName)
Return a site given its name


getNumberOfSites

public int getNumberOfSites()
Return the number of existing sites


getSiteHosts

public Enumeration getSiteHosts(Long siteKey)
Get all the hosts for a site


getSiteHosts

public Enumeration getSiteHosts(Site theSite)

getSiteFolders

public Enumeration getSiteFolders(Long siteKey)
Get all the hosts for a site


getSiteVaults

public Enumeration getSiteVaults(Long siteKey)
Get all the vaults for a site


getSiteVaults

public Enumeration getSiteVaults(Site theSite)

getSiteRemoteVaults

public Enumeration getSiteRemoteVaults(Long siteKey)
Get all the remote vaults for a site


getSiteRemoteVaults

public Enumeration getSiteRemoteVaults(Site theSite)

getSiteRemoteFolders

public Enumeration getSiteRemoteFolders(Long siteKey)

getSiteMounts

public Enumeration getSiteMounts(Long siteKey)
Get all the mounts for a site


getVaultSchedInfo

public FvMountInfoMaster.VaultSchedInfo getVaultSchedInfo(Vault theVault)

getVaultSchedInfo

public FvMountInfoMaster.VaultSchedInfo getVaultSchedInfo(Long key)

getVaultSite

public Site getVaultSite(Vault vault)

getVaultSite

public Site getVaultSite(Long vaultID)

getFolderSite

public Site getFolderSite(FileFolder theFolder)
Return site of a folder


getFolderSite

public Site getFolderSite(Long folderKey)
Return site of a folder given its key.


getFolderSite

public Site getFolderSite(String folderName)
Return site of selected folder


getHostSite

public Site getHostSite(Long hostKey)
Return site of a host


getHostSite

public Site getHostSite(FvHost host)
Return site of a host


getHostSite

public Site getHostSite(String hostName)
Return site of selected host


getSite

public Site getSite(Long objID)
Returns a site given its objectID Returns an Site object on success, returns null if the host is not found.


getSite

public Site getSite(int index)
Returns a site given its index. This is meant to be used on lists which are filled via a method like FillSiteChoice. Returns the site on success, returns null on failure.


getHosts

public Enumeration getHosts()
Deprecated.  

Returns an enumeration containing all the hosts in the system.


getHostMounts

public Enumeration getHostMounts(Long key)
Returns an enumeration containing all the mounts for a host given the objectID of the vault.


getHost

public FvHost getHost(int index)

getHost

public FvHost getHost(Long objID)
Returns a host given its objectID Returns an FvHost object on success, returns null if the host is not found.


getHost

public FvHost getHost(String hostName)
Return a host given its name


hostHasMounts

public boolean hostHasMounts(Long key)
                      throws ObjectNoLongerExistsException,
                             WTException
Throws:
ObjectNoLongerExistsException
WTException

deleteHost

public void deleteHost(Long hostKey)
                throws WTException
Deletes a host given the host object iD.

Throws:
WTException

deleteHostHelper

private void deleteHostHelper(FvHost theHost)
                       throws WTException
deleteHostHelper Actually performs the delete. The implementation for this method has been rather volatile, over time its stature has been reduced to one line.

Throws:
WTException

getFolderInfo

public FvAdminFolderInfo getFolderInfo(Long key)
Gets an FvAdminFOlderInfo object. FvAdminFolderInfo is just a data structure which is is used to populate the widgets in the UpdateFolder screen. Returns the FvAdminFolderInfo object on success, and it returns null on failure.


cleanFolder

public void cleanFolder(Long folderKey)
                 throws WTException
Throws:
WTException

deleteFolder

public void deleteFolder(Long folderKey)
                  throws WTException,
                         WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

updateFolderSeqNumbers

private void updateFolderSeqNumbers(Vault vault)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

folderHasMounts

public boolean folderHasMounts(Long folderKey)
Determines whether a folder has any mounts attached.


remoteFolderHasMounts

private boolean remoteFolderHasMounts(Long folderKey)
Deprecated.  


getFolderMounts

public Enumeration getFolderMounts(Long folderKey)

getLocalFolderMounts

public Enumeration getLocalFolderMounts(Long folderKey)
Returns the mounts of a given folder object. This is usefull if the widget you are filling has a place to tuck away the object ID. Returns null if the folder has no mounts.


getRemoteFolderMounts

public Enumeration getRemoteFolderMounts(Long folderKey)
Returns the mounts of a given RemoteFolder object. Returns null if the folder has no mounts, or if there folder is an FvFolder

Returns:
java.util.Enumeration or null.

getFolder

public FileFolder getFolder(Long folderKey)
Gets a folder given its object ID. If a container widget's items has a dataObject, (such as the case of a TreeNode, the user can store the ObjectID there, and use it to get the folder on demand.


toggleEnableFvFolder

public void toggleEnableFvFolder(Long folderKey)
                          throws WTException,
                                 WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

toggleEnableVault

public void toggleEnableVault(Long key)
                       throws WTPropertyVetoException,
                              WTException
Throws:
WTPropertyVetoException
WTException

toggleEnableRemoteFolder

public void toggleEnableRemoteFolder(Long folderKey)
                              throws WTException,
                                     WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

getFolder

public FileFolder getFolder(String folderName)
Return a folder given its name


getVaultMounts

public Enumeration getVaultMounts(Long vaultKey)
Get all the mounts for a vault.


getRemoteVaultMounts

public Enumeration getRemoteVaultMounts(Long vaultKey)
Get all the mounts for a remote vault


getVault

public Vault getVault(Long vaultKey)
Get a vault given its vault Key


getVault

public Vault getVault(String vaultName)
Get a vault given its name


getVaults

public Enumeration getVaults()
Get an enumeration of the current set of vaults.


getFolders

public Vector getFolders(Vault theVault)
                  throws WTException
Gets a vector of Folders given a vault.

Throws:
WTException

FillSiteChoice

public Choice FillSiteChoice(Choice theBox)
There are several places where a choice of available sites is needed. This function localizes the choice. Parameter is a reference to the box to be filled. Pass null if no site is to be pre-selected or pass a string to pre-select a site.


FillSiteChoice

public Choice FillSiteChoice(Choice theBox,
                             String selectedItem)

FillVaultChoice

public Choice FillVaultChoice(Choice theBox)
There are several places where a combo box of available vaults is needed. This function localizes the choice. Parameter is a reference to the box to be filled. Pass null if no vault is to be pre-selected or pass a string to pre-select a vualt.


FillVaultChoice

public Choice FillVaultChoice(Choice theBox,
                              String selectedItem)

FillVaultChoice

public Choice FillVaultChoice(Choice theBox,
                              Site theSite,
                              String selectedItem,
                              boolean local)

FillHostChoice

public Choice FillHostChoice(Choice theBox,
                             Site currSite,
                             String currSelection)
Fills a host choice box with the hosts in the selected site, and selects an item at load time.


FillFolderChoice

public Choice FillFolderChoice(Choice theBox,
                               Site currSite,
                               String currSelection,
                               boolean local)
Fills a java.awt.Choice box with the folders in selected site and pre-selects a folder item.


addFolder

public void addFolder(String vaultName,
                      String folderName,
                      long capacity,
                      long threshold,
                      boolean readOnly,
                      boolean enabled,
                      int seqNum)
               throws WTPropertyVetoException,
                      WTException,
                      PropertyVetoException
addFolder adds a folder to the system. seqNum is optional. It defaults to -1.

Throws:
WTPropertyVetoException
WTException
PropertyVetoException

moveFolderToNewVault

public FileFolder moveFolderToNewVault(String vaultName,
                                       FileFolder theFolder)
                                throws WTPropertyVetoException,
                                       WTException
Move folder to new vault.

Throws:
WTPropertyVetoException
WTException

moveFolderToNewVault

public FileFolder moveFolderToNewVault(Vault theVault,
                                       FileFolder theFolder)
                                throws WTPropertyVetoException,
                                       WTException
Move folder to new vault.

Throws:
WTPropertyVetoException
WTException

updateFolder

public FileFolder updateFolder(FvAdminFolderInfo info)
                        throws WTException,
                               WTPropertyVetoException
Updates the attributes of an FvFolderObject.

Returns:
FvFolder
Throws:
WTException
WTPropertyVetoException

addNewMount

public void addNewMount(int hostIndex,
                        String folderName,
                        String path,
                        boolean isLocal,
                        boolean folderEnabled)
                 throws WTException,
                        WTPropertyVetoException
addNewMount Adds a new mount to the system.

Throws:
WTException, - WTPropertyVetoException
WTException
WTPropertyVetoException

addNewMount

public void addNewMount(String hostName,
                        String folderName,
                        String path,
                        boolean isLocal,
                        boolean folderEnabled)
                 throws WTException,
                        WTPropertyVetoException
addNewMount Adds a new mount to the system.

Throws:
WTException, - WTPropertyVetoException
WTException
WTPropertyVetoException

updateMount

public void updateMount(FvMount mount,
                        String hostName,
                        String folderName,
                        String path,
                        boolean isLocal)
                 throws WTException,
                        WTPropertyVetoException
Updates the attributes of a mount.

Throws:
WTException
WTPropertyVetoException

removeMount

public void removeMount(String mountID)
                 throws WTException
Remove a mount from the system. An exception is thrown by this method if the mount is not a member of the object.

Throws:
WTException

getMount

public FvMount getMount(String mountID)
                 throws WTException
Throws:
WTException

reset

public void reset()
           throws WTException
reset Clears all the elements of this class. Used to do the first cut of refresh

Throws:
WTException

vaultHasFolders

public boolean vaultHasFolders(Long vaultKey)
                        throws WTException
Checks to see if a vault has any folders

Parameters:
vaultKey - the object identifier of the vault.
Throws:
WTException

resetUndelivered

public void resetUndelivered(ReplicaVault theVault)
                      throws WTException
Throws:
WTException

resetUndelivered

public void resetUndelivered(Site theSite)
                      throws WTException
Reset repliation for an entire site.

Throws:
WTException

resetReplication

public void resetReplication(ReplicaVault theVault)
                      throws WTException
Reset the content replication rules for a ReplicaVault At the moment this is a placeholder.

Throws:
WTException

resetReplication

public void resetReplication(Site theSite)
                      throws WTException
Reset the replication statuses of the entire site.

Throws:
WTException

deleteVault

public void deleteVault(Long vaultKey)
                 throws WTException
Deletes a vault given its vault key

Throws:
WTException

validateVaultMounts

public void validateVaultMounts(Long key)
                         throws WTException
Validates vault mounts

Throws:
WTException

validateFolderMounts

public void validateFolderMounts(Long key)
                          throws WTException
Throws:
WTException

validateMount

public void validateMount(String key)
                   throws WTException
Throws:
WTException

validateHostMounts

public void validateHostMounts(Long key)
                        throws WTException
Throws:
WTException

cleanVault

public void cleanVault(Long vaultKey)
                throws WTException
Cleans the file vault.

Throws:
WTException

cleanVault

public void cleanVault(int vaultIndex)
                throws WTException
Cleans the file vault. That means that all the folders in all the file vaults get cleaned. This method forwards the call to the filevault service. Only use this method if the vaults being used are using a widget whose elements cannot store data objects.

Throws:
WTException

createVault

public void createVault(String vaultName,
                        boolean readOnly,
                        boolean remote,
                        Site theSite,
                        boolean designatedForCache)
                 throws WTException,
                        WTPropertyVetoException
createVault Creates a new empty vault in the fileVault system.

Throws:
WTException
WTPropertyVetoException

updateVaultFolderSeq

public void updateVaultFolderSeq(Vault origVault,
                                 String vaultName,
                                 boolean readOnly,
                                 Vector folderSeq)
                          throws WTPropertyVetoException,
                                 WTException
This function updates a file vault. It's input is a screen scrape of the AdminEditVault screen

Throws:
WTPropertyVetoException
WTException

updateVaultAttrs

public void updateVaultAttrs(Vault theVault,
                             String newName,
                             boolean newReadOnly,
                             boolean newDesignatedForCache)
                      throws WTException,
                             WTPropertyVetoException
Updates the vault attributes Thiis method obdates the attributes of a given vault.

Throws:
WTException
WTPropertyVetoException

init

private void init()
           throws WTException
Initialize the collections.

Throws:
WTException

initSites

private void initSites()
                throws WTException
Throws:
WTException

initSiteMounts

private void initSiteMounts(Site theSite)

addSiteMounts

private void addSiteMounts(Long siteID,
                           Enumeration vaultEnum)

getRemoteFolders

public Enumeration getRemoteFolders(Long key)

initRemoteFolders

private void initRemoteFolders(Site theSite)
                        throws WTException
Throws:
WTException

initFolders

private void initFolders(Site theSite)
                  throws WTException
Throws:
WTException

getFolders

public Enumeration getFolders()
Deprecated.  


initHosts

private void initHosts(Site theSite)
                throws WTException
Helper function that initializes the _hosts vector

Throws:
WTException

initVaults

private void initVaults(Site theSite)
                 throws WTException
Helper method to initialize the collection of vaults.

Throws:
WTException

getLatestScheduleItem

private ScheduleItem getLatestScheduleItem(Vault theVault)
Get the latest schedule item for a particular vault. We should move this over to the server side. This is just a place holder for the moment.


fetchSchedItems

private void fetchSchedItems(String targClass,
                             String targMethod)

getObjectId

private Long getObjectId(WTObject obj)

initRemoteVaults

private void initRemoteVaults(Site theSite)
                       throws WTException
Helper method to initialize the collection of remote vaults.

Throws:
WTException

fetchMounts

private Enumeration fetchMounts()
We are using the Site object as the access control key. That means that not all users are allowed to see all mounts in the system. Therefore we need to get all the mounts on the sites that the current user is allowed to see. This helper method constructs that list by collecting all the mounts into a vector, cloning all of its elements into an enueration and then cleans and nulls its return vector so the garbage collector can clean it up.


initMountInfo

private void initMountInfo()
                    throws WTException
Helper method that initializes the MountInfo Structure

Throws:
WTException