public interface BaseBookmark
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.
|
List<Bookmark> getUserBookmarks() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
AccessDeniedException
- the access denied exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionWebserviceException
- the webservice exceptionUnknownException
- the unknown exceptionPrincipalAdapterException
- the principal adapter exceptionvoid createBookmark(String uuid, String name) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
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 exceptionvoid renameBookmark(int bookmarkId, String name) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
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 exceptionvoid deleteBookmark(int bookmarkId) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
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 exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.