public abstract class VersionManagerImplMerge extends VersionManagerImplRestore
This class provides methods for the merge operations.
VersionManagerImplBase.WriteOperation
context, currentActivity, hierMgr, ntReg, session, stateMgr, vMgr
Modifier | Constructor and Description |
---|---|
protected |
VersionManagerImplMerge(SessionContext context,
UpdatableItemStateManager stateMgr,
HierarchyManager hierMgr)
Creates a new version manager for the given session
|
Modifier and Type | Method and Description |
---|---|
protected void |
finishMerge(NodeStateEx state,
Version version,
boolean cancel)
|
protected void |
merge(InternalActivity activity,
List<ItemId> failedIds)
Merge the given activity to this workspace
|
protected void |
merge(NodeStateEx state,
NodeStateEx srcRoot,
List<ItemId> failedIds,
boolean bestEffort,
boolean shallow)
Merges/Updates this node with its corresponding ones
|
internalRestore, internalRestore, internalRestoreFrozen, restore, restore, restore, restoreByLabel
acquireReadLock, acquireWriteLock, checkModify, checkModify, checkoutCheckin, checkVersionable, getBaseVersion, getBaseVersionId, getNodeStateEx, getVersion, getVersionHistory, isCheckedOut, safeGetJCRPath, startWriteOperation
protected VersionManagerImplMerge(SessionContext context, UpdatableItemStateManager stateMgr, HierarchyManager hierMgr)
context
- component context of the current sessionstateMgr
- the underlying state managerhierMgr
- local hierarchy managerprotected void merge(NodeStateEx state, NodeStateEx srcRoot, List<ItemId> failedIds, boolean bestEffort, boolean shallow) throws RepositoryException, ItemStateException
state
- state to merge or updatesrcRoot
- src workspace root nodefailedIds
- list of failed idsbestEffort
- best effort flagshallow
- is shallow flagRepositoryException
- if an error occursItemStateException
- if an error occursprotected void finishMerge(NodeStateEx state, Version version, boolean cancel) throws RepositoryException
state
- state to finishversion
- versioncancel
- flag inidicates if this is a cancel operationRepositoryException
- if an error occursprotected void merge(InternalActivity activity, List<ItemId> failedIds) throws RepositoryException
activity
- internal activityfailedIds
- list of failed idsRepositoryException
- if an error occursCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.