Class SoapBookmarkClient
- java.lang.Object
-
- com.logicaldoc.webservice.soap.client.SoapClient<BookmarkService>
-
- com.logicaldoc.webservice.soap.client.SoapBookmarkClient
-
- All Implemented Interfaces:
BookmarkService
public class SoapBookmarkClient extends SoapClient<BookmarkService> implements BookmarkService
Bookmark Web Service client.- Since:
- 7.6.3
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SoapBookmarkClient(String endpoint)
SoapBookmarkClient(String endpoint, int gzipThreshold, boolean log, int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WSBookmark
bookmarkDocument(String sid, long docId)
WSBookmark
bookmarkFolder(String sid, long folderId)
void
deleteBookmark(String sid, long bookmarkId)
WSBookmark[]
getBookmarks(String sid)
Retrieves all the bookmarks of the current userWSBookmark
saveBookmark(String sid, WSBookmark bookmark)
void
unbookmarkDocument(String sid, long docId)
void
unbookmarkFolder(String sid, long folderId)
-
-
-
Constructor Detail
-
SoapBookmarkClient
public SoapBookmarkClient(String endpoint, int gzipThreshold, boolean log, int timeout) throws IOException
- Throws:
IOException
-
SoapBookmarkClient
public SoapBookmarkClient(String endpoint) throws IOException
- Throws:
IOException
-
-
Method Detail
-
saveBookmark
public WSBookmark saveBookmark(String sid, WSBookmark bookmark) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException
- Specified by:
saveBookmark
in interfaceBookmarkService
- Throws:
AuthenticationException
PermissionException
WebserviceException
PersistenceException
-
bookmarkDocument
public WSBookmark bookmarkDocument(String sid, long docId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException
- Specified by:
bookmarkDocument
in interfaceBookmarkService
- Throws:
AuthenticationException
PermissionException
WebserviceException
PersistenceException
-
bookmarkFolder
public WSBookmark bookmarkFolder(String sid, long folderId) throws AuthenticationException, PermissionException, WebserviceException, PersistenceException
- Specified by:
bookmarkFolder
in interfaceBookmarkService
- Throws:
AuthenticationException
PermissionException
WebserviceException
PersistenceException
-
getBookmarks
public WSBookmark[] getBookmarks(String sid) throws AuthenticationException, WebserviceException, PersistenceException
Description copied from interface:BookmarkService
Retrieves all the bookmarks of the current user- Specified by:
getBookmarks
in interfaceBookmarkService
- Parameters:
sid
- identifier of the session- Returns:
- array 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:
deleteBookmark
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-
unbookmarkDocument
public void unbookmarkDocument(String sid, long docId) throws AuthenticationException, WebserviceException, PersistenceException
- Specified by:
unbookmarkDocument
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-
unbookmarkFolder
public void unbookmarkFolder(String sid, long folderId) throws AuthenticationException, WebserviceException, PersistenceException
- Specified by:
unbookmarkFolder
in interfaceBookmarkService
- Throws:
AuthenticationException
WebserviceException
PersistenceException
-
-