|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.ItemImpl org.apache.jackrabbit.core.NodeImpl org.apache.jackrabbit.core.version.AbstractVersion
Base implementation of the Version
interface.
Field Summary |
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 | |
protected |
AbstractVersion(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners)
Create a new instance of this class. |
Method Summary | |
VersionHistory |
getContainingHistory()
|
Calendar |
getCreated()
|
InternalFrozenNode |
getFrozenNode()
Returns the frozen node of this version |
protected abstract InternalVersion |
getInternalVersion()
Returns the internal version. |
Version[] |
getPredecessors()
|
Version[] |
getSuccessors()
|
String |
getUUID()
|
boolean |
isMoreRecent(AbstractVersion v)
Checks if this version is more recent than the given version v . |
boolean |
isRootVersion()
Checks if this is the root version. |
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, 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 |
Constructor Detail |
protected AbstractVersion(ItemManager itemMgr, SessionImpl session, NodeId id, NodeState state, NodeDefinition definition, ItemLifeCycleListener[] listeners)
itemMgr
- item managersession
- sessionid
- node idstate
- node statedefinition
- node definitionlisteners
- life cycle listenersMethod Detail |
protected abstract InternalVersion getInternalVersion() throws RepositoryException
RepositoryException
- if the internal version is not availablepublic 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 String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException
getUUID
in interface Node
getUUID
in class NodeImpl
UnsupportedRepositoryOperationException
RepositoryException
public VersionHistory getContainingHistory() throws RepositoryException
getContainingHistory
in interface Version
RepositoryException
public InternalFrozenNode getFrozenNode() throws RepositoryException
RepositoryException
public boolean isSame(Item otherItem)
isSame
in interface Item
isSame
in class ItemImpl
public boolean isMoreRecent(AbstractVersion v) throws 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.
RepositoryException
public boolean isRootVersion() throws RepositoryException
true
if this version is the root version;
false
otherwise.
RepositoryException
public void update(String srcWorkspaceName) throws ConstraintViolationException
ConstraintViolationException
since this node
is protected.
update
in interface Node
update
in class NodeImpl
ConstraintViolationException
public NodeIterator merge(String srcWorkspace, boolean bestEffort) throws ConstraintViolationException
ConstraintViolationException
since this node
is protected.
merge
in interface Node
merge
in class NodeImpl
ConstraintViolationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |