public class NoteStoringTO extends Object implements Serializable
Constructor and Description |
---|
NoteStoringTO() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAdditionalBlogs() |
Long[] |
getAttachmentIds() |
Long |
getAutosaveNoteId()
public Long[] getAttachmentIds() { return this.attachmentIds; }
/**
|
Long |
getBlogId()
The ID of the blog for which the post will be created.
|
String |
getContent() |
NoteContentType |
getContentType()
Describes the type of content hold within this StringContentTO.
|
Timestamp |
getCreationDate()
The creation date is the date as this
NoteStoringTO got constructed. |
NoteCreationSource |
getCreationSource()
Defines the source of creation.
|
Long |
getCreatorId()
The ID of the author of the post.
|
NoteStoringFailDefinition |
getFailDefinition()
Get the failDefinition
|
String |
getLanguage()
Language of post content.
|
Long |
getParentNoteId() |
Set<StringPropertyTO> |
getProperties()
String properties for this note.
|
Set<TagTO> |
getTags() |
Object |
getTransientProperty(String key)
Get the value of previously added transient property.
|
String |
getUnparsedTags()
A string holding all tags for this post separated by comma.
|
Set<String> |
getUsersNotToNotify()
List of user alias, which can't be notified.
|
Set<String> |
getUsersToNotify()
A set of alias strings of users that should be notified about the creation of the user tagged
item.
|
Long |
getVersion()
The version.
|
boolean |
isIsDirectMessage()
If this is set, the message is a direct message.
|
boolean |
isMentionDiscussionAuthors() |
boolean |
isMentionTopicAuthors() |
boolean |
isMentionTopicManagers() |
boolean |
isMentionTopicReaders() |
boolean |
isPublish()
Whether to publish the note or create an autosave.
|
boolean |
isSendNotifications()
Whether to actually send notifications.
|
Object |
removeTransientProperty(String key)
Remove a previously added transient property.
|
void |
setAdditionalBlogs(Set<String> additionalBlogs) |
void |
setAttachmentIds(Long[] attachmentIds) |
void |
setAutosaveNoteId(Long autosaveNoteId) |
void |
setBlogId(Long blogId) |
void |
setContent(String content) |
void |
setContentType(NoteContentType contentType) |
void |
setCreationDate(Timestamp creationDate) |
void |
setCreationSource(NoteCreationSource creationSource) |
void |
setCreatorId(Long creatorId) |
void |
setFailDefinition(NoteStoringFailDefinition failDefinition)
Sets the failDefinition
|
void |
setIsDirectMessage(boolean isDirectMessage) |
void |
setLanguage(String language) |
void |
setMentionDiscussionAuthors(boolean mentionDiscussionAuthors) |
void |
setMentionTopicAuthors(boolean mentionTopicAuthors) |
void |
setMentionTopicManagers(boolean mentionTopicManagers) |
void |
setMentionTopicReaders(boolean mentionTopicReaders) |
void |
setParentNoteId(Long parentNoteId) |
void |
setProperties(Set<StringPropertyTO> properties) |
void |
setPublish(boolean publish) |
void |
setSendNotifications(boolean sendNotifications) |
void |
setTags(Set<TagTO> tags) |
void |
setTransientProperty(String key,
Object value)
Add a property which will not be persisted with the note.
|
void |
setUnparsedTags(String unparsedTags) |
void |
setUsersNotToNotify(Set<String> usersNotToNotify) |
void |
setUsersToNotify(Set<String> usersToNotify) |
void |
setVersion(Long version) |
public Long[] getAttachmentIds()
public Long getAutosaveNoteId()
public Long getBlogId()
The ID of the blog for which the post will be created.
public String getContent()
public NoteContentType getContentType()
Describes the type of content hold within this StringContentTO. The type basically determines how the content will be interpreted and processed.
public Timestamp getCreationDate()
NoteStoringTO
got constructed. If the note is
an update it will be used as last modification date, and if it is a create as creation date.setCreationDate(Timestamp)
public NoteCreationSource getCreationSource()
Defines the source of creation.
public Long getCreatorId()
The ID of the author of the post.
public NoteStoringFailDefinition getFailDefinition()
public String getLanguage()
Language of post content.
public Long getParentNoteId()
public Set<StringPropertyTO> getProperties()
String properties for this note.
public Object getTransientProperty(String key)
key
- the key of the property to getsetTransientProperty(String, Object)
public String getUnparsedTags()
A string holding all tags for this post separated by comma.
public Set<String> getUsersNotToNotify()
List of user alias, which can't be notified.
public Set<String> getUsersToNotify()
A set of alias strings of users that should be notified about the creation of the user tagged item. Only those users whose alias is known within Communote will be notified.
public Long getVersion()
The version.
public boolean isIsDirectMessage()
If this is set, the message is a direct message. Receivers will be in the list of users to be notified.
public boolean isMentionDiscussionAuthors()
public boolean isMentionTopicAuthors()
public boolean isMentionTopicManagers()
public boolean isMentionTopicReaders()
public boolean isPublish()
Whether to publish the note or create an autosave.
public boolean isSendNotifications()
Whether to actually send notifications.
public Object removeTransientProperty(String key)
key
- the key of the property to removesetTransientProperty(String, Object)
public void setAdditionalBlogs(Set<String> additionalBlogs)
additionalBlogs
- the additionalBlogs to setpublic void setAttachmentIds(Long[] attachmentIds)
attachmentIds
- the attachmentIds to setpublic void setAutosaveNoteId(Long autosaveNoteId)
public void setBlogId(Long blogId)
public void setContent(String content)
public void setContentType(NoteContentType contentType)
public void setCreationDate(Timestamp creationDate)
creationDate
- the creation date for the note, if null (default) it will be the current timepublic void setCreationSource(NoteCreationSource creationSource)
public void setCreatorId(Long creatorId)
public void setFailDefinition(NoteStoringFailDefinition failDefinition)
public void setIsDirectMessage(boolean isDirectMessage)
public void setLanguage(String language)
public 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 parentNoteId to setpublic void setProperties(Set<StringPropertyTO> properties)
public void setPublish(boolean publish)
public void setSendNotifications(boolean sendNotifications)
public void setTransientProperty(String key, Object value)
key
- the key of the property. If there is already a property with that key it will be
replaced.value
- the value of the propertypublic void setUnparsedTags(String unparsedTags)
public void setUsersToNotify(Set<String> usersToNotify)
usersToNotify
- A set of alias strings of users that should be notified about the creation of the
user tagged item. Only those users whose alias is known within Communote will be
notified.
public void setVersion(Long version)
Copyright © 2019 Communote team. All rights reserved.