Class RestBookmarkClient
java.lang.Object
com.logicaldoc.webservice.rest.client.AbstractRestClient
com.logicaldoc.webservice.rest.client.RestBookmarkClient
-
Constructor Summary
ConstructorDescriptionRestBookmarkClient
(String endpoint, String username, String password) RestBookmarkClient
(String endpoint, String username, String password, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionbookmarkDocument
(long docId) bookmarkFolder
(long folderId) void
deleteBookmark
(long bookmarkId) Retrieves all the bookmarks of the current usersaveBookmark
(WSBookmark bookmark) void
unbookmarkDocument
(long docId) void
unbookmarkFolder
(long folderId)
-
Constructor Details
-
RestBookmarkClient
-
RestBookmarkClient
-
-
Method Details
-
saveBookmark
public WSBookmark saveBookmark(WSBookmark bookmark) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException -
bookmarkDocument
public 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 WSBookmark[] getBookmarks() throws AuthenticationException, PermissionException, WebserviceException, PersistenceExceptionRetrieves all the bookmarks of the current user- Returns:
- array of bookmarks
- Throws:
PersistenceException
- Error in the databaseWebserviceException
- Error in the webserviceAuthenticationException
- Invalid sessionPermissionException
- 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
-