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
public NoteImpl(String host)
public void setAuthorizationToken(String authorizationToken)
public Note addNote(String uuid, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, WebserviceException, UnknownException
BaseNote
addNote
in interface BaseNote
uuid
- 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
BaseNote
getNote
in interface BaseNote
noteId
- 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
BaseNote
deleteNote
in interface BaseNote
noteId
- 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
BaseNote
setNote
in interface BaseNote
noteId
- 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
BaseNote
listNotes
in interface BaseNote
uuid
- 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
BaseNote
getNotesHistory
in interface BaseNote
uuid
- Node uuidPathNotFoundException
- the path not found exceptionRepositoryException
- the repository exceptionDatabaseException
- the database exceptionUnknownException
- the unknown exceptionWebserviceException
- the webservice exceptionCopyright © 2021 Open Knowledge Management System S.L.. All Rights Reserved.