Class PublicationResource

    • Field Detail

      • componentId

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

      • PublicationResource

        public PublicationResource()
    • 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.
      • getPublications

        @GET
        @Produces("application/json")
        public List<PublicationEntity> getPublications​(@QueryParam("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.
      • deleteLink

        @DELETE
        @Path("{pubId}/links/{linkId}")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteLink​(@PathParam("pubId")
                                                    String pubId,
                                                    @PathParam("linkId")
                                                    String linkId)
      • getLocations

        @GET
        @Path("{pubId}/locations")
        @Produces("application/json")
        public List<LocationEntity> getLocations​(@PathParam("pubId")
                                                 String pubId,
                                                 @QueryParam("lang")
                                                 String language)
      • addAlias

        @PUT
        @Path("{pubId}/locations/{nodeId}-{aliasComponentId}")
        @Produces("application/json")
        public javax.ws.rs.core.Response addAlias​(@PathParam("pubId")
                                                  String pubId,
                                                  @PathParam("nodeId")
                                                  String nodeId,
                                                  @PathParam("aliasComponentId")
                                                  String aliasComponentId)
      • deleteAlias

        @DELETE
        @Path("{pubId}/locations/{nodeId}-{aliasComponentId}")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteAlias​(@PathParam("pubId")
                                                     String pubId,
                                                     @PathParam("nodeId")
                                                     String nodeId,
                                                     @PathParam("aliasComponentId")
                                                     String aliasComponentId)
      • identifiedBy

        protected URI identifiedBy​(URI uri)