au.edu.jcu.hermes.core.browser
Interface IBrowserModel

All Known Implementing Classes:
BrowserModel

public interface IBrowserModel

Author: Mathew Wyatt Organisation: James Cook University Date: Jul 30, 2007 Time: 3:55:51 AM


Field Summary
static java.lang.String ERROR
           
static java.lang.String IN_ROOT
           
static java.lang.String NO_FILESYSTEM
           
static java.lang.String OBJECT_ENTERED
           
static java.lang.String OBJECT_SELECTED
           
 
Method Summary
 void addErrorMessageListener(java.awt.event.ActionListener actionListener)
          Invoked for passing error messages
 void addObjectEnteredListener(java.awt.event.ActionListener objectEnteredListener)
          Add listeners which wil be invoked when an object is entered into in the object browser
 void addObjectSelectedListener(java.awt.event.ActionListener actionListener)
          Listeners which will be invoked when a object is selected in the object browser
 void addRootEnteredListeners(java.awt.event.ActionListener actionListener)
          ActionListener to be invoked when the state of the model is in the root area
 void changePermission(ChangePermissionBean changePermBean)
           
 void createNewFolder(java.lang.String folderName)
          Creates a new folder object in the current directory given a name
 void createNewShortcut(Shortcut newShortcut)
           
 void deleteObjects(FileObject[] fileObjects)
          Deletes the given set of objects
 void disconnect(RootObject fileObject)
          Unount the filesystem of a selected root object
 FileObject getEnteredObject()
          Returns the current entered FileObject
 FileObject[] getEnteredObjectChildren()
          Returns the chilren objects of the current entered object
 FilePermissionBean getFilePermission(FileObject fileObject)
          Returns a Map of key value pairs of file permission.
 RootObject[] getLocalResources()
          Returns the local drives
 RootObject[] getRemoteConnections()
          Returns remote connections
 FileObject getSelectedObject()
          Returns the selected Object
 java.util.List<Shortcut> getShortcuts()
           
 void goToLocation(java.lang.String uri)
          Attemps to load an objects contents given the URI of the object
 boolean isProcessing()
          If the browser model is processing a request returns true
 void refresh()
          Refreshes the model and updates the view
 void removeShortcut(Shortcut shortcut)
           
 void rename(RenameBean renameBean)
          Renames a given fileObject to a new name given inside the rename bean
 void setLogger(Logger logger)
           
 void setObjectEntered(FileObject file)
          Set the object entered into in the object browser
 void setObjectSelected(FileObject file)
          Sets the object selected in the object browser
 void setRootObjectEntered(RootObject rootObject)
          Enter a root object ie.
 void stepUp(FileObject fileObject)
          Steps up a directory in the directory hierarchy, based on the current parent file which is in view
 

Field Detail

OBJECT_ENTERED

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

OBJECT_SELECTED

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

NO_FILESYSTEM

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

ERROR

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

IN_ROOT

static final java.lang.String IN_ROOT
See Also:
Constant Field Values
Method Detail

addObjectEnteredListener

void addObjectEnteredListener(java.awt.event.ActionListener objectEnteredListener)
Add listeners which wil be invoked when an object is entered into in the object browser

Parameters:
objectEnteredListener -

addObjectSelectedListener

void addObjectSelectedListener(java.awt.event.ActionListener actionListener)
Listeners which will be invoked when a object is selected in the object browser

Parameters:
actionListener -

addErrorMessageListener

void addErrorMessageListener(java.awt.event.ActionListener actionListener)
Invoked for passing error messages

Parameters:
actionListener -

setObjectEntered

void setObjectEntered(FileObject file)
Set the object entered into in the object browser

Parameters:
file -

setObjectSelected

void setObjectSelected(FileObject file)
Sets the object selected in the object browser

Parameters:
file -

getLocalResources

RootObject[] getLocalResources()
Returns the local drives

Returns:

getRemoteConnections

RootObject[] getRemoteConnections()
Returns remote connections

Returns:

getEnteredObjectChildren

FileObject[] getEnteredObjectChildren()
Returns the chilren objects of the current entered object

Returns:

getEnteredObject

FileObject getEnteredObject()
Returns the current entered FileObject

Returns:

getSelectedObject

FileObject getSelectedObject()
Returns the selected Object

Returns:

getFilePermission

FilePermissionBean getFilePermission(FileObject fileObject)
Returns a Map of key value pairs of file permission. This is based on SRB...

Returns:

stepUp

void stepUp(FileObject fileObject)
Steps up a directory in the directory hierarchy, based on the current parent file which is in view

Parameters:
fileObject -

refresh

void refresh()
Refreshes the model and updates the view


goToLocation

void goToLocation(java.lang.String uri)
Attemps to load an objects contents given the URI of the object

Parameters:
uri -

createNewFolder

void createNewFolder(java.lang.String folderName)
Creates a new folder object in the current directory given a name

Parameters:
folderName -

deleteObjects

void deleteObjects(FileObject[] fileObjects)
Deletes the given set of objects


rename

void rename(RenameBean renameBean)
Renames a given fileObject to a new name given inside the rename bean

Parameters:
renameBean -

changePermission

void changePermission(ChangePermissionBean changePermBean)

disconnect

void disconnect(RootObject fileObject)
Unount the filesystem of a selected root object


addRootEnteredListeners

void addRootEnteredListeners(java.awt.event.ActionListener actionListener)
ActionListener to be invoked when the state of the model is in the root area

Parameters:
actionListener -

setRootObjectEntered

void setRootObjectEntered(RootObject rootObject)
Enter a root object ie. mounted filesystem

Parameters:
rootObject -

isProcessing

boolean isProcessing()
If the browser model is processing a request returns true

Returns:

setLogger

void setLogger(Logger logger)

createNewShortcut

void createNewShortcut(Shortcut newShortcut)

getShortcuts

java.util.List<Shortcut> getShortcuts()

removeShortcut

void removeShortcut(Shortcut shortcut)