public class NodeImpl extends ItemImpl implements Node
NodeImpl
...JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
Modifier | Constructor and Description |
---|---|
protected |
NodeImpl(SessionImpl session,
NodeState state,
ItemLifeCycleListener[] listeners) |
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAncestor, getDepth, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
protected NodeImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners)
public String getName() throws RepositoryException
getName
in interface Item
getName
in class ItemImpl
RepositoryException
Item.getName()
public void accept(ItemVisitor visitor) throws RepositoryException
Item.accept(javax.jcr.ItemVisitor)
for nodes.accept
in interface Item
accept
in class ItemImpl
visitor
- RepositoryException
Item.accept(javax.jcr.ItemVisitor)
public boolean isNode()
isNode
in interface Item
isNode
in class ItemImpl
Item.isNode()
public Node addNode(String relPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException
addNode
in interface Node
ItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
RepositoryException
Node.addNode(String)
public Node addNode(String relPath, String primaryNodeTypeName) throws ItemExistsException, PathNotFoundException, NoSuchNodeTypeException, LockException, VersionException, ConstraintViolationException, RepositoryException
addNode
in interface Node
ItemExistsException
PathNotFoundException
NoSuchNodeTypeException
LockException
VersionException
ConstraintViolationException
RepositoryException
Node.addNode(String, String)
public void orderBefore(String srcChildRelPath, String destChildRelPath) throws UnsupportedRepositoryOperationException, VersionException, ConstraintViolationException, ItemNotFoundException, LockException, RepositoryException
orderBefore
in interface Node
UnsupportedRepositoryOperationException
VersionException
ConstraintViolationException
ItemNotFoundException
LockException
RepositoryException
Node.orderBefore(String, String)
public Property setProperty(String name, Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, Value)
public Property setProperty(String name, Value value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, javax.jcr.Value, int)
public Property setProperty(String name, Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, Value[])
public Property setProperty(String name, Value[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, Value[], int)
public Property setProperty(String name, String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, String[])
public Property setProperty(String name, String[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, String[], int)
public Property setProperty(String name, String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, String)
public Property setProperty(String name, String value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, String, int)
public Property setProperty(String name, InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, InputStream)
public Property setProperty(String name, Binary value) throws RepositoryException
setProperty
in interface Node
RepositoryException
Node.setProperty(String, Binary)
public Property setProperty(String name, boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, boolean)
public Property setProperty(String name, double value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, double)
public Property setProperty(String name, BigDecimal value) throws RepositoryException
setProperty
in interface Node
RepositoryException
Node.setProperty(String, BigDecimal)
public Property setProperty(String name, long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, long)
public Property setProperty(String name, Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, Calendar)
public Property setProperty(String name, Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty
in interface Node
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
Node.setProperty(String, Node)
public Node getNode(String relPath) throws PathNotFoundException, RepositoryException
getNode
in interface Node
PathNotFoundException
RepositoryException
Node.getNode(String)
public NodeIterator getNodes() throws RepositoryException
getNodes
in interface Node
RepositoryException
Node.getNodes()
public NodeIterator getNodes(String namePattern) throws RepositoryException
getNodes
in interface Node
RepositoryException
Node.getNodes(String)
public NodeIterator getNodes(String[] nameGlobs) throws RepositoryException
getNodes
in interface Node
RepositoryException
Node.getNodes(String[])
public Property getProperty(String relPath) throws PathNotFoundException, RepositoryException
getProperty
in interface Node
PathNotFoundException
RepositoryException
Node.getProperty(String)
public PropertyIterator getProperties() throws RepositoryException
getProperties
in interface Node
RepositoryException
Node.getProperties()
public PropertyIterator getProperties(String namePattern) throws RepositoryException
getProperties
in interface Node
RepositoryException
Node.getProperties(String)
public PropertyIterator getProperties(String[] nameGlobs) throws RepositoryException
getProperties
in interface Node
RepositoryException
Node.getProperties(String)
public Item getPrimaryItem() throws ItemNotFoundException, RepositoryException
getPrimaryItem
in interface Node
ItemNotFoundException
RepositoryException
Node.getPrimaryItem()
public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException
getUUID
in interface Node
UnsupportedRepositoryOperationException
RepositoryException
Node.getUUID()
public String getIdentifier() throws RepositoryException
getIdentifier
in interface Node
RepositoryException
Node.getIdentifier()
public int getIndex() throws RepositoryException
getIndex
in interface Node
RepositoryException
Node.getIndex()
public PropertyIterator getReferences() throws RepositoryException
getReferences
in interface Node
RepositoryException
Node.getReferences()
public PropertyIterator getReferences(String name) throws RepositoryException
getReferences
in interface Node
RepositoryException
Node.getReferences(String)
public PropertyIterator getWeakReferences() throws RepositoryException
getWeakReferences
in interface Node
RepositoryException
Node.getWeakReferences()
public PropertyIterator getWeakReferences(String name) throws RepositoryException
getWeakReferences
in interface Node
RepositoryException
Node.getWeakReferences()
public boolean hasNode(String relPath) throws RepositoryException
hasNode
in interface Node
RepositoryException
Node.hasNode(String)
public boolean hasProperty(String relPath) throws RepositoryException
hasProperty
in interface Node
RepositoryException
Node.hasProperty(String)
public boolean hasNodes() throws RepositoryException
hasNodes
in interface Node
RepositoryException
Node.hasNodes()
public boolean hasProperties() throws RepositoryException
hasProperties
in interface Node
RepositoryException
Node.hasProperties()
public NodeType getPrimaryNodeType() throws RepositoryException
getPrimaryNodeType
in interface Node
RepositoryException
Node.getPrimaryNodeType()
public void setPrimaryType(String nodeTypeName) throws RepositoryException
setPrimaryType
in interface Node
RepositoryException
Node.setPrimaryType(String)
public NodeType[] getMixinNodeTypes() throws RepositoryException
getMixinNodeTypes
in interface Node
RepositoryException
Node.getMixinNodeTypes()
public boolean isNodeType(String nodeTypeName) throws RepositoryException
isNodeType
in interface Node
RepositoryException
Node.isNodeType(String)
public void addMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException
addMixin
in interface Node
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
Node.addMixin(String)
public void removeMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException
removeMixin
in interface Node
NoSuchNodeTypeException
VersionException
ConstraintViolationException
LockException
RepositoryException
Node.removeMixin(String)
public boolean canAddMixin(String mixinName) throws RepositoryException
canAddMixin
in interface Node
RepositoryException
Node.canAddMixin(String)
public NodeDefinition getDefinition() throws RepositoryException
getDefinition
in interface Node
RepositoryException
Node.getDefinition()
public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
checkin
in interface Node
VersionException
UnsupportedRepositoryOperationException
InvalidItemStateException
LockException
RepositoryException
Node.checkin()
public void checkout() throws UnsupportedRepositoryOperationException, LockException, RepositoryException
checkout
in interface Node
UnsupportedRepositoryOperationException
LockException
RepositoryException
Node.checkout()
public void doneMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
doneMerge
in interface Node
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
Node.doneMerge(Version)
public void cancelMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
cancelMerge
in interface Node
VersionException
InvalidItemStateException
UnsupportedRepositoryOperationException
RepositoryException
Node.cancelMerge(Version)
public void update(String srcWorkspaceName) throws NoSuchWorkspaceException, AccessDeniedException, LockException, InvalidItemStateException, RepositoryException
update
in interface Node
NoSuchWorkspaceException
AccessDeniedException
LockException
InvalidItemStateException
RepositoryException
Node.update(String)
public NodeIterator merge(String srcWorkspace, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, VersionException, LockException, InvalidItemStateException, RepositoryException
merge
in interface Node
NoSuchWorkspaceException
AccessDeniedException
VersionException
LockException
InvalidItemStateException
RepositoryException
Node.merge(String, boolean)
public NodeIterator merge(String srcWorkspace, boolean bestEffort, boolean isShallow) throws RepositoryException
RepositoryException
public String getCorrespondingNodePath(String workspaceName) throws ItemNotFoundException, NoSuchWorkspaceException, AccessDeniedException, RepositoryException
getCorrespondingNodePath
in interface Node
ItemNotFoundException
NoSuchWorkspaceException
AccessDeniedException
RepositoryException
Node.getCorrespondingNodePath(String)
public boolean isCheckedOut() throws RepositoryException
isCheckedOut
in interface Node
RepositoryException
Node.isCheckedOut()
public void restore(String versionName, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
restore
in interface Node
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
Node.restore(String, boolean)
public void restore(Version version, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, RepositoryException
restore
in interface Node
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
RepositoryException
Node.restore(Version, boolean)
public void restore(Version version, String relPath, boolean removeExisting) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
public void restoreByLabel(String versionLabel, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
restoreByLabel
in interface Node
VersionException
ItemExistsException
UnsupportedRepositoryOperationException
LockException
InvalidItemStateException
RepositoryException
Node.restoreByLabel(String, boolean)
public VersionHistory getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException
getVersionHistory
in interface Node
UnsupportedRepositoryOperationException
RepositoryException
Node.getVersionHistory()
public Version getBaseVersion() throws UnsupportedRepositoryOperationException, RepositoryException
getBaseVersion
in interface Node
UnsupportedRepositoryOperationException
RepositoryException
Node.getBaseVersion()
public Lock lock(boolean isDeep, boolean isSessionScoped) throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException
lock
in interface Node
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException
Node.lock(boolean, boolean)
public Lock lock(boolean isDeep, boolean isSessionScoped, long timeoutHint, String ownerHint) throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException
public Lock getLock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, RepositoryException
getLock
in interface Node
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
RepositoryException
Node.getLock()
public void unlock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException
unlock
in interface Node
UnsupportedRepositoryOperationException
LockException
AccessDeniedException
InvalidItemStateException
RepositoryException
Node.unlock()
public boolean holdsLock() throws RepositoryException
holdsLock
in interface Node
RepositoryException
Node.holdsLock()
public boolean isLocked() throws RepositoryException
isLocked
in interface Node
RepositoryException
Node.isLocked()
public void followLifecycleTransition(String transition) throws RepositoryException
followLifecycleTransition
in interface Node
RepositoryException
Node.followLifecycleTransition(String)
public String[] getAllowedLifecycleTransistions() throws RepositoryException
getAllowedLifecycleTransistions
in interface Node
RepositoryException
Node.getAllowedLifecycleTransistions()
public NodeIterator getSharedSet() throws RepositoryException
getSharedSet
in interface Node
RepositoryException
Node.getSharedSet()
public void removeShare() throws RepositoryException
removeShare
in interface Node
RepositoryException
Node.removeShare()
public void removeSharedSet() throws RepositoryException
removeSharedSet
in interface Node
RepositoryException
Node.removeSharedSet()
protected Node getNode(Name nodeName, int index) throws PathNotFoundException, RepositoryException
nodeName
- index
- PathNotFoundException
RepositoryException
protected Property getProperty(Name qName) throws PathNotFoundException, RepositoryException
qName
- PathNotFoundException
RepositoryException
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.