Class CustomContentEntityBuilder
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
-
- com.atlassian.confluence.plugins.rest.entities.builders.CustomContentEntityBuilder
-
- All Implemented Interfaces:
ContentEntityBuilder
,SearchEntityBuilder
public class CustomContentEntityBuilder extends DefaultContentEntityBuilder
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
settingsManager
-
-
Constructor Summary
Constructors Constructor Description CustomContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultEntity
build(SearchResult result)
Builds a REST ContentEntity for the given search result-
Methods inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
build, build, createSpaceEntity
-
-
-
-
Constructor Detail
-
CustomContentEntityBuilder
public CustomContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager)
-
-
Method Detail
-
build
public SearchResultEntity build(SearchResult result)
Description copied from interface:SearchEntityBuilder
Builds a REST ContentEntity for the given search result- Specified by:
build
in interfaceSearchEntityBuilder
- Overrides:
build
in classDefaultContentEntityBuilder
- Parameters:
result
- theSearchResult
- 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 result.
-
-