org.apache.jackrabbit.core.version
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 impementation is split in several classes in order to
group related methods together.
this class provides methods for the merge operations.
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 |
VersionManagerImplMerge
protected VersionManagerImplMerge(SessionImpl session,
UpdatableItemStateManager stateMgr,
HierarchyManager hierMgr)
- Creates a new version manager for the given session
- Parameters:
session
- workspace sesionstateMgr
- the underlying state managerhierMgr
- local hierarchy manager
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 effor flagshallow
- is shallow flag
- Throws:
RepositoryException
- if an error occurs
ItemStateException
- if an error occurs
finishMerge
protected void finishMerge(NodeStateEx state,
Version version,
boolean cancel)
throws RepositoryException
- Perform
Node.cancelMerge(Version)
or Node.doneMerge(Version)
depending on the value of cancel
.
- 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
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.