public class BlogTO extends Object implements Serializable
Constructor and Description |
---|
BlogTO()
Create a TO with default values.
|
BlogTO(boolean allCanRead,
boolean allCanWrite,
String title,
boolean createSystemNotes)
Create a new TO and set the provided members
|
Modifier and Type | Method and Description |
---|---|
void |
copy(BlogTO otherBean)
Copies all properties from the argument value object into this value object.
|
Long[] |
getChildTopicIds() |
Long |
getCreatorUserId() |
String |
getDescription() |
String |
getNameIdentifier() |
List<StringPropertyTO> |
getProperties() |
StringPropertyTO |
getProperty(String keyGroup,
String key)
Find and return the property with matching values
|
Set<TagTO> |
getTags() |
String |
getTitle() |
String[] |
getUnparsedTags() |
boolean |
isAllCanRead() |
boolean |
isAllCanWrite() |
boolean |
isCreateSystemNotes() |
boolean |
isToplevelTopic() |
void |
setAllCanRead(boolean allCanRead)
Set whether all users are allowed to read the blog
|
void |
setAllCanWrite(boolean allCanWrite)
Set whether all users are allowed to write to the blog
|
void |
setChildTopicIds(Long[] childTopicIds) |
void |
setCreateSystemNotes(boolean createSystemNotes)
Set whether notes with creation source 'SYSTEM' can be created in the blog
|
void |
setCreatorUserId(Long creatorUserId)
Set the ID of the user that creates the blog, this user will be the manager of the blog.
|
void |
setDescription(String description)
Set the description of the blog.
|
void |
setNameIdentifier(String nameIdentifier)
Set the unique alias of the blog
|
void |
setProperties(List<StringPropertyTO> properties)
The properties of the blog
|
void |
setTags(Set<TagTO> tags)
Set the tags of the blog
|
void |
setTitle(String title)
Set the title of the blog
|
void |
setToplevelTopic(boolean toplevelTopic)
Set whether the topic is a top level topic
|
void |
setUnparsedTags(String[] unparsedTags)
Set the tags of the blog.
|
public BlogTO()
public BlogTO(boolean allCanRead, boolean allCanWrite, String title, boolean createSystemNotes)
allCanRead
- true if all users are allowed to read, false otherwiseallCanWrite
- true if all users are allowed to write, false otherwisetitle
- the title of the blogcreateSystemNotes
- whether notes with creation source 'SYSTEM' can be created in the blogpublic void copy(BlogTO otherBean)
otherBean
- the other object to copy frompublic Long[] getChildTopicIds()
public Long getCreatorUserId()
public String getDescription()
public String getNameIdentifier()
public List<StringPropertyTO> getProperties()
public StringPropertyTO getProperty(String keyGroup, String key)
keyGroup
- the key groupkey
- the keypublic Set<TagTO> getTags()
public String getTitle()
public String[] getUnparsedTags()
public boolean isAllCanRead()
public boolean isAllCanWrite()
public boolean isCreateSystemNotes()
public boolean isToplevelTopic()
public void setAllCanRead(boolean allCanRead)
allCanRead
- true if all users are allowed to read, false otherwisepublic void setAllCanWrite(boolean allCanWrite)
allCanWrite
- true if all users are allowed to write, false otherwisepublic void setChildTopicIds(Long[] childTopicIds)
childTopicIds
- Array of child topic ids.public void setCreateSystemNotes(boolean createSystemNotes)
createSystemNotes
- true if the notes can be created, false otherwisepublic void setCreatorUserId(Long creatorUserId)
creatorUserId
- the ID of the creatorpublic void setDescription(String description)
description
- a short description of the blogpublic void setNameIdentifier(String nameIdentifier)
nameIdentifier
- the alias of the blogpublic void setProperties(List<StringPropertyTO> properties)
properties
- the blog propertiespublic void setTags(Set<TagTO> tags)
tags
- the tags as a collection of TOs describing the tagspublic void setTitle(String title)
title
- the blog titlepublic void setToplevelTopic(boolean toplevelTopic)
toplevelTopic
- true if the topic is a top level topic, otherwise falsepublic void setUnparsedTags(String[] unparsedTags)
unparsedTags
- the tags as an array of tag namesCopyright © 2019 Communote team. All rights reserved.