Class SharedPublicationResource

    • Constructor Detail

      • SharedPublicationResource

        public SharedPublicationResource()
    • 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.
      • getPublication

        @GET
        @Produces("application/json")
        public PublicationEntity getPublication()
      • getPublications

        @GET
        @Path("node/{node}")
        @Produces("application/json")
        public List<PublicationEntity> getPublications​(@PathParam("node")
                                                       String nodeId,
                                                       @QueryParam("withAttachments")
                                                       boolean withAttachments)
        Description copied from class: AbstractPublicationResource
        Gets the nodes that are children of a parent node.
        Overrides:
        getPublications in class AbstractPublicationResource
        Parameters:
        nodeId - The ID of the parent node.
        withAttachments - Indicated whether attachments related to publications are required.
        Returns:
        An array of the nodes whose parent is the node matching the specified ID.