Class RestBookmarkClient
java.lang.Object
com.logicaldoc.webservice.rest.client.AbstractRestClient<BookmarkService>
com.logicaldoc.webservice.rest.client.RestBookmarkClient
- 
Constructor SummaryConstructorsConstructorDescriptionRestBookmarkClient(String endpoint, String apiKey) RestBookmarkClient(String endpoint, String apiKey, int timeout) 
- 
Method SummaryModifier and TypeMethodDescriptionbookmarkDocument(long docId) bookmarkFolder(long folderId) voiddeleteBookmark(long bookmarkId) Retrieves all the bookmarks of the current usersaveBookmark(WSBookmark bookmark) voidunbookmarkDocument(long docId) voidunbookmarkFolder(long folderId) 
- 
Constructor Details- 
RestBookmarkClient
- 
RestBookmarkClient
 
- 
- 
Method Details- 
saveBookmarkpublic WSBookmark saveBookmark(WSBookmark bookmark) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException 
- 
bookmarkDocumentpublic WSBookmark bookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException 
- 
bookmarkFolder@GET @Path("/bookmarkFolder") public WSBookmark bookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException 
- 
getBookmarks@GET @Path("/getBookmarks") public List<WSBookmark> getBookmarks() throws AuthenticationException, PermissionException, WebserviceException, PersistenceExceptionRetrieves all the bookmarks of the current user- Returns:
- list of bookmarks
- Throws:
- PersistenceException- Error in the database
- WebserviceException- Error in the webservice
- AuthenticationException- Invalid session
- PermissionException- The user does not have the required permission
 
- 
deleteBookmark@DELETE @Path("/deleteBookmark") public void deleteBookmark(@QueryParam("bookmarkId") long bookmarkId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException 
- 
unbookmarkDocument@DELETE @Path("/unbookmarkDocument") public void unbookmarkDocument(@QueryParam("docId") long docId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException 
- 
unbookmarkFolder@DELETE @Path("/unbookmarkFolder") public void unbookmarkFolder(@QueryParam("folderId") long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException 
 
-