public class ClientVersion extends ClientNode implements Version
RemoteVersion
interface. This class makes a remote version locally available using
the JCR Version
interface.Version
,
RemoteVersion
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
Constructor and Description |
---|
ClientVersion(Session session,
RemoteVersion remote,
LocalAdapterFactory factory)
Creates a local adapter for the given remote version.
|
Modifier and Type | Method and Description |
---|---|
VersionHistory |
getContainingHistory() |
Calendar |
getCreated() |
Node |
getFrozenNode() |
Version |
getLinearPredecessor() |
Version |
getLinearSuccessor() |
Version[] |
getPredecessors() |
Version[] |
getSuccessors() |
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
getFactory, getItem, getNode, getNodeTypeArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
public ClientVersion(Session session, RemoteVersion remote, LocalAdapterFactory factory)
session
- current sessionremote
- remote versionfactory
- local adapter factorypublic Calendar getCreated() throws RepositoryException
getCreated
in interface Version
RepositoryException
public Version[] getSuccessors() throws RepositoryException
getSuccessors
in interface Version
RepositoryException
public Version[] getPredecessors() throws RepositoryException
getPredecessors
in interface Version
RepositoryException
public VersionHistory getContainingHistory() throws RepositoryException
getContainingHistory
in interface Version
RepositoryException
public Node getFrozenNode() throws RepositoryException
getFrozenNode
in interface Version
RepositoryException
public Version getLinearPredecessor() throws RepositoryException
getLinearPredecessor
in interface Version
RepositoryException
public Version getLinearSuccessor() throws RepositoryException
getLinearSuccessor
in interface Version
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.