public class JcrBookmarkModule extends Object implements BookmarkModule
Constructor and Description |
---|
JcrBookmarkModule() |
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
BookmarkModule
add
in interface BookmarkModule
token
- 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.PathNotFoundException
DatabaseException
public Bookmark get(String token, int bmId) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModule
get
in interface BookmarkModule
token
- 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.DatabaseException
public void remove(String token, int bmId) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModule
remove
in interface BookmarkModule
token
- 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.DatabaseException
public Bookmark rename(String token, int bmId, String newName) throws AccessDeniedException, RepositoryException, DatabaseException
BookmarkModule
rename
in interface BookmarkModule
token
- 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.DatabaseException
public List<Bookmark> getAll(String token) throws RepositoryException, DatabaseException
BookmarkModule
getAll
in interface BookmarkModule
token
- The session authorization token.RepositoryException
- If there is any general repository problem.DatabaseException
Copyright © 2016. All rights reserved.