org.apache.jackrabbit.core
Class RepositoryContext

java.lang.Object
  extended by org.apache.jackrabbit.core.RepositoryContext

public class RepositoryContext
extends Object

Internal component context of a Jackrabbit content repository. A repository context consists of the internal repository-level components and resources like the namespace and node type registries. Access to these resources is available only to objects with a reference to the context object.


Method Summary
 ClusterNode getClusterNode()
          Returns the cluster node instance of this repository, or null if clustering is not enabled.
 DataStore getDataStore()
          Returns the data store of this repository, or null if a data store is not configured.
 FileSystem getFileSystem()
          Returns the repository file system.
 InternalVersionManagerImpl getInternalVersionManager()
          Returns the internal version manager of this repository.
 ItemStateCacheFactory getItemStateCacheFactory()
          Returns the item state cache factory of this repository.
 NamespaceRegistryImpl getNamespaceRegistry()
          Returns the namespace registry of this repository.
 NodeTypeRegistry getNodeTypeRegistry()
          Returns the namespace registry of this repository.
 RepositoryImpl getRepository()
          Returns the repository instance to which this context is associated.
 NodeId getRootNodeId()
          Returns the root node identifier of this repository.
 JackrabbitSecurityManager getSecurityManager()
          Returns the security manager of this repository.
 WorkspaceManager getWorkspaceManager()
          Returns the workspace manager of this repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRepository

public RepositoryImpl getRepository()
Returns the repository instance to which this context is associated.

Returns:
repository instance

getNamespaceRegistry

public NamespaceRegistryImpl getNamespaceRegistry()
Returns the namespace registry of this repository.

Returns:
namespace registry

getNodeTypeRegistry

public NodeTypeRegistry getNodeTypeRegistry()
Returns the namespace registry of this repository.

Returns:
node type registry

getInternalVersionManager

public InternalVersionManagerImpl getInternalVersionManager()
Returns the internal version manager of this repository.

Returns:
internal version manager

getRootNodeId

public NodeId getRootNodeId()
Returns the root node identifier of this repository.

Returns:
root node identifier

getFileSystem

public FileSystem getFileSystem()
Returns the repository file system.

Returns:
repository file system

getDataStore

public DataStore getDataStore()
Returns the data store of this repository, or null if a data store is not configured.

Returns:
data store, or null

getClusterNode

public ClusterNode getClusterNode()
Returns the cluster node instance of this repository, or null if clustering is not enabled.

Returns:
cluster node

getWorkspaceManager

public WorkspaceManager getWorkspaceManager()
Returns the workspace manager of this repository.

Returns:
workspace manager

getSecurityManager

public JackrabbitSecurityManager getSecurityManager()
Returns the security manager of this repository.

Returns:
security manager

getItemStateCacheFactory

public ItemStateCacheFactory getItemStateCacheFactory()
Returns the item state cache factory of this repository.

Returns:
item state cache factory


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