Package org.apache.jackrabbit.spi
Interface NodeInfo
- All Superinterfaces:
ItemInfo
- All Known Implementing Classes:
NodeInfoImpl
The
NodeInfo provides the basic information required to build
nodes making up the repository hierarchy.
Note however, that the list of child nodes does not form part of a
NodeInfo. It is retrieved by calling
RepositoryService.getChildInfos(SessionInfo, NodeId). In case of
batch read the
child nodes might be part of the returned Iterator.
-
Method Summary
Modifier and TypeMethodDescriptionReturn allChildInfos of the node represent by this info, an empty iterator if that node doesn't have any child nodes ornullif the implementation is not able or for some internal reasons not willing to compute theChildInfoiterator.getId()Returns theNodeIdfor the node that is based on this info object.intgetIndex()Index of the node.Name[]Deprecated.Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
-
Method Details
-
getId
NodeId getId()Returns theNodeIdfor the node that is based on this info object. -
getIndex
int getIndex()Index of the node.- Returns:
- the index.
-
getNodetype
Name getNodetype()- Returns:
Namerepresenting the name of the primary nodetype.
-
getMixins
Name[] getMixins()- Returns:
- Array of
Names representing the names of mixin nodetypes. This includes only explicitly assigned mixin nodetypes. It does not include mixin types inherited through the addition of supertypes to the primary type hierarchy. If there are no mixin node types assigned an empty array will be returned.
-
getReferences
PropertyId[] getReferences()Deprecated.Return theIds of the properties that are referencing the node based on this info object.- Returns:
Ids of the properties that are referencing the node based on this info object or an empty array if the node is not referenceable or no references exist.- See Also:
-
getPropertyIds
Iterator<PropertyId> getPropertyIds()- Returns:
Ids of children properties- See Also:
-
getChildInfos
Return allChildInfos of the node represent by this info, an empty iterator if that node doesn't have any child nodes ornullif the implementation is not able or for some internal reasons not willing to compute theChildInfoiterator. In the latter case the user of this API must callRepositoryService.getChildInfos(SessionInfo, NodeId)in order to determine the existence and identity of the child nodes.- Returns:
- An iterator of
ChildInfos ornullif the implementation is not able or willing to compute the set ofChildInfos (e.g. an implementation may choose to returnnullif there is a huge amount of child nodes). In this caseRepositoryService.getChildInfos(SessionInfo, NodeId)will be used to load theChildInfos.
-
RepositoryService.getReferences(SessionInfo, NodeId, Name, boolean)instead.