Class DefaultContentEntityBuilder<T extends ContentEntityObject>
java.lang.Object
com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder<T>
- All Implemented Interfaces:
ContentEntityBuilder<T>
,SearchEntityBuilder
- Direct Known Subclasses:
CustomContentEntityBuilder
,WikiLinkableContentEntityBuilder
public class DefaultContentEntityBuilder<T extends ContentEntityObject>
extends Object
implements SearchEntityBuilder, ContentEntityBuilder<T>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultContentEntityBuilder
(GlobalSettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(SearchResult result) Builds a REST ContentEntity for the given search resultbuild
(SearchResult result) Builds a REST ContentEntity for the given search resultBuilds a REST ContentEntity for the given CEOstatic SpaceEntity
createSpaceEntity
(Space space)
-
Field Details
-
settingsManager
-
-
Constructor Details
-
DefaultContentEntityBuilder
public DefaultContentEntityBuilder(GlobalSettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper)
-
-
Method Details
-
build
Description copied from interface:SearchEntityBuilder
Builds a REST ContentEntity for the given search result- Specified by:
build
in interfaceSearchEntityBuilder
- 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.
-
build
Description copied from interface:SearchEntityBuilder
Builds a REST ContentEntity for the given search result- Specified by:
build
in interfaceSearchEntityBuilder
- 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.
-
build
Description copied from interface:ContentEntityBuilder
Builds a REST ContentEntity for the given CEO- Specified by:
build
in interfaceContentEntityBuilder<T extends ContentEntityObject>
- Parameters:
object
- 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.
-
createSpaceEntity
-