|
||||||||||
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
public class VersionHistoryImpl
Base implementation of the VersionHistory
interface.
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.core.NodeImpl |
---|
CREATED |
Fields inherited from class org.apache.jackrabbit.core.ItemImpl |
---|
id, itemMgr, rep, session, stateMgr, STATUS_DESTROYED, STATUS_INVALIDATED, STATUS_MODIFIED, STATUS_NORMAL |
Constructor Summary | |
---|---|
VersionHistoryImpl(ItemManager itemMgr,
SessionImpl session,
AbstractNodeData data)
Create a new instance of this class. |
Method Summary | |
---|---|
void |
addVersionLabel(String versionName,
String label,
boolean move)
|
javax.jcr.version.VersionIterator |
getAllVersions()
|
protected InternalVersionHistory |
getInternalVersionHistory()
Returns the internal version history. |
javax.jcr.version.Version |
getRootVersion()
|
javax.jcr.version.Version |
getVersion(String versionName)
|
String |
getVersionableUUID()
|
javax.jcr.version.Version |
getVersionByLabel(String label)
|
String[] |
getVersionLabels()
|
String[] |
getVersionLabels(javax.jcr.version.Version version)
|
boolean |
hasVersionLabel(String label)
|
boolean |
hasVersionLabel(javax.jcr.version.Version version,
String label)
|
boolean |
isSame(javax.jcr.Item otherItem)
|
javax.jcr.NodeIterator |
merge(String srcWorkspace,
boolean bestEffort)
Always throws a ConstraintViolationException since this node
is protected. |
void |
removeVersion(String versionName)
|
void |
removeVersionLabel(String label)
|
String |
toString()
Return a string representation of this version history node for diagnostic purposes. |
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, getSession, internalRemove, isModified, isNew, isTransactionalNew, isTransient, refresh, remove, safeGetJCRPath, sanityCheck, save, setRemoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, 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, 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, AbstractNodeData data)
itemMgr
- item managersession
- sessionid
- node idstate
- node statedefinition
- node definitionlisteners
- life cycle listenersMethod Detail |
---|
protected InternalVersionHistory getInternalVersionHistory() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the internal version history is not availablepublic javax.jcr.version.Version getRootVersion() throws javax.jcr.RepositoryException
getRootVersion
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getRootVersion()
public javax.jcr.version.VersionIterator getAllVersions() throws javax.jcr.RepositoryException
getAllVersions
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getAllVersions()
public javax.jcr.version.Version getVersion(String versionName) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersion
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.getVersion(String)
public javax.jcr.version.Version getVersionByLabel(String label) throws javax.jcr.RepositoryException
getVersionByLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getVersionByLabel(String)
public void addVersionLabel(String versionName, String label, boolean move) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
addVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.addVersionLabel(String, String, boolean)
public void removeVersionLabel(String label) throws javax.jcr.RepositoryException
removeVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.removeVersionLabel(String)
public String[] getVersionLabels() throws javax.jcr.RepositoryException
getVersionLabels
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.getVersionLabels()
public String[] getVersionLabels(javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
getVersionLabels
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.getVersionLabels(javax.jcr.version.Version)
public boolean hasVersionLabel(String label) throws javax.jcr.RepositoryException
hasVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
VersionHistory.hasVersionLabel(String)
public boolean hasVersionLabel(javax.jcr.version.Version version, String label) throws javax.jcr.version.VersionException, javax.jcr.RepositoryException
hasVersionLabel
in interface javax.jcr.version.VersionHistory
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.hasVersionLabel(javax.jcr.version.Version, String)
public void removeVersion(String versionName) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
removeVersion
in interface javax.jcr.version.VersionHistory
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
VersionHistory.removeVersion(String)
public boolean isSame(javax.jcr.Item otherItem)
ItemImpl
isSame
in interface javax.jcr.Item
isSame
in class ItemImpl
Item.isSame(javax.jcr.Item)
public String getVersionableUUID() throws javax.jcr.RepositoryException
getVersionableUUID
in interface javax.jcr.version.VersionHistory
javax.jcr.RepositoryException
public void update(String srcWorkspaceName) throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException
since this node
is protected.
update
in interface javax.jcr.Node
update
in class NodeImpl
javax.jcr.nodetype.ConstraintViolationException
public javax.jcr.NodeIterator merge(String srcWorkspace, boolean bestEffort) throws javax.jcr.nodetype.ConstraintViolationException
ConstraintViolationException
since this node
is protected.
merge
in interface javax.jcr.Node
merge
in class NodeImpl
javax.jcr.nodetype.ConstraintViolationException
public String toString()
toString
in class NodeImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |