public class Note extends Object implements Serializable, Followable, Propertyable, Taggable
A note of a topic
Modifier and Type | Class and Description |
---|---|
static class |
Note.Factory
Constructs new instances of
Note . |
Constructor and Description |
---|
Note() |
Modifier and Type | Method and Description |
---|---|
String |
attributesToString()
Builds a string showing the current attribute values
|
boolean |
equals(Object object)
Returns
true if the argument is an Note instance and all identifiers for this
entity equal the identifiers of the argument entity. |
Set<Attachment> |
getAttachments() |
Blog |
getBlog() |
Set<Note> |
getChildren() |
Content |
getContent() |
Timestamp |
getCrawlLastModificationDate()
The last modification date of the blog.
|
Timestamp |
getCreationDate()
The date of the tag
|
NoteCreationSource |
getCreationSource()
Defines the source of creation.
|
Set<Blog> |
getCrosspostBlogs()
Denotes the crosspost targets of an autosave.
|
Set<User> |
getDirectUsers() |
Long |
getDiscussionId()
The ID of the fist parent within a discussion.
|
String |
getDiscussionPath()
The discussion path of the format /parent_parent_id/parent_id/my_id
|
Set<User> |
getFavoriteUsers() |
Set<GlobalId> |
getFollowableItems() |
GlobalId |
getFollowId() |
GlobalId |
getGlobalId() |
Long |
getId() |
Timestamp |
getLastDiscussionNoteCreationDate()
The date of youngest/newest comment within the discussion.
|
Timestamp |
getLastModificationDate()
The date the UTR has been modified last
|
Note |
getOrigin() |
Note |
getParent() |
Set<NoteProperty> |
getProperties()
Properties
|
NoteStatus |
getStatus() |
Set<Tag> |
getTags()
The tags which are assigned by user
|
User |
getUser() |
Set<User> |
getUsersToBeNotified() |
Long |
getVersion() |
Set<Note> |
getVersionOf() |
int |
hashCode()
Returns a hash code based on this entity's identifiers.
|
boolean |
isDirect()
True if it is a direct message
|
boolean |
isMentionDiscussionAuthors()
Flag to show, that all users with at least one message on the discussion will be notified.
|
boolean |
isMentionTopicAuthors()
Flag to show, that all (active) users with at least one note in the topic where notified.
|
boolean |
isMentionTopicManagers()
Flag to show, that all users with management access of the topic where mentioned.
|
boolean |
isMentionTopicReaders()
Flag to show, that all users with at least read access of the topic should where mentioned.
|
void |
setAttachments(Set<Attachment> attachments) |
void |
setBlog(Blog blog) |
void |
setChildren(Set<Note> children) |
void |
setContent(Content content) |
void |
setCrawlLastModificationDate(Timestamp crawlLastModificationDate) |
void |
setCreationDate(Timestamp creationDate) |
void |
setCreationSource(NoteCreationSource creationSource) |
void |
setCrosspostBlogs(Set<Blog> crosspostBlogs) |
void |
setDirect(boolean direct) |
void |
setDirectUsers(Set<User> directUsers) |
void |
setDiscussionId(Long discussionId) |
void |
setDiscussionPath(String discussionPath) |
void |
setFavoriteUsers(Set<User> favoriteUsers) |
void |
setFollowableItems(Set<GlobalId> followableItems) |
void |
setGlobalId(GlobalId globalId) |
void |
setId(Long id) |
void |
setLastDiscussionNoteCreationDate(Timestamp lastDiscussionNoteCreationDate) |
void |
setLastModificationDate(Timestamp lastModificationDate) |
void |
setMentionDiscussionAuthors(boolean mentionDiscussionAuthors) |
void |
setMentionTopicAuthors(boolean mentionTopicAuthors) |
void |
setMentionTopicManagers(boolean mentionTopicManagers) |
void |
setMentionTopicReaders(boolean mentionTopicReaders) |
void |
setOrigin(Note origin) |
void |
setParent(Note parent) |
void |
setProperties(Set<NoteProperty> properties) |
void |
setStatus(NoteStatus status) |
void |
setTags(Set<Tag> tags) |
void |
setUser(User user) |
void |
setUsersToBeNotified(Set<User> usersToBeNotified) |
void |
setVersion(Long version) |
void |
setVersionOf(Set<Note> versionOf) |
public String attributesToString()
public boolean equals(Object object)
true
if the argument is an Note instance and all identifiers for this
entity equal the identifiers of the argument entity. Returns false
otherwise.public Set<Attachment> getAttachments()
public Blog getBlog()
public Content getContent()
public Timestamp getCrawlLastModificationDate()
The last modification date of the blog.
public Timestamp getCreationDate()
The date of the tag
public NoteCreationSource getCreationSource()
Defines the source of creation.
public Set<Blog> getCrosspostBlogs()
Denotes the crosspost targets of an autosave.
public Long getDiscussionId()
The ID of the fist parent within a discussion.
public String getDiscussionPath()
The discussion path of the format /parent_parent_id/parent_id/my_id
public GlobalId getFollowId()
getFollowId
in interface Followable
public GlobalId getGlobalId()
getGlobalId
in interface GlobalIdentifiable
public Long getId()
public Timestamp getLastDiscussionNoteCreationDate()
The date of youngest/newest comment within the discussion. It is only maintained for the root note.
public Timestamp getLastModificationDate()
The date the UTR has been modified last
public Note getOrigin()
public Note getParent()
public Set<NoteProperty> getProperties()
Propertyable
Properties
getProperties
in interface Propertyable
public NoteStatus getStatus()
public User getUser()
public Set<User> getUsersToBeNotified()
public Long getVersion()
public int hashCode()
public boolean isDirect()
True if it is a direct message
public boolean isMentionDiscussionAuthors()
Flag to show, that all users with at least one message on the discussion will be notified.
public boolean isMentionTopicAuthors()
Flag to show, that all (active) users with at least one note in the topic where notified.
public boolean isMentionTopicManagers()
Flag to show, that all users with management access of the topic where mentioned.
public boolean isMentionTopicReaders()
Flag to show, that all users with at least read access of the topic should where mentioned.
public void setAttachments(Set<Attachment> attachments)
public void setBlog(Blog blog)
public void setContent(Content content)
public void setCrawlLastModificationDate(Timestamp crawlLastModificationDate)
public void setCreationDate(Timestamp creationDate)
public void setCreationSource(NoteCreationSource creationSource)
public void setDirect(boolean direct)
public void setDiscussionId(Long discussionId)
public void setDiscussionPath(String discussionPath)
public void setGlobalId(GlobalId globalId)
setGlobalId
in interface GlobalIdentifiable
public void setId(Long id)
public void setLastDiscussionNoteCreationDate(Timestamp lastDiscussionNoteCreationDate)
public void setLastModificationDate(Timestamp lastModificationDate)
public void setMentionDiscussionAuthors(boolean mentionDiscussionAuthors)
public void setMentionTopicAuthors(boolean mentionTopicAuthors)
public void setMentionTopicManagers(boolean mentionTopicManagers)
public void setMentionTopicReaders(boolean mentionTopicReaders)
public void setOrigin(Note origin)
public void setParent(Note parent)
public void setProperties(Set<NoteProperty> properties)
public void setStatus(NoteStatus status)
public void setUser(User user)
public void setVersion(Long version)
Copyright © 2019 Communote team. All rights reserved.