au.edu.jcu.hermes.core.filesystem
Class FileSystemModel

java.lang.Object
  extended by au.edu.jcu.hermes.core.filesystem.FileSystemModel
All Implemented Interfaces:
IFileSystemModel

public class FileSystemModel
extends java.lang.Object
implements IFileSystemModel

Author: Mathew Wyatt Organisation: James Cook University Date: Oct 15, 2007 Time: 2:45:12 PM


Constructor Summary
FileSystemModel()
          Initialise the class
 
Method Summary
 void addAppender(Appender appender)
           
 void addFileSystemConnectSuccessListener(java.awt.event.ActionListener actionListener)
           
 void addFileSystemFailedListener(java.awt.event.ActionListener actionListener)
           
 void addShortcutsChangedListener(java.awt.event.ActionListener listener)
           
 RootObject connectToFileSystem(IFileSystemConnector connector)
          Connect to a filesystem given the connector, add the connceted filesystem to the list of connected filesystems, if unable to getConnector, notify of connection failure
 void deleteShortcut(Shortcut shortcut)
          Deletes a give shortcut from persisting
 void disconnect(RootObject rootObject)
          Dosconnects from a given root objects
 java.lang.String getFailureMessage()
          Returns a failure message for the filesystem creation
 java.util.ArrayList<RootObject> getRootObjects()
          returns the root objects, or mount points
 java.util.List<Shortcut> getShortCuts()
          Returns a list of URL shortcuts
 void invokeFailureListeners()
           
 void invokeShortcutsChanged()
           
 void invokeSuccessListeners()
           
 void reConnect(RootObject rootObject)
          reconnects to a given root object
 void saveShortcut(Shortcut shortcut)
          Given a fileobject we want to save the URL so that a person can locate that area at a later stage
 void unMount(FileObject fileObject)
          Unmount a given file object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemModel

public FileSystemModel()
Initialise the class

Method Detail

addAppender

public void addAppender(Appender appender)
Specified by:
addAppender in interface IFileSystemModel

connectToFileSystem

public RootObject connectToFileSystem(IFileSystemConnector connector)
Connect to a filesystem given the connector, add the connceted filesystem to the list of connected filesystems, if unable to getConnector, notify of connection failure

Specified by:
connectToFileSystem in interface IFileSystemModel
Parameters:
connector -
Returns:
the new RootObject that has been added to the list

reConnect

public void reConnect(RootObject rootObject)
Description copied from interface: IFileSystemModel
reconnects to a given root object

Specified by:
reConnect in interface IFileSystemModel

getRootObjects

public java.util.ArrayList<RootObject> getRootObjects()
Description copied from interface: IFileSystemModel
returns the root objects, or mount points

Specified by:
getRootObjects in interface IFileSystemModel
Returns:

getFailureMessage

public java.lang.String getFailureMessage()
Description copied from interface: IFileSystemModel
Returns a failure message for the filesystem creation

Specified by:
getFailureMessage in interface IFileSystemModel
Returns:

invokeFailureListeners

public void invokeFailureListeners()

addFileSystemFailedListener

public void addFileSystemFailedListener(java.awt.event.ActionListener actionListener)
Specified by:
addFileSystemFailedListener in interface IFileSystemModel

addShortcutsChangedListener

public void addShortcutsChangedListener(java.awt.event.ActionListener listener)
Specified by:
addShortcutsChangedListener in interface IFileSystemModel

invokeShortcutsChanged

public void invokeShortcutsChanged()

invokeSuccessListeners

public void invokeSuccessListeners()

addFileSystemConnectSuccessListener

public void addFileSystemConnectSuccessListener(java.awt.event.ActionListener actionListener)
Specified by:
addFileSystemConnectSuccessListener in interface IFileSystemModel

unMount

public void unMount(FileObject fileObject)
Description copied from interface: IFileSystemModel
Unmount a given file object

Specified by:
unMount in interface IFileSystemModel

disconnect

public void disconnect(RootObject rootObject)
Description copied from interface: IFileSystemModel
Dosconnects from a given root objects

Specified by:
disconnect in interface IFileSystemModel

saveShortcut

public void saveShortcut(Shortcut shortcut)
Description copied from interface: IFileSystemModel
Given a fileobject we want to save the URL so that a person can locate that area at a later stage

Specified by:
saveShortcut in interface IFileSystemModel

deleteShortcut

public void deleteShortcut(Shortcut shortcut)
Description copied from interface: IFileSystemModel
Deletes a give shortcut from persisting

Specified by:
deleteShortcut in interface IFileSystemModel

getShortCuts

public java.util.List<Shortcut> getShortCuts()
Description copied from interface: IFileSystemModel
Returns a list of URL shortcuts

Specified by:
getShortCuts in interface IFileSystemModel
Returns: