org.apache.jackrabbit.jcr2spi
Class NodeImpl

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.ItemImpl
      extended by org.apache.jackrabbit.jcr2spi.NodeImpl
All Implemented Interfaces:
javax.jcr.Item, javax.jcr.Node, ItemStateLifeCycleListener
Direct Known Subclasses:
VersionHistoryImpl, VersionImpl

public class NodeImpl
extends ItemImpl
implements javax.jcr.Node

NodeImpl...


Field Summary
 
Fields inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl
listeners, session
 
Constructor Summary
protected NodeImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners)
           
 
Method Summary
 void accept(javax.jcr.ItemVisitor visitor)
          Implementation of Item.accept(javax.jcr.ItemVisitor) for nodes.
 void addMixin(String mixinName)
           
 javax.jcr.Node addNode(String relPath)
           
 javax.jcr.Node addNode(String relPath, String primaryNodeTypeName)
           
 boolean canAddMixin(String mixinName)
           
 void cancelMerge(javax.jcr.version.Version version)
           
 javax.jcr.version.Version checkin()
           
 void checkout()
           
 void doneMerge(javax.jcr.version.Version version)
           
 javax.jcr.version.Version getBaseVersion()
           
 String getCorrespondingNodePath(String workspaceName)
           
 javax.jcr.nodetype.NodeDefinition getDefinition()
           
 int getIndex()
           
 javax.jcr.lock.Lock getLock()
           
 javax.jcr.nodetype.NodeType[] getMixinNodeTypes()
           
 String getName()
           
 javax.jcr.Node getNode(String relPath)
           
 javax.jcr.NodeIterator getNodes()
           
 javax.jcr.NodeIterator getNodes(String namePattern)
           
 javax.jcr.Item getPrimaryItem()
           
 javax.jcr.nodetype.NodeType getPrimaryNodeType()
           
 javax.jcr.PropertyIterator getProperties()
           
 javax.jcr.PropertyIterator getProperties(String namePattern)
           
protected  javax.jcr.Property getProperty(Name qName)
           
 javax.jcr.Property getProperty(String relPath)
           
 javax.jcr.PropertyIterator getReferences()
           
 String getUUID()
           
 javax.jcr.version.VersionHistory getVersionHistory()
           
 boolean hasNode(String relPath)
           
 boolean hasNodes()
           
 boolean hasProperties()
           
 boolean hasProperty(String relPath)
           
 boolean holdsLock()
           
 boolean isCheckedOut()
           
 boolean isLocked()
           
 boolean isNode()
          Returns true
 boolean isNodeType(String nodeTypeName)
           
 javax.jcr.lock.Lock lock(boolean isDeep, boolean isSessionScoped)
           
 javax.jcr.NodeIterator merge(String srcWorkspace, boolean bestEffort)
           
 void orderBefore(String srcChildRelPath, String destChildRelPath)
           
 void removeMixin(String mixinName)
           
 void restore(String versionName, boolean removeExisting)
           
 void restore(javax.jcr.version.Version version, boolean removeExisting)
           
 void restore(javax.jcr.version.Version version, String relPath, boolean removeExisting)
           
 void restoreByLabel(String versionLabel, boolean removeExisting)
           
 javax.jcr.Property setProperty(String name, boolean value)
           
 javax.jcr.Property setProperty(String name, Calendar value)
           
 javax.jcr.Property setProperty(String name, double value)
           
 javax.jcr.Property setProperty(String name, InputStream value)
           
 javax.jcr.Property setProperty(String name, long value)
           
 javax.jcr.Property setProperty(String name, javax.jcr.Node value)
           
 javax.jcr.Property setProperty(String name, String value)
           
 javax.jcr.Property setProperty(String name, String[] values)
           
 javax.jcr.Property setProperty(String name, String[] values, int type)
           
 javax.jcr.Property setProperty(String name, String value, int type)
           
 javax.jcr.Property setProperty(String name, javax.jcr.Value value)
           
 javax.jcr.Property setProperty(String name, javax.jcr.Value[] values)
           
 javax.jcr.Property setProperty(String name, javax.jcr.Value[] values, int type)
           
 javax.jcr.Property setProperty(String name, javax.jcr.Value value, int type)
           
 void unlock()
           
 void update(String srcWorkspaceName)
           
 
Methods inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.Item
getAncestor, getDepth, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
 

Constructor Detail

NodeImpl

protected NodeImpl(SessionImpl session,
                   NodeState state,
                   ItemLifeCycleListener[] listeners)
Method Detail

getName

public String getName()
               throws javax.jcr.RepositoryException
Specified by:
getName in interface javax.jcr.Item
Specified by:
getName in class ItemImpl
Throws:
javax.jcr.RepositoryException
See Also:
Item.getName()

accept

public void accept(javax.jcr.ItemVisitor visitor)
            throws javax.jcr.RepositoryException
Implementation of Item.accept(javax.jcr.ItemVisitor) for nodes.

Specified by:
accept in interface javax.jcr.Item
Specified by:
accept in class ItemImpl
Parameters:
visitor -
Throws:
javax.jcr.RepositoryException
See Also:
Item.accept(javax.jcr.ItemVisitor)

isNode

public boolean isNode()
Returns true

Specified by:
isNode in interface javax.jcr.Item
Specified by:
isNode in class ItemImpl
Returns:
true
See Also:
Item.isNode()

addNode

public javax.jcr.Node addNode(String relPath)
                       throws javax.jcr.ItemExistsException,
                              javax.jcr.PathNotFoundException,
                              javax.jcr.version.VersionException,
                              javax.jcr.nodetype.ConstraintViolationException,
                              javax.jcr.lock.LockException,
                              javax.jcr.RepositoryException
Specified by:
addNode in interface javax.jcr.Node
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.addNode(String)

addNode

public javax.jcr.Node addNode(String relPath,
                              String primaryNodeTypeName)
                       throws javax.jcr.ItemExistsException,
                              javax.jcr.PathNotFoundException,
                              javax.jcr.nodetype.NoSuchNodeTypeException,
                              javax.jcr.lock.LockException,
                              javax.jcr.version.VersionException,
                              javax.jcr.nodetype.ConstraintViolationException,
                              javax.jcr.RepositoryException
Specified by:
addNode in interface javax.jcr.Node
Throws:
javax.jcr.ItemExistsException
javax.jcr.PathNotFoundException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.lock.LockException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.addNode(String, String)

orderBefore

public void orderBefore(String srcChildRelPath,
                        String destChildRelPath)
                 throws javax.jcr.UnsupportedRepositoryOperationException,
                        javax.jcr.version.VersionException,
                        javax.jcr.nodetype.ConstraintViolationException,
                        javax.jcr.ItemNotFoundException,
                        javax.jcr.lock.LockException,
                        javax.jcr.RepositoryException
Specified by:
orderBefore in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.ItemNotFoundException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.orderBefore(String, String)

setProperty

public javax.jcr.Property setProperty(String name,
                                      javax.jcr.Value value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, Value)

setProperty

public javax.jcr.Property setProperty(String name,
                                      javax.jcr.Value value,
                                      int type)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, javax.jcr.Value, int)

setProperty

public javax.jcr.Property setProperty(String name,
                                      javax.jcr.Value[] values)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, Value[])

setProperty

public javax.jcr.Property setProperty(String name,
                                      javax.jcr.Value[] values,
                                      int type)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, Value[], int)

setProperty

public javax.jcr.Property setProperty(String name,
                                      String[] values)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, String[])

setProperty

public javax.jcr.Property setProperty(String name,
                                      String[] values,
                                      int type)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, String[], int)

setProperty

public javax.jcr.Property setProperty(String name,
                                      String value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, String)

setProperty

public javax.jcr.Property setProperty(String name,
                                      String value,
                                      int type)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, String, int)

setProperty

public javax.jcr.Property setProperty(String name,
                                      InputStream value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, InputStream)

setProperty

public javax.jcr.Property setProperty(String name,
                                      boolean value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, boolean)

