Package com.openkm.sdk4j.definition
Interface BaseNote
-
- All Known Implementing Classes:
NoteImpl
public interface BaseNoteBaseNote- Author:
- sochoa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Noteadd(String uuid, String text)Add a note to a nodevoiddelete(String noteId)Remove a note from a nodeNoteget(String nodeId)Get note from nodeList<NoteHistory>getNoteHistories(String uuid)Retrieve a list of notes history from a nodeList<Note>list(String uuid)Retrieve a list of notes from a node.voidset(String noteId, String text)Set a new text to node note.
-
-
-
Method Detail
-
add
Note add(String uuid, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Add a note to a node- Parameters:
uuid- Node uuidtext- The message text- Returns:
- Note A note object with the new created note properties.
- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
get
Note get(String nodeId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Get note from node- Parameters:
nodeId- Node uuid- Returns:
- Note The required note associated to the node.
- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
delete
void delete(String noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Remove a note from a node- Parameters:
noteId- Node uuid- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
set
void set(String noteId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Set a new text to node note.- Parameters:
noteId- Node uuidtext- The message text- Throws:
LockException- the lock exceptionPathNotFoundException- the path not found exceptionAccessDeniedException- the access denied exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
list
List<Note> list(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Retrieve a list of notes from a node.- Parameters:
uuid- Node uuid- Returns:
- List
A Collection with the node notes. - Throws:
PathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
getNoteHistories
List<NoteHistory> getNoteHistories(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException
Retrieve a list of notes history from a node- Parameters:
uuid- Node uuid- Returns:
- List
A Collection with the notes history. - Throws:
PathNotFoundException- the path not found exceptionRepositoryException- the repository exceptionDatabaseException- the database exceptionUnknownException- the unknown exceptionWebserviceException- the webservice exception
-
-