public class Note extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE_HTML
constant for the content type that should be used if the content is HTML
|
static String |
CONTENT_TYPE_PLAIN_TEXT
constant for the content type that should be used if the content is plain text
|
static String |
CONTENT_TYPE_UNKNOWN
constant for the content type that should be used if the type of the content is not known and
the server should try figure it out
|
Constructor and Description |
---|
Note() |
Modifier and Type | Method and Description |
---|---|
String |
getContent() |
String |
getContentType() |
Date |
getCreationDate() |
Long |
getParentNoteId() |
StringProperty[] |
getProperties() |
Tag[] |
getTags() |
BaseTopic[] |
getTopics() |
String |
getUnparsedTags() |
BaseEntity[] |
getUsersToNotify() |
boolean |
isActivity() |
boolean |
isDirectMessage() |
boolean |
isMentionDiscussionAuthors() |
boolean |
isMentionTopicAuthors() |
boolean |
isMentionTopicManagers() |
boolean |
isMentionTopicReaders() |
void |
setContent(String content)
Set the content of the note
|
void |
setContentType(String contentType)
Set the content type of the note.
|
void |
setCreationDate(Date creationDate) |
void |
setDirectMessage(boolean directMessage)
Set whether the note is a direct message
|
void |
setMentionDiscussionAuthors(boolean mentionDiscussionAuthors) |
void |
setMentionTopicAuthors(boolean mentionTopicAuthors) |
void |
setMentionTopicManagers(boolean mentionTopicManagers) |
void |
setMentionTopicReaders(boolean mentionTopicReaders) |
void |
setParentNoteId(Long parentNoteId)
Set the ID of a note this note should be created as a comment of.
|
void |
setProperties(StringProperty[] properties)
Set the properties which should be added to the note
|
void |
setTags(Tag[] tags)
Set the tags to be added to the note
|
void |
setTopics(BaseTopic[] topics)
Set the topics the note should be created in.
|
void |
setUnparsedTags(String unparsedTags)
Set a comma separated string of tag names which will be resolved to note tags
|
void |
setUsersToNotify(BaseEntity[] usersToNotify)
Set the users that should be notified about the note
|
public static final String CONTENT_TYPE_UNKNOWN
public static final String CONTENT_TYPE_PLAIN_TEXT
public static final String CONTENT_TYPE_HTML
public String getContent()
public String getContentType()
public Date getCreationDate()
public Long getParentNoteId()
public StringProperty[] getProperties()
public Tag[] getTags()
public BaseTopic[] getTopics()
public String getUnparsedTags()
public BaseEntity[] getUsersToNotify()
public boolean isActivity()
public boolean isDirectMessage()
public boolean isMentionDiscussionAuthors()
public boolean isMentionTopicAuthors()
public boolean isMentionTopicManagers()
public boolean isMentionTopicReaders()
public void setContent(String content)
content
- the content to setpublic void setContentType(String contentType)
contentType
- the content type to setpublic void setCreationDate(Date creationDate)
creationDate
- the creation date of this note (use null and it will be the time of processing)public void setDirectMessage(boolean directMessage)
directMessage
- true if the note is a direct message, false if notpublic void setMentionDiscussionAuthors(boolean mentionDiscussionAuthors)
mentionDiscussionAuthors
- the mentionDiscussionAuthors to setpublic void setMentionTopicAuthors(boolean mentionTopicAuthors)
mentionTopicAuthors
- the mentionTopicAuthors to setpublic void setMentionTopicManagers(boolean mentionTopicManagers)
mentionTopicManagers
- the mentionTopicManagers to setpublic void setMentionTopicReaders(boolean mentionTopicReaders)
mentionTopicReaders
- the mentionTopicReaders to setpublic void setParentNoteId(Long parentNoteId)
parentNoteId
- the ID of the parent notepublic void setProperties(StringProperty[] properties)
properties
- the properties to add to the notepublic void setTags(Tag[] tags)
tags
- the tags of the notepublic void setTopics(BaseTopic[] topics)
topics
- the topicspublic void setUnparsedTags(String unparsedTags)
unparsedTags
- the unparsed tagspublic void setUsersToNotify(BaseEntity[] usersToNotify)
usersToNotify
- the users to notifyCopyright © 2019 Communote team. All rights reserved.