|
|||||||||||
| 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.VersionHistoryImpl
This Class implements a version history that extends a node.
| 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 | |
VersionHistoryImpl(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners,
InternalVersionHistory history)
creates a new version history node. |
|
| Method Summary | |
void |
addVersionLabel(String versionName,
String label,
boolean move)
|
VersionIterator |
getAllVersions()
|
InternalVersionHistory |
getInternalVersionHistory()
Returns the internal version history |
Version |
getRootVersion()
|
String |
getUUID()
|
Version |
getVersion(String versionName)
|
String |
getVersionableUUID()
Returns the UUID of the node that was versioned. |
Version |
getVersionByLabel(String label)
|
String[] |
getVersionLabels()
|
String[] |
getVersionLabels(Version version)
|
boolean |
hasVersionLabel(String label)
|
boolean |
hasVersionLabel(Version version,
String label)
|
boolean |
isSame(Item otherItem)
|
NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a ConstraintViolationException since this node
is protected. |
void |
removeVersion(String versionName)
|
void |
removeVersionLabel(String label)
|
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 |
| Constructor Detail |
public VersionHistoryImpl(ItemManager itemMgr,
SessionImpl session,
NodeId id,
NodeState state,
NodeDefinition definition,
ItemLifeCycleListener[] listeners,
InternalVersionHistory history)
itemMgr - session - id - state - definition - listeners - history - | Method Detail |
public Version getRootVersion()
throws RepositoryException
getRootVersion in interface VersionHistoryRepositoryExceptionVersionHistory.getRootVersion()
public VersionIterator getAllVersions()
throws RepositoryException
getAllVersions in interface VersionHistoryRepositoryExceptionVersionHistory.getAllVersions()
public Version getVersion(String versionName)
throws VersionException,
RepositoryException
getVersion in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.getVersion(String)
public Version getVersionByLabel(String label)
throws RepositoryException
getVersionByLabel in interface VersionHistoryRepositoryExceptionVersionHistory.getVersionByLabel(String)
public void addVersionLabel(String versionName,
String label,
boolean move)
throws VersionException,
RepositoryException
addVersionLabel in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(String label)
throws RepositoryException
removeVersionLabel in interface VersionHistoryRepositoryExceptionVersionHistory.removeVersionLabel(String)public String[] getVersionLabels()
getVersionLabels in interface VersionHistoryVersionHistory.getVersionLabels()
public String[] getVersionLabels(Version version)
throws VersionException,
RepositoryException
getVersionLabels in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.getVersionLabels(Version)public boolean hasVersionLabel(String label)
hasVersionLabel in interface VersionHistoryVersionHistory.hasVersionLabel(String)
public boolean hasVersionLabel(Version version,
String label)
throws VersionException,
RepositoryException
hasVersionLabel in interface VersionHistoryVersionException
RepositoryExceptionVersionHistory.hasVersionLabel(Version, String)
public void removeVersion(String versionName)
throws UnsupportedRepositoryOperationException,
VersionException,
RepositoryException
removeVersion in interface VersionHistoryUnsupportedRepositoryOperationException
VersionException
RepositoryExceptionVersionHistory.removeVersion(String)
public String getUUID()
throws UnsupportedRepositoryOperationException,
RepositoryException
NodeImpl
getUUID in interface NodegetUUID in class NodeImplUnsupportedRepositoryOperationException
RepositoryExceptionNode.getUUID()public boolean isSame(Item otherItem)
ItemImpl
isSame in interface ItemisSame in class ItemImplItem.isSame(javax.jcr.Item)
public String getVersionableUUID()
throws RepositoryException
getVersionableUUID in interface VersionHistoryRepositoryExceptionpublic InternalVersionHistory getInternalVersionHistory()
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 | ||||||||||