public class OKMBookmark extends Object implements BookmarkModule
| Modifier and Type | Method and Description |
|---|---|
Bookmark |
add(String token,
String nodePath,
String name)
Add a new bookmark which points to this document.
|
Bookmark |
get(String token,
int bmId)
Get info from a previously created bookmark.
|
List<Bookmark> |
getAll(String token)
Retrive an user bookmark collection.
|
static OKMBookmark |
getInstance() |
void |
remove(String token,
int bmId)
Remove a bookmark.
|
Bookmark |
rename(String token,
int bmId,
String newName)
Rename a previous stored bookmark.
|
public static OKMBookmark getInstance()
public Bookmark add(String token, String nodePath, String name) throws AccessDeniedException, PathNotFoundException, RepositoryException, DatabaseException
BookmarkModuleadd in interface BookmarkModuletoken - The session authorization token.nodePath - A node path to be bookmarked.name - The name of the bookmark.AccessDeniedException - If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException - If there is any general repository problem.PathNotFoundExceptionDatabaseExceptionpublic Bookmark get(String token, int bmId) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModuleget in interface BookmarkModuletoken - The session authorization token.bmId - The unique bookmark id.AccessDeniedException - If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException - If there is any general repository problem.DatabaseExceptionpublic void remove(String token, int bmId) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModuleremove in interface BookmarkModuletoken - The session authorization token.bmId - The bookmark id to be deleted.AccessDeniedException - If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException - If there is any general repository problem.DatabaseExceptionpublic Bookmark rename(String token, int bmId, String newName) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModulerename in interface BookmarkModuletoken - The session authorization token.bmId - The actual bookmark id.newName - The new bookmark name.AccessDeniedException - If there is any security problem:
you can't modify the node because of lack of permissions.RepositoryException - If there is any general repository problem.DatabaseExceptionpublic List<Bookmark> getAll(String token) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModulegetAll in interface BookmarkModuletoken - The session authorization token.RepositoryException - If there is any general repository problem.AccessDeniedExceptionDatabaseExceptionCopyright © 2018 Open Knowledge Management System S.L.. All rights reserved.