public class NoteImpl extends ClientImpl implements BaseNote, Serializable
| Modifier and Type | Method and Description |
|---|---|
Note |
addNote(String uuid,
String text)
Add a note to a node
|
void |
deleteNote(String noteId)
Remove a note from a node
|
Note |
getNote(String noteId)
Get note from node
|
List<NoteHistory> |
getNotesHistory(String uuid)
Retrieve a list of notes history from a node
|
List<Note> |
listNotes(String uuid)
Retrieve a list of notes from a node.
|
void |
setAuthorizationToken(String authorizationToken)
setAuthenticationToken
|
void |
setNote(String noteId,
String text)
Set a new text to node note.
|
getClient, resource, resource, resourcepublic NoteImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Note addNote(String uuid, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseNoteaddNote in interface BaseNoteuuid - Node uuidtext - The message textLockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionpublic Note getNote(String noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseNotegetNote in interface BaseNotenoteId - Node uuidLockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionWebserviceException - the webservice exceptionUnknownException - the unknown exceptionpublic void deleteNote(String noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseNotedeleteNote in interface BaseNotenoteId - Node uuidLockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic void setNote(String noteId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseNotesetNote in interface BaseNotenoteId - Node uuidtext - The message textLockException - the lock exceptionPathNotFoundException - the path not found exceptionAccessDeniedException - the access denied exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<Note> listNotes(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseNotelistNotes in interface BaseNoteuuid - Node uuidPathNotFoundException - the path not found exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionpublic List<NoteHistory> getNotesHistory(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
BaseNotegetNotesHistory in interface BaseNoteuuid - Node uuidPathNotFoundException - the path not found exceptionRepositoryException - the repository exceptionDatabaseException - the database exceptionUnknownException - the unknown exceptionWebserviceException - the webservice exceptionCopyright © 2022 Open Knowledge Management System S.L.. All Rights Reserved.