Package com.openkm.sdk4j.impl
Class NoteImpl
java.lang.Object
com.openkm.sdk4j.impl.ClientImpl
com.openkm.sdk4j.impl.NoteImpl
- All Implemented Interfaces:
BaseNote,Serializable
NoteImpl
- Author:
- sochoa
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a note to a nodevoidRemove a note from a nodeGet note from nodegetNoteHistories(String uuid) Retrieve a list of notes history from a nodeRetrieve a list of notes from a node.voidSet a new text to node note.protected voidsetAuthorizationToken(String authorizationToken) setAuthenticationTokenMethods inherited from class com.openkm.sdk4j.impl.ClientImpl
getClient, getWebTarget, setAuthorizationHeader, setJsessionIdHeader
-
Constructor Details
-
NoteImpl
NoteImpl
-
-
Method Details
-
setAuthorizationToken
setAuthenticationToken -
add
public Note add(String uuid, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseNoteAdd a note to a node- Specified by:
addin interfaceBaseNote- 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
public Note get(String noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseNoteGet note from node- Specified by:
getin interfaceBaseNote- Parameters:
noteId- 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
public void delete(String noteId) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseNoteRemove a note from a node- Specified by:
deletein interfaceBaseNote- 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
public void set(String noteId, String text) throws LockException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseNoteSet a new text to node note.- Specified by:
setin interfaceBaseNote- 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
public List<Note> list(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseNoteRetrieve a list of notes from a node.- Specified by:
listin interfaceBaseNote- 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
public List<NoteHistory> getNoteHistories(String uuid) throws PathNotFoundException, RepositoryException, DatabaseException, UnknownException, WebserviceException Description copied from interface:BaseNoteRetrieve a list of notes history from a node- Specified by:
getNoteHistoriesin interfaceBaseNote- 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
-