Class RestBookmarkClient
- java.lang.Object
-
- com.logicaldoc.webservice.rest.client.AbstractRestClient
-
- com.logicaldoc.webservice.rest.client.RestBookmarkClient
-
public class RestBookmarkClient extends AbstractRestClient
-
-
Constructor Summary
Constructors Constructor Description RestBookmarkClient(String endpoint, String username, String password)
RestBookmarkClient(String endpoint, String username, String password, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WSBookmark
bookmarkDocument(long docId)
WSBookmark
bookmarkFolder(long folderId)
void
deleteBookmark(long bookmarkId)
WSBookmark[]
getBookmarks()
Retrieves all the bookmarks of the current userWSBookmark
saveBookmark(WSBookmark bookmark)
void
unbookmarkDocument(long docId)
void
unbookmarkFolder(long folderId)
-
-
-
Method Detail
-
saveBookmark
public WSBookmark saveBookmark(WSBookmark bookmark) throws Exception
- Throws:
Exception
-
bookmarkDocument
public WSBookmark bookmarkDocument(@QueryParam("docId") long docId) throws Exception
- Throws:
Exception
-
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
-
-