Class AbstractNodeResource

    • Field Detail

      • componentId

        @PathParam("componentId")
        protected String componentId
    • Constructor Detail

      • AbstractNodeResource

        public AbstractNodeResource()
    • Method Detail

      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.
      • getRoot

        protected NodeEntity getRoot()
        Get the root of the application and its children. As this service works only in non authenticated mode for the moment, children do not contain special nodes.
        Returns:
        the application root and its children
      • getNode

        protected NodeEntity getNode​(String path)
        Get any node of the application and its children.
        Returns:
        NodeEntity representing asking node
      • getChildren

        protected NodeEntity[] getChildren​(String path)
        Get all children of any node of the application.
        Returns:
        an array of NodeEntity representing children
      • isNodeReadable

        protected abstract boolean isNodeReadable​(NodeDetail node)