project35.mda.config
Class SessionManager
java.lang.Object
project35.mda.config.SessionManager
public class SessionManager
- extends java.lang.Object
this class manages session information, including default directories
used to initialise where file open operations start and a list of
most recently opened files. This is also where information about the
currently registered alert bundles is stored.
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUMBER_OF_RECENT_FILES
public static final int NUMBER_OF_RECENT_FILES
- See Also:
- Constant Field Values
SessionManager
public SessionManager()
getAlertsBundleURLs
public java.net.URL[] getAlertsBundleURLs()
getAlertsBundleURLList
public java.util.ArrayList getAlertsBundleURLList()
- eventually, one of the "getAlertsBundleURLs()" or "getAlertsBundleURLList()" should be removed
getAlertsBundles
public java.util.ArrayList getAlertsBundles()
getImportDirectory
public java.io.File getImportDirectory()
getDataDirectory
public java.io.File getDataDirectory()
getTemplateDirectory
public java.io.File getTemplateDirectory()
getRecentFiles
public java.io.File[] getRecentFiles()
parseSessionFile
public void parseSessionFile(java.io.File sessionFile)
throws javax.xml.parsers.ParserConfigurationException,
Project35Exception,
org.xml.sax.SAXException,
java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
Project35Exception
org.xml.sax.SAXException
java.io.IOException
writeSessionFile
public void writeSessionFile(java.io.File sessionFile)
throws java.io.IOException
- Throws:
java.io.IOException
writeSessionFile
public void writeSessionFile(java.io.OutputStream favouritesConfigurationFile)
throws java.io.IOException
- Throws:
java.io.IOException
setAlertsBundleURLs
public void setAlertsBundleURLs(java.util.ArrayList _alertsBundleURLs)
setDataDirectory
public void setDataDirectory(java.io.File _dataDirectory)
setTemplateDirectory
public void setTemplateDirectory(java.io.File _templateDirectory)
setImportDirectory
public void setImportDirectory(java.io.File _importDirectory)
setRecentFiles
public void setRecentFiles(java.io.File[] recentFiles)
registerRecentFile
public void registerRecentFile(java.io.File recentFile)
addFavouriteFile
public void addFavouriteFile(java.io.File file,
java.util.ArrayList list)