Class NodeInfoImpl

  • All Implemented Interfaces:
    Serializable, org.apache.jackrabbit.spi.ItemInfo, org.apache.jackrabbit.spi.NodeInfo

    public class NodeInfoImpl
    extends ItemInfoImpl
    implements org.apache.jackrabbit.spi.NodeInfo
    NodeInfoImpl implements a serializable NodeInfo based on another node info.
    See Also:
    Serialized Form
    • Constructor Detail

      • NodeInfoImpl

        public NodeInfoImpl​(org.apache.jackrabbit.spi.NodeId parentId,
                            org.apache.jackrabbit.spi.Name name,
                            org.apache.jackrabbit.spi.Path path,
                            org.apache.jackrabbit.spi.NodeId id,
                            int index,
                            org.apache.jackrabbit.spi.Name primaryTypeName,
                            org.apache.jackrabbit.spi.Name[] mixinNames,
                            Iterator<org.apache.jackrabbit.spi.PropertyId> references,
                            Iterator<org.apache.jackrabbit.spi.PropertyId> propertyIds,
                            Iterator<org.apache.jackrabbit.spi.ChildInfo> childInfos)
        Deprecated.
        Creates a new node info from the given parameters.
        Parameters:
        parentId - the parent id.
        name - the name of this item.
        path - the path to this item.
        id - the id of this item.
        index - the index of this item.
        primaryTypeName - the name of the primary node type.
        mixinNames - the names of the assigned mixins.
        references - the references to this node.
        propertyIds - the properties of this node.
        childInfos - the child infos of this node or null.
      • NodeInfoImpl

        public NodeInfoImpl​(org.apache.jackrabbit.spi.Path path,
                            org.apache.jackrabbit.spi.NodeId id,
                            int index,
                            org.apache.jackrabbit.spi.Name primaryTypeName,
                            org.apache.jackrabbit.spi.Name[] mixinNames,
                            Iterator<org.apache.jackrabbit.spi.PropertyId> references,
                            Iterator<org.apache.jackrabbit.spi.PropertyId> propertyIds,
                            Iterator<org.apache.jackrabbit.spi.ChildInfo> childInfos)
        Creates a new node info from the given parameters.
        Parameters:
        path - the path to this item.
        id - the id of this item.
        index - the index of this item.
        primaryTypeName - the name of the primary node type.
        mixinNames - the names of the assigned mixins.
        references - the references to this node.
        propertyIds - the properties of this node.
    • Method Detail

      • createSerializableNodeInfo

        public static org.apache.jackrabbit.spi.NodeInfo createSerializableNodeInfo​(org.apache.jackrabbit.spi.NodeInfo nodeInfo,
                                                                                    org.apache.jackrabbit.spi.IdFactory idFactory)
        Creates a new serializable NodeInfo for the given NodeInfo.
        Parameters:
        nodeInfo -
      • getId

        public org.apache.jackrabbit.spi.NodeId getId()
        Specified by:
        getId in interface org.apache.jackrabbit.spi.ItemInfo
        Specified by:
        getId in interface org.apache.jackrabbit.spi.NodeInfo
      • getIndex

        public int getIndex()
        Specified by:
        getIndex in interface org.apache.jackrabbit.spi.NodeInfo
      • getNodetype

        public org.apache.jackrabbit.spi.Name getNodetype()
        Specified by:
        getNodetype in interface org.apache.jackrabbit.spi.NodeInfo
      • getMixins

        public org.apache.jackrabbit.spi.Name[] getMixins()
        Specified by:
        getMixins in interface org.apache.jackrabbit.spi.NodeInfo
      • getReferences

        public org.apache.jackrabbit.spi.PropertyId[] getReferences()
        Specified by:
        getReferences in interface org.apache.jackrabbit.spi.NodeInfo
      • getPropertyIds

        public Iterator<org.apache.jackrabbit.spi.PropertyId> getPropertyIds()
        Specified by:
        getPropertyIds in interface org.apache.jackrabbit.spi.NodeInfo
      • getChildInfos

        public Iterator<org.apache.jackrabbit.spi.ChildInfo> getChildInfos()
        Specified by:
        getChildInfos in interface org.apache.jackrabbit.spi.NodeInfo