Interface ServiceComment

  • All Superinterfaces:
    org.fusesource.restygwt.client.RestService

    @Path("/comments")
    public interface ServiceComment
    extends org.fusesource.restygwt.client.RestService
    Author:
    svu
    • Method Detail

      • saveNewComment

        @POST
        @Path("{componentId}/{contentType}/{contentId}/")
        void saveNewComment​(@PathParam("componentId")
                            String componentId,
                            @PathParam("contentType")
                            String contentType,
                            @PathParam("contentId")
                            String contentId,
                            CommentDTO commentToSave,
                            org.fusesource.restygwt.client.MethodCallback<CommentDTO> callback)
      • getAllComments

        @GET
        @Path("{componentId}/{contentType}/{contentId}/")
        void getAllComments​(@PathParam("componentId")
                            String componentId,
                            @PathParam("contentType")
                            String contentType,
                            @PathParam("contentId")
                            String contentId,
                            org.fusesource.restygwt.client.MethodCallback<List<CommentDTO>> callback)
      • deleteComment

        @DELETE
        @Path("{componentId}/{contentType}/{contentId}/{commentId}")
        void deleteComment​(@PathParam("componentId")
                           String componentId,
                           @PathParam("contentType")
                           String contentType,
                           @PathParam("contentId")
                           String contentId,
                           @PathParam("commentId")
                           String commentId,
                           org.fusesource.restygwt.client.MethodCallback<Void> callback)
      • updateComment

        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        @Path("{componentId}/{contentType}/{contentId}/{commentId}")
        void updateComment​(@PathParam("componentId")
                           String componentId,
                           @PathParam("contentType")
                           String contentType,
                           @PathParam("contentId")
                           String contentId,
                           @PathParam("commentId")
                           String commentId,
                           CommentDTO comment,
                           org.fusesource.restygwt.client.MethodCallback<CommentDTO> callback)