project35.desktopDeployment
Class Workspace

java.lang.Object
  extended by project35.desktopDeployment.Workspace

public class Workspace
extends Object

This is a container class meant to hold all the state information needed to support launching a project35 session with a given model. It was developed to help make Project35 depend less on static variables


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)

Field Summary
protected  URL documentDirectoryURL
           
protected  URL fileExtensionsToLaunchURL
           
protected  URL helpDirectoryURL
           
protected  URL libraryDirectoryURL
           
protected  Locale locale
           
protected  URL mainConfigurationURL
           
protected  ArrayList plugins
           
protected  Project35ApplicationContext project35ApplicationContext
           
protected  URL resourceDirectoryURL
           
protected  SecurityService securityService
           
protected  User user
           
protected  ValidationServiceRegistry validationServiceRegistry
           
 
Constructor Summary
Workspace()
           
Workspace(Project35ApplicationContext project35ApplicationContext)
           
 
Method Summary
static Workspace createWorkSpace(Startup startup)
           
 Project35ConfigurationReader getConfigurationReader()
           
 URL getDocumentDirectory()
           
 URL getFileExtensionsToLaunchURL()
           
 URL getHelpDirectory()
           
 IDGeneratorServiceFactory getIDGeneratorServiceFactory()
           
 URL getLibraryDirectory()
           
 Locale getLocale()
           
 URL getMainConfigurationURL()
           
 File getModelDirectory()
           
 PluginFactory getPluginFactory()
           
 ArrayList getPlugins()
           
 Project35ApplicationContext getProject35ApplicationContext()
           
 Project35FormContext getProject35FormContext()
           
 RecordModelFactory getRecordModelFactory()
           
 RecordViewFactory getRecordViewFactory()
           
 URL getResourceDirectory()
           
 URL getSchema()
           
 File getSessionFile()
           
 SessionManager getSessionManager()
           
 Project35UIFactory getUserInterfaceFactory()
           
 ValidationServiceRegistry getValidationServiceRegistry()
           
 WindowRegistry getWindowRegistry()
           
 WorkspaceFiles getWorkSpaceFiles()
           
 void setConfigurationReader(Project35ConfigurationReader configurationReader)
           
 void setIDGeneratorServiceFactory(IDGeneratorServiceFactory idGeneratorServiceFactory)
           
 void setModelDirectory(File modelDirectory)
           
 void setPlugins(ArrayList plugins)
           
 void setRecordModelFactory(RecordModelFactory recordModelFactory)
           
 void setRecordViewFactory(RecordViewFactory recordViewFactory)
           
 void setUserInterfaceFactory(Project35UIFactory project35UIFactory)
           
 void setWindowRegistry(WindowRegistry windowRegistry)
           
 void setWorkSpaceFiles(WorkspaceFiles workSpaceFiles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mainConfigurationURL

protected URL mainConfigurationURL

fileExtensionsToLaunchURL

protected URL fileExtensionsToLaunchURL

resourceDirectoryURL

protected URL resourceDirectoryURL

libraryDirectoryURL

protected URL libraryDirectoryURL

documentDirectoryURL

protected URL documentDirectoryURL

helpDirectoryURL

protected URL helpDirectoryURL

plugins

protected ArrayList plugins

project35ApplicationContext

protected Project35ApplicationContext project35ApplicationContext

securityService

protected SecurityService securityService

user

protected User user

validationServiceRegistry

protected ValidationServiceRegistry validationServiceRegistry

locale

protected Locale locale
Constructor Detail

Workspace

public Workspace(Project35ApplicationContext project35ApplicationContext)

Workspace

public Workspace()
Method Detail

getProject35ApplicationContext

public Project35ApplicationContext getProject35ApplicationContext()

getProject35FormContext

public Project35FormContext getProject35FormContext()

getValidationServiceRegistry

public ValidationServiceRegistry getValidationServiceRegistry()

getWorkSpaceFiles

public WorkspaceFiles getWorkSpaceFiles()

createWorkSpace

public static Workspace createWorkSpace(Startup startup)

getPlugins

public ArrayList getPlugins()

getPluginFactory

public PluginFactory getPluginFactory()

getRecordModelFactory

public RecordModelFactory getRecordModelFactory()

getRecordViewFactory

public RecordViewFactory getRecordViewFactory()

getWindowRegistry

public WindowRegistry getWindowRegistry()

getModelDirectory

public File getModelDirectory()

getIDGeneratorServiceFactory

public IDGeneratorServiceFactory getIDGeneratorServiceFactory()

getConfigurationReader

public Project35ConfigurationReader getConfigurationReader()

getSessionManager

public SessionManager getSessionManager()

getUserInterfaceFactory

public Project35UIFactory getUserInterfaceFactory()

getResourceDirectory

public URL getResourceDirectory()

getDocumentDirectory

public URL getDocumentDirectory()

getHelpDirectory

public URL getHelpDirectory()

getLibraryDirectory

public URL getLibraryDirectory()

getMainConfigurationURL

public URL getMainConfigurationURL()

getSessionFile

public File getSessionFile()

getFileExtensionsToLaunchURL

public URL getFileExtensionsToLaunchURL()

getSchema

public URL getSchema()

getLocale

public Locale getLocale()

setPlugins

public void setPlugins(ArrayList plugins)

setWorkSpaceFiles

public void setWorkSpaceFiles(WorkspaceFiles workSpaceFiles)

setRecordModelFactory

public void setRecordModelFactory(RecordModelFactory recordModelFactory)

setRecordViewFactory

public void setRecordViewFactory(RecordViewFactory recordViewFactory)

setModelDirectory

public void setModelDirectory(File modelDirectory)

setWindowRegistry

public void setWindowRegistry(WindowRegistry windowRegistry)

setConfigurationReader

public void setConfigurationReader(Project35ConfigurationReader configurationReader)

setUserInterfaceFactory

public void setUserInterfaceFactory(Project35UIFactory project35UIFactory)

setIDGeneratorServiceFactory

public void setIDGeneratorServiceFactory(IDGeneratorServiceFactory idGeneratorServiceFactory)