setProperty

public javax.jcr.Property setProperty(String name,
                                      double value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, double)

setProperty

public javax.jcr.Property setProperty(String name,
                                      long value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, long)

setProperty

public javax.jcr.Property setProperty(String name,
                                      Calendar value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, Calendar)

setProperty

public javax.jcr.Property setProperty(String name,
                                      javax.jcr.Node value)
                               throws javax.jcr.ValueFormatException,
                                      javax.jcr.version.VersionException,
                                      javax.jcr.lock.LockException,
                                      javax.jcr.nodetype.ConstraintViolationException,
                                      javax.jcr.RepositoryException
Specified by:
setProperty in interface javax.jcr.Node
Throws:
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
See Also:
Node.setProperty(String, Node)

getNode

public javax.jcr.Node getNode(String relPath)
                       throws javax.jcr.PathNotFoundException,
                              javax.jcr.RepositoryException
Specified by:
getNode in interface javax.jcr.Node
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
See Also:
Node.getNode(String)

getNodes

public javax.jcr.NodeIterator getNodes()
                                throws javax.jcr.RepositoryException
Specified by:
getNodes in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getNodes()

getNodes

public javax.jcr.NodeIterator getNodes(String namePattern)
                                throws javax.jcr.RepositoryException
Specified by:
getNodes in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getNodes(String)

getProperty

public javax.jcr.Property getProperty(String relPath)
                               throws javax.jcr.PathNotFoundException,
                                      javax.jcr.RepositoryException
Specified by:
getProperty in interface javax.jcr.Node
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
See Also:
Node.getProperty(String)

getProperties

public javax.jcr.PropertyIterator getProperties()
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getProperties()

getProperties

public javax.jcr.PropertyIterator getProperties(String namePattern)
                                         throws javax.jcr.RepositoryException
Specified by:
getProperties in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getProperties(String)

getPrimaryItem

public javax.jcr.Item getPrimaryItem()
                              throws javax.jcr.ItemNotFoundException,
                                     javax.jcr.RepositoryException
Specified by:
getPrimaryItem in interface javax.jcr.Node
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
See Also:
Node.getPrimaryItem()

getUUID

public String getUUID()
               throws javax.jcr.UnsupportedRepositoryOperationException,
                      javax.jcr.RepositoryException
Specified by:
getUUID in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
See Also:
Node.getUUID()

getIndex

public int getIndex()
             throws javax.jcr.RepositoryException
Specified by:
getIndex in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getIndex()

getReferences

public javax.jcr.PropertyIterator getReferences()
                                         throws javax.jcr.RepositoryException
Specified by:
getReferences in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getReferences()

hasNode

public boolean hasNode(String relPath)
                throws javax.jcr.RepositoryException
Specified by:
hasNode in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.hasNode(String)

hasProperty

public boolean hasProperty(String relPath)
                    throws javax.jcr.RepositoryException
Specified by:
hasProperty in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.hasProperty(String)

hasNodes

public boolean hasNodes()
                 throws javax.jcr.RepositoryException
Specified by:
hasNodes in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.hasNodes()

hasProperties

public boolean hasProperties()
                      throws javax.jcr.RepositoryException
Specified by:
hasProperties in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.hasProperties()

getPrimaryNodeType

public javax.jcr.nodetype.NodeType getPrimaryNodeType()
                                               throws javax.jcr.RepositoryException
Specified by:
getPrimaryNodeType in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getPrimaryNodeType()

getMixinNodeTypes

public javax.jcr.nodetype.NodeType[] getMixinNodeTypes()
                                                throws javax.jcr.RepositoryException
Specified by:
getMixinNodeTypes in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getMixinNodeTypes()

isNodeType

public boolean isNodeType(String nodeTypeName)
                   throws javax.jcr.RepositoryException
Specified by:
isNodeType in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.isNodeType(String)

addMixin

public void addMixin(String mixinName)
              throws javax.jcr.nodetype.NoSuchNodeTypeException,
                     javax.jcr.version.VersionException,
                     javax.jcr.nodetype.ConstraintViolationException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
