|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.version.VersionManagerImplBase
org.apache.jackrabbit.core.version.VersionManagerImplRestore
org.apache.jackrabbit.core.version.VersionManagerImplMerge
org.apache.jackrabbit.core.version.VersionManagerImplConfig
org.apache.jackrabbit.core.VersionManagerImpl
public class VersionManagerImpl
Implementation of the VersionManager.
| 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 |
|---|
currentActivity, hierMgr, ntReg, session, stateMgr, vMgr |
| Constructor Summary | |
|---|---|
VersionManagerImpl(SessionImpl session,
UpdatableItemStateManager stateMgr,
HierarchyManager hierMgr)
Creates a new version manager for the given session |
|
| Method Summary | |
|---|---|
void |
cancelMerge(String absPath,
Version version)
|
Version |
checkin(String absPath)
|
Version |
checkin(String absPath,
Calendar created)
Creates a new version of the node at the given path. |
void |
checkout(String absPath)
|
Version |
checkpoint(String absPath)
|
Node |
createActivity(String title)
|
Node |
createConfiguration(String absPath)
|
void |
doneMerge(String absPath,
Version version)
|
Node |
getActivity()
|
Version |
getBaseVersion(String absPath)
|
VersionHistory |
getVersionHistory(String absPath)
|
boolean |
isCheckedOut(String absPath)
|
NodeIterator |
merge(Node activityNode)
|
NodeIterator |
merge(String absPath,
String srcWorkspace,
boolean bestEffort)
|
NodeIterator |
merge(String absPath,
String srcWorkspaceName,
boolean bestEffort,
boolean isShallow)
|
void |
removeActivity(Node node)
|
protected void |
restore(NodeImpl node,
Version version,
boolean removeExisting)
Same as restore(String, String, boolean) but to ensure
backward compatibility for Node.restore(Version, boolean). |
void |
restore(String absPath,
String versionName,
boolean removeExisting)
|
void |
restore(String absPath,
Version version,
boolean removeExisting)
|
void |
restore(Version[] versions,
boolean removeExisting)
|
void |
restore(Version version,
boolean removeExisting)
|
void |
restoreByLabel(String absPath,
String versionLabel,
boolean removeExisting)
|
Node |
setActivity(Node activity)
|
void |
update(NodeImpl node,
String srcWorkspaceName)
Does an update. |
| Methods inherited from class org.apache.jackrabbit.core.version.VersionManagerImplConfig |
|---|
createConfiguration, restore |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionManagerImpl(SessionImpl session,
UpdatableItemStateManager stateMgr,
HierarchyManager hierMgr)
session - workspace sesionstateMgr - the underlying state managerhierMgr - local hierarchy manager| Method Detail |
|---|
public Version checkin(String absPath)
throws RepositoryException
checkin in interface VersionManagerRepositoryException
public Version checkin(String absPath,
Calendar created)
throws RepositoryException
absPath - node pathcreated - create time of the new version,
or null for the current time
RepositoryException - if the version can not be created
public void checkout(String absPath)
throws RepositoryException
checkout in interface VersionManagerRepositoryException
public Version checkpoint(String absPath)
throws RepositoryException
checkpoint in interface VersionManagerRepositoryException
public boolean isCheckedOut(String absPath)
throws RepositoryException
isCheckedOut in interface VersionManagerRepositoryException
public VersionHistory getVersionHistory(String absPath)
throws RepositoryException
getVersionHistory in interface VersionManagerRepositoryException
public Version getBaseVersion(String absPath)
throws RepositoryException
getBaseVersion in interface VersionManagerRepositoryException
public void restore(Version version,
boolean removeExisting)
throws RepositoryException
restore in interface VersionManagerRepositoryException
public void restore(Version[] versions,
boolean removeExisting)
throws RepositoryException
restore in interface VersionManagerRepositoryException
public void restore(String absPath,
String versionName,
boolean removeExisting)
throws RepositoryException
restore in interface VersionManagerRepositoryException
public void restore(String absPath,
Version version,
boolean removeExisting)
throws RepositoryException
restore in interface VersionManagerRepositoryException
protected void restore(NodeImpl node,
Version version,
boolean removeExisting)
throws RepositoryException
restore(String, String, boolean) but to ensure
backward compatibility for Node.restore(Version, boolean).
node - the node to restoreversion - the version to restoreremoveExisting - the remove existing flag
RepositoryException - if an error occurs
public void restoreByLabel(String absPath,
String versionLabel,
boolean removeExisting)
throws RepositoryException
restoreByLabel in interface VersionManagerRepositoryException
public void update(NodeImpl node,
String srcWorkspaceName)
throws RepositoryException
node - the node to updatesrcWorkspaceName - the source workspace name
RepositoryException - if an error occursNode.update(String)
public NodeIterator merge(String absPath,
String srcWorkspace,
boolean bestEffort)
throws RepositoryException
merge in interface VersionManagerRepositoryException
public NodeIterator merge(String absPath,
String srcWorkspaceName,
boolean bestEffort,
boolean isShallow)
throws RepositoryException
merge in interface VersionManagerRepositoryException
public void doneMerge(String absPath,
Version version)
throws RepositoryException
doneMerge in interface VersionManagerRepositoryException
public void cancelMerge(String absPath,
Version version)
throws RepositoryException
cancelMerge in interface VersionManagerRepositoryException
public Node createConfiguration(String absPath)
throws RepositoryException
createConfiguration in interface VersionManagerRepositoryException
public Node setActivity(Node activity)
throws RepositoryException
setActivity in interface VersionManagerRepositoryException
public Node getActivity()
throws RepositoryException
getActivity in interface VersionManagerRepositoryException
public Node createActivity(String title)
throws RepositoryException
createActivity in interface VersionManagerRepositoryException
public void removeActivity(Node node)
throws RepositoryException
removeActivity in interface VersionManagerRepositoryException
public NodeIterator merge(Node activityNode)
throws RepositoryException
merge in interface VersionManagerRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||