T
- the target typepublic class BlogToDetailBlogListItemConverter<T extends DetailBlogListItem> extends BlogToBlogDataConverter<T>
Constructor and Description |
---|
BlogToDetailBlogListItemConverter(Class<T> clazz,
boolean includeProperties,
boolean includeTags,
boolean includeMembers,
boolean includeChildren,
boolean includeParents,
BlogRightsManagement topicRightsManagement)
Create a new converter
|
BlogToDetailBlogListItemConverter(Class<T> clazz,
boolean includeProperties,
boolean includeTags,
boolean includeMembers,
boolean includeChildren,
boolean includeParents,
BlogRightsManagement topicRightsManagement,
Locale locale)
Create a new converter
|
Modifier and Type | Method and Description |
---|---|
void |
convert(Blog source,
T target)
Convert the source into the provided target object
|
convert, create
public BlogToDetailBlogListItemConverter(Class<T> clazz, boolean includeProperties, boolean includeTags, boolean includeMembers, boolean includeChildren, boolean includeParents, BlogRightsManagement topicRightsManagement)
clazz
- the class of the target typeincludeProperties
- whether to add the blog properties to the result. The property key will be
constructed as follows <groupKey>.<propertyKey>includeTags
- whether to add the tags as a comma separated stringincludeMembers
- whether to include the membersincludeChildren
- If true, the children of this topic, the user can access will be converted too.topicRightsManagement
- This is only used when includeChildren is true.public BlogToDetailBlogListItemConverter(Class<T> clazz, boolean includeProperties, boolean includeTags, boolean includeMembers, boolean includeChildren, boolean includeParents, BlogRightsManagement topicRightsManagement, Locale locale)
clazz
- the class of the target typeincludeProperties
- whether to add the blog properties to the result. The property key will be
constructed as follows <groupKey>.<propertyKey>includeTags
- whether to add the tags as a comma separated stringincludeMembers
- whether to include the membersincludeChildren
- If true, the direct children of this topic, the user can access will be converted
too.includeParents
- If true, the direct parents of this topic, the user can access will be converted
too.topicRightsManagement
- This is only used when includeChildren is true.locale
- The locale used for translation of tags.public void convert(Blog source, T target)
PojoTargetConverter
convert
in class BlogToBlogDataConverter<T extends DetailBlogListItem>
source
- the source objecttarget
- the target objectCopyright © 2019 Communote team. All rights reserved.