Class SpaceEntityBuilder
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.builders.SpaceEntityBuilder
-
- All Implemented Interfaces:
SearchEntityBuilder
public class SpaceEntityBuilder extends Object implements SearchEntityBuilder
-
-
Constructor Summary
Constructors Constructor Description SpaceEntityBuilder(DateEntityFactory dateEntityFactory, SettingsManager settingsManager, AnyTypeDao anyTypeDao)
-
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 resultSearchResultEntity
build(SearchResult result)
Builds a REST ContentEntity for the given search resultSpaceEntity
build(Space space)
-
-
-
Constructor Detail
-
SpaceEntityBuilder
public SpaceEntityBuilder(DateEntityFactory dateEntityFactory, SettingsManager settingsManager, AnyTypeDao anyTypeDao)
-
-
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
- 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
public SearchResultEntity build(SearchResult result)
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
public SpaceEntity build(Space space)
-
-