public class BookmarkImpl extends ClientImpl implements BaseBookmark, Serializable
| Constructor and Description |
|---|
BookmarkImpl(String host)
BookmarkImpl
|
| Modifier and Type | Method and Description |
|---|---|
void |
createBookmark(String uuid,
String name)
Add a new bookmark which points to this document.
|
void |
deleteBookmark(int bookmarkId)
Remove a bookmark.
|
List<Bookmark> |
getUserBookmarks()
Retrive an user bookmark collection.
|
void |
renameBookmark(int bookmarkId,
String name)
Rename a previous stored bookmark.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
getClient, resource, resource, resourcepublic BookmarkImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<Bookmark> getUserBookmarks() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseBookmarkgetUserBookmarks in interface BaseBookmarkAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionPrincipalAdapterException - the principal adapter exceptionpublic void renameBookmark(int bookmarkId,
String name)
throws AccessDeniedException,
RepositoryException,
DatabaseException,
WebserviceException,
UnknownException,
PrincipalAdapterException
BaseBookmarkrenameBookmark in interface BaseBookmarkbookmarkId - The actual bookmark id.name - The new bookmark name.AccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionPrincipalAdapterException - the principal adapter exceptionpublic void deleteBookmark(int bookmarkId)
throws AccessDeniedException,
RepositoryException,
DatabaseException,
WebserviceException,
UnknownException,
PrincipalAdapterException
BaseBookmarkdeleteBookmark in interface BaseBookmarkbookmarkId - The bookmark id to be deleted.AccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionPrincipalAdapterException - the principal adapter exceptionpublic void createBookmark(String uuid, String name) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
BaseBookmarkcreateBookmark in interface BaseBookmarkuuid - Node uuidname - The name of the bookmark.LockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionItemExistsException - the item exists exceptionCopyright © 2024 Open Knowledge Management System S.L.. All Rights Reserved.