Package com.openkm.sdk4j.definition
Interface BaseBookmark
-
- All Known Implementing Classes:
BookmarkImpl
public interface BaseBookmarkBaseBookmark- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreate(String uuid, String name)Add a new bookmark which points to this document.voiddelete(int bookmarkId)Remove a bookmark.List<Bookmark>getUserBookmarks()Retrive an user bookmark collection.voidrename(int bookmarkId, String name)Rename a previous stored bookmark.
-
-
-
Method Detail
-
getUserBookmarks
List<Bookmark> getUserBookmarks() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
Retrive an user bookmark collection.- Returns:
- List
All the user bookmarks. - Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPrincipalAdapterException- the principal adapter exception
-
create
void create(String uuid, String name) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Add a new bookmark which points to this document.- Parameters:
uuid- Node uuidname- The name of the bookmark.- Throws:
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 exception
-
rename
void rename(int bookmarkId, String name) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterExceptionRename a previous stored bookmark.- Parameters:
bookmarkId- The actual bookmark id.name- The new bookmark name.- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPrincipalAdapterException- the principal adapter exception
-
delete
void delete(int bookmarkId) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterExceptionRemove a bookmark.- Parameters:
bookmarkId- The bookmark id to be deleted.- Throws:
AccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionWebserviceException- the webservice exceptionUnknownException- the unknown exceptionPrincipalAdapterException- the principal adapter exception
-
-