Class SoapBookmarkClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<BookmarkService>
com.logicaldoc.webservice.soap.client.SoapBookmarkClient
- All Implemented Interfaces:
BookmarkService
Bookmark Web Service client.
- Since:
- 7.6.3
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
ConstructorsConstructorDescriptionSoapBookmarkClient(String endpoint) SoapBookmarkClient(String endpoint, int gzipThreshold, boolean log, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionbookmarkDocument(String sid, long docId) bookmarkFolder(String sid, long folderId) voiddeleteBookmark(String sid, long bookmarkId) getBookmarks(String sid) Retrieves all the bookmarks of the current usersaveBookmark(String sid, WSBookmark bookmark) voidunbookmarkDocument(String sid, long docId) voidunbookmarkFolder(String sid, long folderId)
-
Constructor Details
-
SoapBookmarkClient
-
SoapBookmarkClient
-
-
Method Details
-
saveBookmark
public WSBookmark saveBookmark(String sid, WSBookmark bookmark) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException - Specified by:
saveBookmarkin interfaceBookmarkService- Throws:
AuthenticationExceptionPermissionExceptionWebserviceExceptionPersistenceExceptionUnexistingResourceException
-
bookmarkDocument
public WSBookmark bookmarkDocument(String sid, long docId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException, UnexistingResourceException - Specified by:
bookmarkDocumentin interfaceBookmarkService- Throws:
AuthenticationExceptionPermissionExceptionWebserviceExceptionPersistenceExceptionUnexistingResourceException
-
bookmarkFolder
public WSBookmark bookmarkFolder(String sid, long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException - Specified by:
bookmarkFolderin interfaceBookmarkService- Throws:
AuthenticationExceptionPermissionExceptionWebserviceExceptionPersistenceException
-
getBookmarks
public List<WSBookmark> getBookmarks(String sid) throws AuthenticationException, WebserviceException, PersistenceException Description copied from interface:BookmarkServiceRetrieves all the bookmarks of the current user- Specified by:
getBookmarksin interfaceBookmarkService- Parameters:
sid- identifier of the session or an API Key- Returns:
- list of bookmarks
- Throws:
AuthenticationException- Invalid sessionWebserviceException- Error in the webservicePersistenceException- Error in the database
-
deleteBookmark
public void deleteBookmark(String sid, long bookmarkId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
deleteBookmarkin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-
unbookmarkDocument
public void unbookmarkDocument(String sid, long docId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
unbookmarkDocumentin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-
unbookmarkFolder
public void unbookmarkFolder(String sid, long folderId) throws AuthenticationException, WebserviceException, PersistenceException - Specified by:
unbookmarkFolderin interfaceBookmarkService- Throws:
AuthenticationExceptionWebserviceExceptionPersistenceException
-