|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.ItemImpl
org.apache.jackrabbit.core.NodeImpl
org.apache.jackrabbit.core.version.VersionImpl
public class VersionImpl
Base implementation of the Version interface.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.core.NodeImpl |
|---|
CREATED |
| Fields inherited from class org.apache.jackrabbit.core.ItemImpl |
|---|
id, itemMgr, rep, session, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL |
| Constructor Summary | |
|---|---|
VersionImpl(ItemManager itemMgr,
SessionImpl session,
AbstractNodeData data)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
javax.jcr.version.VersionHistory |
getContainingHistory()
|
java.util.Calendar |
getCreated()
|
InternalFrozenNode |
getFrozenNode()
Returns the frozen node of this version |
protected InternalVersion |
getInternalVersion()
Returns the internal version. |
javax.jcr.version.Version[] |
getPredecessors()
|
javax.jcr.version.Version[] |
getSuccessors()
|
boolean |
isMoreRecent(VersionImpl v)
Checks if this version is more recent than the given version v. |
boolean |
isRootVersion()
Checks if this is the root version. |
boolean |
isSame(javax.jcr.Item otherItem)
|
javax.jcr.NodeIterator |
merge(java.lang.String srcWorkspace,
boolean bestEffort)
Always throws a ConstraintViolationException since this node
is protected. |
java.lang.String |
toString()
Return a string representation of this version node for diagnostic purposes. |
void |
update(java.lang.String srcWorkspaceName)
Always throws a ConstraintViolationException since this node
is protected. |
| Methods inherited from class org.apache.jackrabbit.core.ItemImpl |
|---|
getAncestor, getDepth, getId, getPath, getSession, internalRemove, isModified, isNew, isTransactionalNew, isTransient, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.jcr.Node |
|---|
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperty, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock |
| Methods inherited from interface javax.jcr.Item |
|---|
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, refresh, remove, save |
| Constructor Detail |
|---|
public VersionImpl(ItemManager itemMgr,
SessionImpl session,
AbstractNodeData data)
itemMgr - item managersession - sessionid - node idstate - node statedefinition - node definitionlisteners - life cycle listeners| Method Detail |
|---|
protected InternalVersion getInternalVersion()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the internal version is not available
public java.util.Calendar getCreated()
throws javax.jcr.RepositoryException
getCreated in interface javax.jcr.version.Versionjavax.jcr.RepositoryException
public javax.jcr.version.Version[] getSuccessors()
throws javax.jcr.RepositoryException
getSuccessors in interface javax.jcr.version.Versionjavax.jcr.RepositoryException
public javax.jcr.version.Version[] getPredecessors()
throws javax.jcr.RepositoryException
getPredecessors in interface javax.jcr.version.Versionjavax.jcr.RepositoryException
public javax.jcr.version.VersionHistory getContainingHistory()
throws javax.jcr.RepositoryException
getContainingHistory in interface javax.jcr.version.Versionjavax.jcr.RepositoryException
public InternalFrozenNode getFrozenNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic boolean isSame(javax.jcr.Item otherItem)
isSame in interface javax.jcr.ItemisSame in class ItemImpl
public boolean isMoreRecent(VersionImpl v)
throws javax.jcr.RepositoryException
v.
A version is more recent if and only if it is a successor (or a successor
of a successor, etc., to any degree of separation) of the compared one.
v - the version to check
true if the version is more recent;
false otherwise.
javax.jcr.RepositoryException
public boolean isRootVersion()
throws javax.jcr.RepositoryException
true if this version is the root version;
false otherwise.
javax.jcr.RepositoryException
public void update(java.lang.String srcWorkspaceName)
throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException since this node
is protected.
update in interface javax.jcr.Nodeupdate in class NodeImpljavax.jcr.nodetype.ConstraintViolationException
public javax.jcr.NodeIterator merge(java.lang.String srcWorkspace,
boolean bestEffort)
throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException since this node
is protected.
merge in interface javax.jcr.Nodemerge in class NodeImpljavax.jcr.nodetype.ConstraintViolationExceptionpublic java.lang.String toString()
toString in class NodeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||