addMixin in interface javax.jcr.Node
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.addMixin(String)

removeMixin

public void removeMixin(String mixinName)
                 throws javax.jcr.nodetype.NoSuchNodeTypeException,
                        javax.jcr.version.VersionException,
                        javax.jcr.nodetype.ConstraintViolationException,
                        javax.jcr.lock.LockException,
                        javax.jcr.RepositoryException
Specified by:
removeMixin in interface javax.jcr.Node
Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.removeMixin(String)

canAddMixin

public boolean canAddMixin(String mixinName)
                    throws javax.jcr.RepositoryException
Specified by:
canAddMixin in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.canAddMixin(String)

getDefinition

public javax.jcr.nodetype.NodeDefinition getDefinition()
                                                throws javax.jcr.RepositoryException
Specified by:
getDefinition in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.getDefinition()

checkin

public javax.jcr.version.Version checkin()
                                  throws javax.jcr.version.VersionException,
                                         javax.jcr.UnsupportedRepositoryOperationException,
                                         javax.jcr.InvalidItemStateException,
                                         javax.jcr.lock.LockException,
                                         javax.jcr.RepositoryException
Specified by:
checkin in interface javax.jcr.Node
Throws:
javax.jcr.version.VersionException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.InvalidItemStateException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.checkin()

checkout

public void checkout()
              throws javax.jcr.UnsupportedRepositoryOperationException,
                     javax.jcr.lock.LockException,
                     javax.jcr.RepositoryException
Specified by:
checkout in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.checkout()

doneMerge

public void doneMerge(javax.jcr.version.Version version)
               throws javax.jcr.version.VersionException,
                      javax.jcr.InvalidItemStateException,
                      javax.jcr.UnsupportedRepositoryOperationException,
                      javax.jcr.RepositoryException
Specified by:
doneMerge in interface javax.jcr.Node
Throws:
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
See Also:
Node.doneMerge(Version)

cancelMerge

public void cancelMerge(javax.jcr.version.Version version)
                 throws javax.jcr.version.VersionException,
                        javax.jcr.InvalidItemStateException,
                        javax.jcr.UnsupportedRepositoryOperationException,
                        javax.jcr.RepositoryException
Specified by:
cancelMerge in interface javax.jcr.Node
Throws:
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
See Also:
Node.cancelMerge(Version)

update

public void update(String srcWorkspaceName)
            throws javax.jcr.NoSuchWorkspaceException,
                   javax.jcr.AccessDeniedException,
                   javax.jcr.lock.LockException,
                   javax.jcr.InvalidItemStateException,
                   javax.jcr.RepositoryException
Specified by:
update in interface javax.jcr.Node
Throws:
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.update(String)

merge

public javax.jcr.NodeIterator merge(String srcWorkspace,
                                    boolean bestEffort)
                             throws javax.jcr.NoSuchWorkspaceException,
                                    javax.jcr.AccessDeniedException,
                                    javax.jcr.version.VersionException,
                                    javax.jcr.lock.LockException,
                                    javax.jcr.InvalidItemStateException,
                                    javax.jcr.RepositoryException
Specified by:
merge in interface javax.jcr.Node
Throws:
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.merge(String, boolean)

getCorrespondingNodePath

public String getCorrespondingNodePath(String workspaceName)
                                throws javax.jcr.ItemNotFoundException,
                                       javax.jcr.NoSuchWorkspaceException,
                                       javax.jcr.AccessDeniedException,
                                       javax.jcr.RepositoryException
Specified by:
getCorrespondingNodePath in interface javax.jcr.Node
Throws:
javax.jcr.ItemNotFoundException
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
See Also:
Node.getCorrespondingNodePath(String)

isCheckedOut

public boolean isCheckedOut()
                     throws javax.jcr.RepositoryException
Specified by:
isCheckedOut in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.isCheckedOut()

restore

