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 implementation 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.version.VersionManagerImplBase
VersionManagerImplBase.WriteOperation
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.core.version.VersionManagerImplBase
context, currentActivity, hierMgr, ntReg, session, stateMgr, vMgr
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VersionManagerImplConfig(SessionContext context, UpdatableItemStateManager stateMgr, HierarchyManager hierMgr)
Creates a new version manager for the given session
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NodeId
createConfiguration(NodeStateEx state)
Creates a new configuration node.protected NodeId
restore(NodeStateEx parent, Name name, InternalBaseline baseline)
Restores the versions recorded in the given baseline below the specified path.-
Methods inherited from class org.apache.jackrabbit.core.version.VersionManagerImplMerge
finishMerge, merge, merge
-
Methods inherited from class org.apache.jackrabbit.core.version.VersionManagerImplRestore
internalRestore, internalRestore, internalRestoreFrozen, restore, restore, restore, restoreByLabel
-
Methods inherited from class org.apache.jackrabbit.core.version.VersionManagerImplBase
acquireReadLock, acquireWriteLock, checkModify, checkModify, checkoutCheckin, checkVersionable, getBaseVersion, getBaseVersionId, getNodeStateEx, getVersion, getVersionHistory, isCheckedOut, safeGetJCRPath, startWriteOperation
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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
-
-