Class NodeEntity

    • Constructor Detail

      • NodeEntity

        public NodeEntity()
    • Method Detail

      • fromNodeDetail

        public static NodeEntity fromNodeDetail​(SilverpeasRole highestComponentUserRole,
                                                NodeDetail node,
                                                URI uri)
        Creates a new node entity from the specified node.
        Parameters:
        highestComponentUserRole - the highest component user role from which code are computed.
        node - the node to entitify.
        Returns:
        the entity representing the specified node.
      • getURI

        public URI getURI()
        Description copied from interface: WebEntity
        Gets the URI at which this web entity is published and can be accessed.
        Specified by:
        getURI in interface WebEntity
        Returns:
        the web entity URI.
      • setURI

        public void setURI​(URI uri)
      • setId

        public void setId​(String id)
      • getId

        public String getId()
      • setChildren

        public void setChildren​(NodeEntity[] children)
      • setText

        public final void setText​(String text)
      • getText

        public String getText()
      • setType

        public final void setType​(NodeType type)
      • setChildrenURI

        public final void setChildrenURI​(URI childrenURI)
      • getChildrenURI

        public final URI getChildrenURI​(URI uri)
      • getChildrenURI

        public URI getChildrenURI()
      • toNodePK

        public NodePK toNodePK()
        Gets the node pk objet that this entity represents.
        Returns:
        a node PK.