public abstract class VersionManagerImplConfig extends VersionManagerImplMerge
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.
VersionManagerImplBase.WriteOperation
context, currentActivity, hierMgr, ntReg, session, stateMgr, vMgr
Modifier | Constructor and Description |
---|---|
protected |
VersionManagerImplConfig(SessionContext context,
UpdatableItemStateManager stateMgr,
HierarchyManager hierMgr)
Creates a new version manager for the given session
|
Modifier and Type | Method and 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.
|
finishMerge, merge, merge
internalRestore, internalRestore, internalRestoreFrozen, restore, restore, restore, restoreByLabel
acquireReadLock, acquireWriteLock, checkModify, checkModify, checkoutCheckin, checkVersionable, getBaseVersion, getBaseVersionId, getNodeStateEx, getVersion, getVersionHistory, isCheckedOut, safeGetJCRPath, startWriteOperation
protected VersionManagerImplConfig(SessionContext context, UpdatableItemStateManager stateMgr, HierarchyManager hierMgr)
context
- component context of the current sessionstateMgr
- the underlying state managerhierMgr
- local hierarchy managerprotected NodeId restore(NodeStateEx parent, Name name, InternalBaseline baseline) throws RepositoryException
parent
- the parent statename
- the name of the new node (tree)baseline
- the baseline that recorded the versionsRepositoryException
- if an error occursprotected NodeId createConfiguration(NodeStateEx state) throws RepositoryException
The nt:confguration is stored within the nt:configurations storage using the nodeid of the configuration root (rootId) as path.
state
- the node of the workspace configurationRepositoryException
- if an error occursCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.