org.priha.version
Class VersionHistoryImpl
java.lang.Object
org.priha.core.ItemImpl
org.priha.core.NodeImpl
org.priha.version.VersionHistoryImpl
- All Implemented Interfaces:
- java.lang.Comparable<javax.jcr.Node>, javax.jcr.Item, javax.jcr.Node, javax.jcr.version.VersionHistory
public class VersionHistoryImpl
- extends NodeImpl
- implements javax.jcr.version.VersionHistory
Methods inherited from class org.priha.core.NodeImpl |
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, compareTo, doneMerge, equals, findPropertyDefinition, getBaseVersion, getChildOrder, getChildProperty, getCorrespondingNodePath, getDefinition, getIndex, getLock, getMixinNodeTypes, getNode, getNode, getNode, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getPrimaryQNodeType, getProperties, getProperties, getProperty, getProperty, getQDefinition, getReferences, getUUID, getVersionHistory, hasNode, hasNode, hasNodes, hasProperties, hasProperty, hasProperty, hasTag, holdsLock, internalSave, isCheckedOut, isLocked, isLockedWithoutToken, isNode, isNodeType, lock, merge, orderBefore, preSave, removeMixin, removeProperty, restore, restore, restore, restoreByLabel, sanitize, save, setChildOrder, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, tag, tag, unlock, update |
Methods inherited from class org.priha.core.ItemImpl |
accept, enterState, getAncestor, getCreationTime, getDepth, getInternalPath, getName, getParent, getPath, getPathReference, getQName, getSession, getState, hashCode, isModified, isNew, isSame, postSave, refresh, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, 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, merge, orderBefore, removeMixin, restore, restore, restore, restoreByLabel, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update |
Methods inherited from interface javax.jcr.Item |
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, save |
VersionHistoryImpl
public VersionHistoryImpl(SessionImpl session,
Path path,
QNodeType primaryType,
QNodeDefinition nDef,
boolean initDefaults)
throws javax.jcr.ValueFormatException,
javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
getInstance
public static VersionHistoryImpl getInstance(SessionImpl session,
Path path)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
addVersionLabel
public void addVersionLabel(java.lang.String arg0,
java.lang.String arg1,
boolean arg2)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
- Specified by:
addVersionLabel
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.version.VersionException
javax.jcr.RepositoryException
getAllVersions
public javax.jcr.version.VersionIterator getAllVersions()
throws javax.jcr.RepositoryException
- Specified by:
getAllVersions
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.RepositoryException
getRootVersion
public javax.jcr.version.Version getRootVersion()
throws javax.jcr.RepositoryException
- Specified by:
getRootVersion
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.RepositoryException
getVersion
public javax.jcr.version.Version getVersion(java.lang.String versionName)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
- Specified by:
getVersion
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.version.VersionException
javax.jcr.RepositoryException
getVersionByLabel
public javax.jcr.version.Version getVersionByLabel(java.lang.String versionLabel)
throws javax.jcr.RepositoryException
- Specified by:
getVersionByLabel
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.RepositoryException
getVersionLabels
public java.lang.String[] getVersionLabels()
throws javax.jcr.RepositoryException
- Specified by:
getVersionLabels
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.RepositoryException
getVersionLabels
public java.lang.String[] getVersionLabels(javax.jcr.version.Version arg0)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
- Specified by:
getVersionLabels
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.version.VersionException
javax.jcr.RepositoryException
getVersionableUUID
public java.lang.String getVersionableUUID()
throws javax.jcr.RepositoryException
- Specified by:
getVersionableUUID
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.RepositoryException
hasVersionLabel
public boolean hasVersionLabel(java.lang.String label)
throws javax.jcr.RepositoryException
- Specified by:
hasVersionLabel
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.RepositoryException
hasVersionLabel
public boolean hasVersionLabel(javax.jcr.version.Version version,
java.lang.String label)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
- Specified by:
hasVersionLabel
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.version.VersionException
javax.jcr.RepositoryException
removeVersion
public void removeVersion(java.lang.String arg0)
throws javax.jcr.ReferentialIntegrityException,
javax.jcr.AccessDeniedException,
javax.jcr.UnsupportedRepositoryOperationException,
javax.jcr.version.VersionException,
javax.jcr.RepositoryException
- Specified by:
removeVersion
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.ReferentialIntegrityException
javax.jcr.AccessDeniedException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
remove
public void remove()
throws javax.jcr.version.VersionException,
javax.jcr.lock.LockException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.RepositoryException
- Description copied from class:
ItemImpl
-
- Specified by:
remove
in interface javax.jcr.Item
- Overrides:
remove
in class NodeImpl
- Throws:
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
removeVersionLabel
public void removeVersionLabel(java.lang.String arg0)
throws javax.jcr.version.VersionException,
javax.jcr.RepositoryException
- Specified by:
removeVersionLabel
in interface javax.jcr.version.VersionHistory
- Throws:
javax.jcr.version.VersionException
javax.jcr.RepositoryException