|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Version
A Version
object wraps an nt:version
node. It
provides convenient access to version information.
Field Summary |
---|
Fields inherited from interface javax.jcr.Node |
---|
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS |
Method Summary | |
---|---|
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. |
Methods inherited from interface javax.jcr.Item |
---|
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save |
Method Detail |
---|
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
object
RepositoryException
- 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
object
RepositoryException
- if an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |