public interface HippoNode
extends javax.jcr.Node
Node
instance returned by any method of a Hippo Repostitory may be cast to the HippoNode interface to expose additional functionality.Modifier and Type | Method and Description |
---|---|
javax.jcr.Node |
getCanonicalNode()
Get the most accurate and complete version available of the information
represented in the current node.
|
String |
getDisplayName()
Obtain a display name for this node.
|
boolean |
isVirtual()
Whether this is a virtual node or not.
|
javax.jcr.NodeIterator |
pendingChanges()
Conveniance method for
pendingChanges("nt:base", false) |
javax.jcr.NodeIterator |
pendingChanges(String nodeType)
Conveniance method for
pendingChanges(nodeType,false) |
javax.jcr.NodeIterator |
pendingChanges(String nodeType,
boolean prune)
Obtains an iterator over the set of nodes that potentially contain
changes, starting (and not including) this node.
|
boolean |
recomputeDerivedData()
Some operations may leave some nodes' derived data stale.
|
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
String getDisplayName() throws javax.jcr.RepositoryException
Item.getName()
.
If display name is available the result is the same as calling getProperty("hippo:name").getString()
.
If this node does not have a display name but is a child node of a hippo:handle node having a display name,
the display name of the parent handle node will be returned.javax.jcr.RepositoryException
javax.jcr.Node getCanonicalNode() throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
javax.jcr.ItemNotFoundException
- indicates the canonical node is no longer availablejavax.jcr.RepositoryException
- indicates a generic unspecified repository errorjavax.jcr.NodeIterator pendingChanges(String nodeType, boolean prune) throws javax.jcr.NamespaceException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
Node.isNodeType(nodeType)
returns
true are included in the resulting set. If the prune boolean value is
true, then the nodes matching in the hierarchy first are returned. If
matching modified node exists beneath the nodes, these are not
included.nodeType
- Only nodes that are (derived) of this nodeType are
included in the resultprune
- Whether only to return the first matching modified node in
a subtree (true), or provide a depth search for all modified
nodes (false)javax.jcr.NamespaceException
- indicates an invalid nodeType parameterjavax.jcr.nodetype.NoSuchNodeTypeException
- indicates an invalid nodeType parameterjavax.jcr.RepositoryException
- indicates a generic unspecified repository errorHippoSession.pendingChanges(Node,String,boolean)
javax.jcr.NodeIterator pendingChanges(String nodeType) throws javax.jcr.NamespaceException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.RepositoryException
pendingChanges(nodeType,false)
nodeType
- Only nodes that are (derived) of this nodeType are
included in the resultjavax.jcr.NamespaceException
- indicates an invalid nodeType parameterjavax.jcr.RepositoryException
- indicates a generic unspecified repository errorjavax.jcr.nodetype.NoSuchNodeTypeException
- indicates an invalid nodeType parameterpendingChanges(String,boolean)
javax.jcr.NodeIterator pendingChanges() throws javax.jcr.RepositoryException
pendingChanges("nt:base", false)
javax.jcr.RepositoryException
- indicates a generic unspecified repository errorpendingChanges(String,boolean)
boolean isVirtual() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean recomputeDerivedData() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.