public void restore(String versionName,
                    boolean removeExisting)
             throws javax.jcr.version.VersionException,
                    javax.jcr.ItemExistsException,
                    javax.jcr.UnsupportedRepositoryOperationException,
                    javax.jcr.lock.LockException,
                    javax.jcr.InvalidItemStateException,
                    javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.Node
Throws:
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.restore(String, boolean)

restore

public void restore(javax.jcr.version.Version version,
                    boolean removeExisting)
             throws javax.jcr.version.VersionException,
                    javax.jcr.ItemExistsException,
                    javax.jcr.UnsupportedRepositoryOperationException,
                    javax.jcr.lock.LockException,
                    javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.Node
Throws:
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
See Also:
Node.restore(Version, boolean)

restore

public void restore(javax.jcr.version.Version version,
                    String relPath,
                    boolean removeExisting)
             throws javax.jcr.PathNotFoundException,
                    javax.jcr.ItemExistsException,
                    javax.jcr.version.VersionException,
                    javax.jcr.nodetype.ConstraintViolationException,
                    javax.jcr.UnsupportedRepositoryOperationException,
                    javax.jcr.lock.LockException,
                    javax.jcr.InvalidItemStateException,
                    javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.Node
Throws:
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.restore(Version, String, boolean)

restoreByLabel

public void restoreByLabel(String versionLabel,
                           boolean removeExisting)
                    throws javax.jcr.version.VersionException,
                           javax.jcr.ItemExistsException,
                           javax.jcr.UnsupportedRepositoryOperationException,
                           javax.jcr.lock.LockException,
                           javax.jcr.InvalidItemStateException,
                           javax.jcr.RepositoryException
Specified by:
restoreByLabel in interface javax.jcr.Node
Throws:
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.restoreByLabel(String, boolean)

getVersionHistory

public javax.jcr.version.VersionHistory getVersionHistory()
                                                   throws javax.jcr.UnsupportedRepositoryOperationException,
                                                          javax.jcr.RepositoryException
Specified by:
getVersionHistory in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
See Also:
Node.getVersionHistory()

getBaseVersion

public javax.jcr.version.Version getBaseVersion()
                                         throws javax.jcr.UnsupportedRepositoryOperationException,
                                                javax.jcr.RepositoryException
Specified by:
getBaseVersion in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
See Also:
Node.getBaseVersion()

lock

public javax.jcr.lock.Lock lock(boolean isDeep,
                                boolean isSessionScoped)
                         throws javax.jcr.UnsupportedRepositoryOperationException,
                                javax.jcr.lock.LockException,
                                javax.jcr.AccessDeniedException,
                                javax.jcr.InvalidItemStateException,
                                javax.jcr.RepositoryException
Specified by:
lock in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.AccessDeniedException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.lock(boolean, boolean)

getLock

public javax.jcr.lock.Lock getLock()
                            throws javax.jcr.UnsupportedRepositoryOperationException,
                                   javax.jcr.lock.LockException,
                                   javax.jcr.AccessDeniedException,
                                   javax.jcr.RepositoryException
Specified by:
getLock in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.AccessDeniedException
javax.jcr.RepositoryException
See Also:
Node.getLock()

unlock

public void unlock()
            throws javax.jcr.UnsupportedRepositoryOperationException,
                   javax.jcr.lock.LockException,
                   javax.jcr.AccessDeniedException,
                   javax.jcr.InvalidItemStateException,
                   javax.jcr.RepositoryException
Specified by:
unlock in interface javax.jcr.Node
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.AccessDeniedException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
See Also:
Node.unlock()

holdsLock

public boolean holdsLock()
                  throws javax.jcr.RepositoryException
Specified by:
holdsLock in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.holdsLock()

isLocked

public boolean isLocked()
                 throws javax.jcr.RepositoryException
Specified by:
isLocked in interface javax.jcr.Node
Throws:
javax.jcr.RepositoryException
See Also:
Node.isLocked()

getProperty

protected javax.jcr.Property getProperty(Name qName)
                                  throws javax.jcr.PathNotFoundException,
                                         javax.jcr.RepositoryException
Parameters:
qName -
Returns:
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.