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
public BookmarkImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public List<Bookmark> getUserBookmarks() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
BaseBookmark
getUserBookmarks
in interface BaseBookmark
AccessDeniedException
- 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
BaseBookmark
renameBookmark
in interface BaseBookmark
bookmarkId
- 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
BaseBookmark
deleteBookmark
in interface BaseBookmark
bookmarkId
- 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
BaseBookmark
createBookmark
in interface BaseBookmark
uuid
- 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 © 2021 Open Knowledge Management System S.L.. All Rights Reserved.