Class RestBookmarkClient

    • Constructor Detail

      • RestBookmarkClient

        public RestBookmarkClient​(String endpoint,
                                  String username,
                                  String password)
      • RestBookmarkClient

        public RestBookmarkClient​(String endpoint,
                                  String username,
                                  String password,
                                  int timeout)
    • Method Detail

      • bookmarkFolder

        @GET
        @Path("/bookmarkFolder")
        public WSBookmark bookmarkFolder​(@QueryParam("folderId")
                                         long folderId)
                                  throws Exception
        Throws:
        Exception
      • getBookmarks

        @GET
        @Path("/getBookmarks")
        public WSBookmark[] getBookmarks()
                                  throws Exception
        Retrieves all the bookmarks of the current user
        Returns:
        array of bookmarks
        Throws:
        Exception - error in the server application
      • deleteBookmark

        @DELETE
        @Path("/deleteBookmark")
        public void deleteBookmark​(@QueryParam("bookmarkId")
                                   long bookmarkId)
                            throws Exception
        Throws:
        Exception
      • unbookmarkDocument

        @DELETE
        @Path("/unbookmarkDocument")
        public void unbookmarkDocument​(@QueryParam("docId")
                                       long docId)
                                throws Exception
        Throws:
        Exception
      • unbookmarkFolder

        @DELETE
        @Path("/unbookmarkFolder")
        public void unbookmarkFolder​(@QueryParam("folderId")
                                     long folderId)
                              throws Exception
        Throws:
        Exception