org.apache.jackrabbit.core
Class RepositoryImpl.WorkspaceInfo

java.lang.Object
  extended by org.apache.jackrabbit.core.RepositoryImpl.WorkspaceInfo
All Implemented Interfaces:
UpdateEventListener
Enclosing class:
RepositoryImpl

protected class RepositoryImpl.WorkspaceInfo
extends Object
implements UpdateEventListener

WorkspaceInfo holds the objects that are shared among multiple per-session WorkspaceImpl instances representing the same named workspace, i.e. the same physical storage.


Constructor Summary
protected RepositoryImpl.WorkspaceInfo(WorkspaceConfig config)
          Creates a new WorkspaceInfo based on the given config.
 
Method Summary
protected  void dispose()
          Disposes all objects this WorkspaceInfo is holding.
 void externalUpdate(ChangeLog external, List events)
          Handle an external update.
 WorkspaceConfig getConfig()
          Returns the workspace configuration.
protected  String getName()
          Returns the workspace name.
protected  org.apache.jackrabbit.core.SystemSession getSystemSession()
          Returns the system session for this workspace.
protected  boolean isInitialized()
          Returns true if this workspace info is initialized, otherwise returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryImpl.WorkspaceInfo

protected RepositoryImpl.WorkspaceInfo(WorkspaceConfig config)
Creates a new WorkspaceInfo based on the given config.

Parameters:
config - workspace configuration
Method Detail

getName

protected String getName()
Returns the workspace name.

Returns:
the workspace name

getConfig

public WorkspaceConfig getConfig()
Returns the workspace configuration.

Returns:
the workspace configuration

isInitialized

protected boolean isInitialized()
Returns true if this workspace info is initialized, otherwise returns false.

Returns:
true if this workspace info is initialized.

getSystemSession

protected org.apache.jackrabbit.core.SystemSession getSystemSession()
                                                             throws RepositoryException
Returns the system session for this workspace.

Returns:
the system session for this workspace
Throws:
RepositoryException - if the system session could not be created

dispose

protected void dispose()
Disposes all objects this WorkspaceInfo is holding.


externalUpdate

public void externalUpdate(ChangeLog external,
                           List events)
                    throws RepositoryException
Handle an external update.

Specified by:
externalUpdate in interface UpdateEventListener
Parameters:
external - external changes containing only node and property ids.
events - events to deliver
Throws:
RepositoryException - if the update cannot be processed


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.