Class VersionManagerImplMerge
- java.lang.Object
-
- org.apache.jackrabbit.core.version.VersionManagerImplBase
-
- org.apache.jackrabbit.core.version.VersionManagerImplRestore
-
- org.apache.jackrabbit.core.version.VersionManagerImplMerge
-
- Direct Known Subclasses:
VersionManagerImplConfig
public abstract class VersionManagerImplMerge extends VersionManagerImplRestore
The JCR Version Manager implementation is split in several classes in order to group related methods together.This class provides methods for the merge operations.
-
-
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
VersionManagerImplMerge(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 void
finishMerge(NodeStateEx state, Version version, boolean cancel)
protected void
merge(InternalActivity activity, List<ItemId> failedIds)
Merge the given activity to this workspaceprotected void
merge(NodeStateEx state, NodeStateEx srcRoot, List<ItemId> failedIds, boolean bestEffort, boolean shallow)
Merges/Updates this node with its corresponding ones-
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
-
VersionManagerImplMerge
protected VersionManagerImplMerge(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
-
merge
protected void merge(NodeStateEx state, NodeStateEx srcRoot, List<ItemId> failedIds, boolean bestEffort, boolean shallow) throws RepositoryException, ItemStateException
Merges/Updates this node with its corresponding ones- Parameters:
state
- state to merge or updatesrcRoot
- src workspace root nodefailedIds
- list of failed idsbestEffort
- best effort flagshallow
- is shallow flag- Throws:
RepositoryException
- if an error occursItemStateException
- if an error occurs
-
finishMerge
protected void finishMerge(NodeStateEx state, Version version, boolean cancel) throws RepositoryException
- Parameters:
state
- state to finishversion
- versioncancel
- flag inidicates if this is a cancel operation- Throws:
RepositoryException
- if an error occurs
-
merge
protected void merge(InternalActivity activity, List<ItemId> failedIds) throws RepositoryException
Merge the given activity to this workspace- Parameters:
activity
- internal activityfailedIds
- list of failed ids- Throws:
RepositoryException
- if an error occurs
-
-