Package com.openkm.sdk4j.impl
Class BookmarkImpl
- java.lang.Object
-
- com.openkm.sdk4j.impl.ClientImpl
-
- com.openkm.sdk4j.impl.BookmarkImpl
-
- All Implemented Interfaces:
BaseBookmark,Serializable
public class BookmarkImpl extends ClientImpl implements BaseBookmark, Serializable
BookmarkImpl- Author:
- sochoa
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BookmarkImpl(String host)BookmarkImpl
-
Method Summary
All Methods Instance Methods Concrete 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.protected voidsetAuthorizationToken(String authorizationToken)setAuthenticationToken-
Methods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
-
-
-
Constructor Detail
-
BookmarkImpl
public BookmarkImpl(String host)
BookmarkImpl
-
-
Method Detail
-
setAuthorizationToken
protected void setAuthorizationToken(String authorizationToken)
setAuthenticationToken
-
getUserBookmarks
public List<Bookmark> getUserBookmarks() throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterException
Description copied from interface:BaseBookmarkRetrive an user bookmark collection.- Specified by:
getUserBookmarksin interfaceBaseBookmark- 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
public void create(String uuid, String name) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, ItemExistsException
Description copied from interface:BaseBookmarkAdd a new bookmark which points to this document.- Specified by:
createin interfaceBaseBookmark- 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
public void rename(int bookmarkId, String name) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterExceptionDescription copied from interface:BaseBookmarkRename a previous stored bookmark.- Specified by:
renamein interfaceBaseBookmark- 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
public void delete(int bookmarkId) throws AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException, PrincipalAdapterExceptionDescription copied from interface:BaseBookmarkRemove a bookmark.- Specified by:
deletein interfaceBaseBookmark- 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
-
-