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, statusChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAncestor, getDepth, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, saveprotected NodeImpl(SessionImpl session, NodeState state, ItemLifeCycleListener[] listeners)
public String getName() throws RepositoryException
getName in interface ItemgetName in class ItemImplRepositoryExceptionItem.getName()public void accept(ItemVisitor visitor) throws RepositoryException
Item.accept(javax.jcr.ItemVisitor) for nodes.accept in interface Itemaccept in class ItemImplvisitor - RepositoryExceptionItem.accept(javax.jcr.ItemVisitor)public boolean isNode()
isNode in interface ItemisNode in class ItemImplItem.isNode()public Node addNode(String relPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException
addNode in interface NodeItemExistsExceptionPathNotFoundExceptionVersionExceptionConstraintViolationExceptionLockExceptionRepositoryExceptionNode.addNode(String)public Node addNode(String relPath, String primaryNodeTypeName) throws ItemExistsException, PathNotFoundException, NoSuchNodeTypeException, LockException, VersionException, ConstraintViolationException, RepositoryException
addNode in interface NodeItemExistsExceptionPathNotFoundExceptionNoSuchNodeTypeExceptionLockExceptionVersionExceptionConstraintViolationExceptionRepositoryExceptionNode.addNode(String, String)public void orderBefore(String srcChildRelPath, String destChildRelPath) throws UnsupportedRepositoryOperationException, VersionException, ConstraintViolationException, ItemNotFoundException, LockException, RepositoryException
orderBefore in interface NodeUnsupportedRepositoryOperationExceptionVersionExceptionConstraintViolationExceptionItemNotFoundExceptionLockExceptionRepositoryExceptionNode.orderBefore(String, String)public Property setProperty(String name, Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, Value)public Property setProperty(String name, Value value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, javax.jcr.Value, int)public Property setProperty(String name, Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, Value[])public Property setProperty(String name, Value[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, Value[], int)public Property setProperty(String name, String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, String[])public Property setProperty(String name, String[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, String[], int)public Property setProperty(String name, String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, String)public Property setProperty(String name, String value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, String, int)public Property setProperty(String name, InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, InputStream)public Property setProperty(String name, Binary value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionNode.setProperty(String, Binary)public Property setProperty(String name, boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, boolean)public Property setProperty(String name, double value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, double)public Property setProperty(String name, BigDecimal value) throws RepositoryException
setProperty in interface NodeRepositoryExceptionNode.setProperty(String, BigDecimal)public Property setProperty(String name, long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, long)public Property setProperty(String name, Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, Calendar)public Property setProperty(String name, Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setProperty in interface NodeValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionNode.setProperty(String, Node)public Node getNode(String relPath) throws PathNotFoundException, RepositoryException
getNode in interface NodePathNotFoundExceptionRepositoryExceptionNode.getNode(String)public NodeIterator getNodes() throws RepositoryException
getNodes in interface NodeRepositoryExceptionNode.getNodes()public NodeIterator getNodes(String namePattern) throws RepositoryException
getNodes in interface NodeRepositoryExceptionNode.getNodes(String)public NodeIterator getNodes(String[] nameGlobs) throws RepositoryException
getNodes in interface NodeRepositoryExceptionNode.getNodes(String[])public Property getProperty(String relPath) throws PathNotFoundException, RepositoryException
getProperty in interface NodePathNotFoundExceptionRepositoryExceptionNode.getProperty(String)public PropertyIterator getProperties() throws RepositoryException
getProperties in interface NodeRepositoryExceptionNode.getProperties()public PropertyIterator getProperties(String namePattern) throws RepositoryException
getProperties in interface NodeRepositoryExceptionNode.getProperties(String)public PropertyIterator getProperties(String[] nameGlobs) throws RepositoryException
getProperties in interface NodeRepositoryExceptionNode.getProperties(String)public Item getPrimaryItem() throws ItemNotFoundException, RepositoryException
getPrimaryItem in interface NodeItemNotFoundExceptionRepositoryExceptionNode.getPrimaryItem()public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException
getUUID in interface NodeUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.getUUID()public String getIdentifier() throws RepositoryException
getIdentifier in interface NodeRepositoryExceptionNode.getIdentifier()public int getIndex()
throws RepositoryException
getIndex in interface NodeRepositoryExceptionNode.getIndex()public PropertyIterator getReferences() throws RepositoryException
getReferences in interface NodeRepositoryExceptionNode.getReferences()public PropertyIterator getReferences(String name) throws RepositoryException
getReferences in interface NodeRepositoryExceptionNode.getReferences(String)public PropertyIterator getWeakReferences() throws RepositoryException
getWeakReferences in interface NodeRepositoryExceptionNode.getWeakReferences()public PropertyIterator getWeakReferences(String name) throws RepositoryException
getWeakReferences in interface NodeRepositoryExceptionNode.getWeakReferences()public boolean hasNode(String relPath) throws RepositoryException
hasNode in interface NodeRepositoryExceptionNode.hasNode(String)public boolean hasProperty(String relPath) throws RepositoryException
hasProperty in interface NodeRepositoryExceptionNode.hasProperty(String)public boolean hasNodes()
throws RepositoryException
hasNodes in interface NodeRepositoryExceptionNode.hasNodes()public boolean hasProperties()
throws RepositoryException
hasProperties in interface NodeRepositoryExceptionNode.hasProperties()public NodeType getPrimaryNodeType() throws RepositoryException
getPrimaryNodeType in interface NodeRepositoryExceptionNode.getPrimaryNodeType()public void setPrimaryType(String nodeTypeName) throws RepositoryException
setPrimaryType in interface NodeRepositoryExceptionNode.setPrimaryType(String)public NodeType[] getMixinNodeTypes() throws RepositoryException
getMixinNodeTypes in interface NodeRepositoryExceptionNode.getMixinNodeTypes()public boolean isNodeType(String nodeTypeName) throws RepositoryException
isNodeType in interface NodeRepositoryExceptionNode.isNodeType(String)public void addMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException
addMixin in interface NodeNoSuchNodeTypeExceptionVersionExceptionConstraintViolationExceptionLockExceptionRepositoryExceptionNode.addMixin(String)public void removeMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException
removeMixin in interface NodeNoSuchNodeTypeExceptionVersionExceptionConstraintViolationExceptionLockExceptionRepositoryExceptionNode.removeMixin(String)public boolean canAddMixin(String mixinName) throws RepositoryException
canAddMixin in interface NodeRepositoryExceptionNode.canAddMixin(String)public NodeDefinition getDefinition() throws RepositoryException
getDefinition in interface NodeRepositoryExceptionNode.getDefinition()public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException
checkin in interface NodeVersionExceptionUnsupportedRepositoryOperationExceptionInvalidItemStateExceptionLockExceptionRepositoryExceptionNode.checkin()public void checkout()
throws UnsupportedRepositoryOperationException,
LockException,
RepositoryException
checkout in interface NodeUnsupportedRepositoryOperationExceptionLockExceptionRepositoryExceptionNode.checkout()public void doneMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
doneMerge in interface NodeVersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.doneMerge(Version)public void cancelMerge(Version version) throws VersionException, InvalidItemStateException, UnsupportedRepositoryOperationException, RepositoryException
cancelMerge in interface NodeVersionExceptionInvalidItemStateExceptionUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.cancelMerge(Version)public void update(String srcWorkspaceName) throws NoSuchWorkspaceException, AccessDeniedException, LockException, InvalidItemStateException, RepositoryException
update in interface NodeNoSuchWorkspaceExceptionAccessDeniedExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionNode.update(String)public NodeIterator merge(String srcWorkspace, boolean bestEffort) throws NoSuchWorkspaceException, AccessDeniedException, VersionException, LockException, InvalidItemStateException, RepositoryException
merge in interface NodeNoSuchWorkspaceExceptionAccessDeniedExceptionVersionExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionNode.merge(String, boolean)public NodeIterator merge(String srcWorkspace, boolean bestEffort, boolean isShallow) throws RepositoryException
RepositoryExceptionpublic String getCorrespondingNodePath(String workspaceName) throws ItemNotFoundException, NoSuchWorkspaceException, AccessDeniedException, RepositoryException
getCorrespondingNodePath in interface NodeItemNotFoundExceptionNoSuchWorkspaceExceptionAccessDeniedExceptionRepositoryExceptionNode.getCorrespondingNodePath(String)public boolean isCheckedOut()
throws RepositoryException
isCheckedOut in interface NodeRepositoryExceptionNode.isCheckedOut()public void restore(String versionName, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException
restore in interface NodeVersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionNode.restore(String, boolean)public void restore(Version version, boolean removeExisting) throws VersionException, ItemExistsException, UnsupportedRepositoryOperationException, LockException, RepositoryException
restore in interface NodeVersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionRepositoryExceptionNode.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 NodeVersionExceptionItemExistsExceptionUnsupportedRepositoryOperationExceptionLockExceptionInvalidItemStateExceptionRepositoryExceptionNode.restoreByLabel(String, boolean)public VersionHistory getVersionHistory() throws UnsupportedRepositoryOperationException, RepositoryException
getVersionHistory in interface NodeUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.getVersionHistory()public Version getBaseVersion() throws UnsupportedRepositoryOperationException, RepositoryException
getBaseVersion in interface NodeUnsupportedRepositoryOperationExceptionRepositoryExceptionNode.getBaseVersion()public Lock lock(boolean isDeep, boolean isSessionScoped) throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException
lock in interface NodeUnsupportedRepositoryOperationExceptionLockExceptionAccessDeniedExceptionInvalidItemStateExceptionRepositoryExceptionNode.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 NodeUnsupportedRepositoryOperationExceptionLockExceptionAccessDeniedExceptionRepositoryExceptionNode.getLock()public void unlock()
throws UnsupportedRepositoryOperationException,
LockException,
AccessDeniedException,
InvalidItemStateException,
RepositoryException
unlock in interface NodeUnsupportedRepositoryOperationExceptionLockExceptionAccessDeniedExceptionInvalidItemStateExceptionRepositoryExceptionNode.unlock()public boolean holdsLock()
throws RepositoryException
holdsLock in interface NodeRepositoryExceptionNode.holdsLock()public boolean isLocked()
throws RepositoryException
isLocked in interface NodeRepositoryExceptionNode.isLocked()public void followLifecycleTransition(String transition) throws RepositoryException
followLifecycleTransition in interface NodeRepositoryExceptionNode.followLifecycleTransition(String)public String[] getAllowedLifecycleTransistions() throws RepositoryException
getAllowedLifecycleTransistions in interface NodeRepositoryExceptionNode.getAllowedLifecycleTransistions()public NodeIterator getSharedSet() throws RepositoryException
getSharedSet in interface NodeRepositoryExceptionNode.getSharedSet()public void removeShare()
throws RepositoryException
removeShare in interface NodeRepositoryExceptionNode.removeShare()public void removeSharedSet()
throws RepositoryException
removeSharedSet in interface NodeRepositoryExceptionNode.removeSharedSet()protected Node getNode(Name nodeName, int index) throws PathNotFoundException, RepositoryException
nodeName - index - PathNotFoundExceptionRepositoryExceptionprotected Property getProperty(Name qName) throws PathNotFoundException, RepositoryException
qName - PathNotFoundExceptionRepositoryExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.