|
|||||||||||
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 VersionHistory
RepositoryException
VersionHistory.getRootVersion()
public VersionIterator getAllVersions() throws RepositoryException
getAllVersions
in interface VersionHistory
RepositoryException
VersionHistory.getAllVersions()
public Version getVersion(String versionName) throws VersionException, RepositoryException
getVersion
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.getVersion(String)
public Version getVersionByLabel(String label) throws RepositoryException
getVersionByLabel
in interface VersionHistory
RepositoryException
VersionHistory.getVersionByLabel(String)
public void addVersionLabel(String versionName, String label, boolean move) throws VersionException, RepositoryException
addVersionLabel
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(String label) throws RepositoryException
removeVersionLabel
in interface VersionHistory
RepositoryException
VersionHistory.removeVersionLabel(String)
public String[] getVersionLabels()
getVersionLabels
in interface VersionHistory
VersionHistory.getVersionLabels()
public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
getVersionLabels
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.getVersionLabels(Version)
public boolean hasVersionLabel(String label)
hasVersionLabel
in interface VersionHistory
VersionHistory.hasVersionLabel(String)
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
hasVersionLabel
in interface VersionHistory
VersionException
RepositoryException
VersionHistory.hasVersionLabel(Version, String)
public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
removeVersion
in interface VersionHistory
UnsupportedRepositoryOperationException
VersionException
RepositoryException
VersionHistory.removeVersion(String)
public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException
NodeImpl
getUUID
in interface Node
getUUID
in class NodeImpl
UnsupportedRepositoryOperationException
RepositoryException
Node.getUUID()
public boolean isSame(Item otherItem)
ItemImpl
isSame
in interface Item
isSame
in class ItemImpl
Item.isSame(javax.jcr.Item)
public String getVersionableUUID() throws RepositoryException
getVersionableUUID
in interface VersionHistory
RepositoryException
public InternalVersionHistory getInternalVersionHistory()
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 |