Copyright© 2008-2018 SiteVision AB, all rights reserved.
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
Modifier and Type | Method and Description |
---|---|
VersionHistory |
getContainingHistory()
Returns the
VersionHistory that contains this
Version . |
java.util.Calendar |
getCreated()
Returns the date this version was created.
|
Node |
getFrozenNode()
Returns the frozen node of this version.
|
Version |
getLinearPredecessor()
Assuming that this
Version object was acquired through a
Workspace W and is within the
VersionHistory H , this method returns the
predecessor of this version along the same line of descent as is returned
by H.getAllLinearVersions() where H was also
acquired through W . |
Version |
getLinearSuccessor()
Assuming that this
Version object was acquired through a
Workspace W and is within the
VersionHistory H , this method returns the
successor of this version along the same line of descent as is returned
by H.getAllLinearVersions() where H was also
acquired through W . |
Version[] |
getPredecessors()
In both simple and full versioning repositories, this method returns the
predecessor versions of this version.
|
Version[] |
getSuccessors()
Returns the successor versions of this version.
|
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, getWeakReferences, getWeakReferences, getVersionHistory, 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
VersionHistory getContainingHistory() throws RepositoryException
VersionHistory
that contains this
Version
.VersionHistory
that contains this
Version
.RepositoryException
- if an error occurs.java.util.Calendar getCreated() throws RepositoryException
jcr:created
property in the nt:version
node that represents this version.Calendar
objectRepositoryException
- if an error occurs.Version getLinearSuccessor() throws RepositoryException
Version
object was acquired through a
Workspace
W
and is within the
VersionHistory
H
, this method returns the
successor of this version along the same line of descent as is returned
by H.getAllLinearVersions()
where H
was also
acquired through W
.
Note that under simple versioning the behavior of this method is equivalent to getting the unique successor (if any) of this version.
Version
or null
if no linear
successor exists.RepositoryException
- if an error occurs.VersionHistory.getAllLinearVersions()
Version[] getSuccessors() throws RepositoryException
nt:version
nodes referenced by the
jcr:successors
multi-value property in the
nt:version
node that represents this version.
In a simple versioning repository this method
Version
array.RepositoryException
- if an error occurs.Version getLinearPredecessor() throws RepositoryException
Version
object was acquired through a
Workspace
W
and is within the
VersionHistory
H
, this method returns the
predecessor of this version along the same line of descent as is returned
by H.getAllLinearVersions()
where H
was also
acquired through W
.
Note that under simple versioning the behavior of this method is equivalent to getting the unique predecessor (if any) of this version.
Version
or null
if no linear
predecessor exists.RepositoryException
- if an error occurs.VersionHistory.getAllLinearVersions()
Version[] getPredecessors() throws RepositoryException
nt:version
nodes whose jcr:successors
property includes a reference to the nt:version
node that
represents this version.Version
array.RepositoryException
- if an error occurs.Node getFrozenNode() throws RepositoryException
Node
objectRepositoryException
- if an error occurs.SiteVision - Portal and Content Management Made Easy
SiteVision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2018 SiteVision AB, all rights reserved.