Package org.apache.jackrabbit.spi
Interface NodeInfo
-
- All Superinterfaces:
ItemInfo
- All Known Implementing Classes:
NodeInfoImpl,NodeInfoImpl,NodeInfoImpl
public interface NodeInfo extends ItemInfo
TheNodeInfoprovides 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 callingRepositoryService.getChildInfos(SessionInfo, NodeId). In case ofbatch readthe child nodes might be part of the returnedIterator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Iterator<ChildInfo>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.NodeIdgetId()Returns theNodeIdfor the node that is based on this info object.intgetIndex()Index of the node.Name[]getMixins()NamegetNodetype()Iterator<PropertyId>getPropertyIds()PropertyId[]getReferences()Deprecated.-
Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
-
-
-
-
Method Detail
-
getId
NodeId getId()
Returns theNodeIdfor the node that is based on this info object.- Specified by:
getIdin interfaceItemInfo- Returns:
- identifier for the item that is based on this info object. the id can either be an absolute path or a uniqueID (+ relative path).
- See Also:
RepositoryService.getNodeInfo(SessionInfo, NodeId)
-
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
@Deprecated 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:
PropertyInfo.getId()
-
getPropertyIds
Iterator<PropertyId> getPropertyIds()
- Returns:
Ids of children properties- See Also:
PropertyInfo.getId()
-
getChildInfos
Iterator<ChildInfo> 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.
-
-