|
|||||||||||
| 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
This Class implements a Version that extends the node interface
| Field Summary | |
protected InternalVersion |
version
the internal version |
| Fields inherited from class org.apache.jackrabbit.core.NodeImpl |
CREATED, definition, primaryTypeName |
| Fields inherited from class org.apache.jackrabbit.core.ItemImpl |
id, itemMgr, listeners, rep, session, state, stateMgr, status, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL |
| Constructor Summary | |
VersionImpl(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners,
InternalVersion version)
creates a new version node |
|
| Method Summary | |
VersionHistory |
getContainingHistory()
|
Calendar |
getCreated()
|
InternalFrozenNode |
getFrozenNode()
Returns the frozen node of this version |
InternalVersion |
getInternalVersion()
Returns the internal version |
Version[] |
getPredecessors()
|
Version[] |
getSuccessors()
|
String |
getUUID()
|
boolean |
isSame(Item otherItem)
|
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a ConstraintViolationException since this node
is protected. |
void |
update(String srcWorkspaceName)
Always throws a ConstraintViolationException since this node
is protected. |
| Methods inherited from class org.apache.jackrabbit.core.ItemImpl |
getAncestor, getDepth, getId, getOrCreateNodeReferences, getPath, getPrimaryPath, getSession, internalRemove, isModified, isNew, isTransactionalNew, isTransient, notifyDestroyed, notifyInvalidated, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved, stateCreated, stateDestroyed, stateDiscarded, stateModified |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, 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 |
| Field Detail |
protected final InternalVersion version
| Constructor Detail |
public VersionImpl(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners,
InternalVersion version)
itemMgr - session - id - state - definition - listeners - version - | Method Detail |
public Calendar getCreated()
throws RepositoryException
getCreated in interface VersionRepositoryException
public Version[] getSuccessors()
throws RepositoryException
getSuccessors in interface VersionRepositoryException
public Version[] getPredecessors()
throws RepositoryException
getPredecessors in interface VersionRepositoryException
public String getUUID()
throws UnsupportedRepositoryOperationException,
RepositoryException
getUUID in interface NodegetUUID in class NodeImplUnsupportedRepositoryOperationException
RepositoryException
public VersionHistory getContainingHistory()
throws RepositoryException
getContainingHistory in interface VersionRepositoryExceptionpublic InternalVersion getInternalVersion()
public InternalFrozenNode getFrozenNode()
throws RepositoryException
RepositoryExceptionpublic boolean isSame(Item otherItem)
isSame in interface ItemisSame in class ItemImpl
public void update(String srcWorkspaceName)
throws ConstraintViolationException
ConstraintViolationException since this node
is protected.
update in interface Nodeupdate in class NodeImplConstraintViolationException
public NodeIterator merge(String srcWorkspace,
boolean bestEffort)
throws ConstraintViolationException
ConstraintViolationException since this node
is protected.
merge in interface Nodemerge in class NodeImplConstraintViolationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||