public class DbBookmarkModule extends Object implements BookmarkModule
| Constructor and Description | 
|---|
| DbBookmarkModule() | 
| 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. | 
| void | remove(String token,
      int bmId)Remove a bookmark. | 
| Bookmark | rename(String token,
      int bmId,
      String newName)Rename a previous stored bookmark. | 
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 RepositoryException, DatabaseException
BookmarkModulegetAll in interface BookmarkModuletoken - The session authorization token.RepositoryException - If there is any general repository problem.DatabaseExceptionCopyright © 2015. All Rights Reserved.