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
-
Field Summary
Fields inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
settingsManager
-
Constructor Summary
ConstructorDescriptionCustomContentEntityBuilder
(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(SearchResult result) Builds a REST ContentEntity for the given search resultMethods inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
build, build, createSpaceEntity
-
Constructor Details
-
CustomContentEntityBuilder
public CustomContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager)
-
-
Method Details
-
build
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.
-