org.apache.jackrabbit.core.version
Class VersionManagerImplConfig
java.lang.Object
org.apache.jackrabbit.core.version.VersionManagerImplBase
org.apache.jackrabbit.core.version.VersionManagerImplRestore
org.apache.jackrabbit.core.version.VersionManagerImplMerge
org.apache.jackrabbit.core.version.VersionManagerImplConfig
- Direct Known Subclasses:
- VersionManagerImpl
public abstract class VersionManagerImplConfig
- extends VersionManagerImplMerge
The JCR Version Manager impementation is split in several classes in order to
group related methods together.
this class provides methods for the configuration and baselines related operations.
Implementation note: methods starting with "internal" are considered to be
executed within a "write operations" block.
Methods inherited from class org.apache.jackrabbit.core.version.VersionManagerImplBase |
acquireReadLock, acquireWriteLock, checkModify, checkModify, checkoutCheckin, checkVersionable, getBaseVersion, getBaseVersionId, getNodeStateEx, getVersion, getVersionHistory, isCheckedOut, safeGetJCRPath, startWriteOperation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionManagerImplConfig
protected VersionManagerImplConfig(SessionContext context,
UpdatableItemStateManager stateMgr,
HierarchyManager hierMgr)
- Creates a new version manager for the given session
- Parameters:
context
- component context of the current sessionstateMgr
- the underlying state managerhierMgr
- local hierarchy manager
restore
protected NodeId restore(NodeStateEx parent,
Name name,
InternalBaseline baseline)
throws RepositoryException
- Restores the versions recorded in the given baseline below the specified
path.
- Parameters:
parent
- the parent statename
- the name of the new node (tree)baseline
- the baseline that recorded the versions
- Returns:
- the node id of the configuration
- Throws:
RepositoryException
- if an error occurs
createConfiguration
protected NodeId createConfiguration(NodeStateEx state)
throws RepositoryException
- Creates a new configuration node.
The nt:confguration is stored within the nt:configurations storage using
the nodeid of the configuration root (rootId) as path.
- Parameters:
state
- the node of the workspace configuration
- Returns:
- the node id of the created configuration
- Throws:
RepositoryException
- if an error occurs
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.