Class CommentEntityBuilder
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder<T>
-
- com.atlassian.confluence.plugins.rest.entities.builders.WikiLinkableContentEntityBuilder<Comment>
-
- com.atlassian.confluence.plugins.rest.entities.builders.CommentEntityBuilder
-
- All Implemented Interfaces:
ContentEntityBuilder<Comment>
,SearchEntityBuilder
public class CommentEntityBuilder extends WikiLinkableContentEntityBuilder<Comment>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
settingsManager
-
-
Constructor Summary
Constructors Constructor Description CommentEntityBuilder(GlobalSettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentEntity
build(Comment comment)
Builds a REST ContentEntity for the given CEO-
Methods inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
build, build, createSpaceEntity
-
-
-
-
Constructor Detail
-
CommentEntityBuilder
public CommentEntityBuilder(GlobalSettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper)
-
-
Method Detail
-
build
public ContentEntity build(Comment comment)
Description copied from interface:ContentEntityBuilder
Builds a REST ContentEntity for the given CEO- Specified by:
build
in interfaceContentEntityBuilder<Comment>
- Overrides:
build
in classWikiLinkableContentEntityBuilder<Comment>
- Parameters:
comment
- theContentEntityObject
- Returns:
- the entity, or
null
if the current user is not permitted to view the content or if no content object can be found for the given object.
-
-