Package org.apache.jackrabbit.api
Interface JackrabbitNode
-
- All Superinterfaces:
javax.jcr.Item
,javax.jcr.Node
@ProviderType public interface JackrabbitNode extends javax.jcr.Node
The Jackrabbit Node interface. This interface contains the Jackrabbit-specific extensions to the JCRNode
interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable JackrabbitNode
getNodeOrNull(@NotNull java.lang.String relPath)
Returns the node atrelPath
relative tothis
node ornull
if no such node exists.default @Nullable javax.jcr.Property
getPropertyOrNull(@NotNull java.lang.String relPath)
Returns the property atrelPath
relative tothis
node ornull
if no such property exists.void
rename(java.lang.String newName)
void
setMixins(java.lang.String[] mixinNames)
-
Methods inherited from interface javax.jcr.Item
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
-
Methods inherited from interface javax.jcr.Node
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
-
-
-
-
Method Detail
-
rename
void rename(java.lang.String newName) throws javax.jcr.RepositoryException
- Parameters:
newName
-- Throws:
javax.jcr.RepositoryException
-
setMixins
void setMixins(java.lang.String[] mixinNames) throws javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
- Parameters:
mixinNames
-- Throws:
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
-
getNodeOrNull
@Nullable default @Nullable JackrabbitNode getNodeOrNull(@NotNull @NotNull java.lang.String relPath) throws javax.jcr.RepositoryException
Returns the node atrelPath
relative tothis
node ornull
if no such node exists. The same reacquisition semantics apply as withNode.getNode(String)
.- Parameters:
relPath
- The relative path of the node to retrieve.- Returns:
- The node at
relPath
ornull
- Throws:
javax.jcr.RepositoryException
- If an error occurs.
-
getPropertyOrNull
@Nullable default @Nullable javax.jcr.Property getPropertyOrNull(@NotNull @NotNull java.lang.String relPath) throws javax.jcr.RepositoryException
Returns the property atrelPath
relative tothis
node ornull
if no such property exists. The same reacquisition semantics apply as withNode.getNode(String)
.- Parameters:
relPath
- The relative path of the property to retrieve.- Returns:
- The property at
relPath
ornull
- Throws:
javax.jcr.RepositoryException
- If an error occurs.
-
-