public class DefaultContentEntityBuilder<T extends ContentEntityObject> extends Object implements SearchEntityBuilder, ContentEntityBuilder<T>
Modifier and Type | Field and Description |
---|---|
protected SettingsManager |
settingsManager |
Constructor and Description |
---|
DefaultContentEntityBuilder(SettingsManager settingsManager,
DateEntityFactory dateEntityFactory,
UserEntityHelper userEntityHelper) |
DefaultContentEntityBuilder(SettingsManager settingsManager,
DateEntityHelper dateEntityHelper,
UserEntityHelper userEntityHelper)
Deprecated.
since 4.3. DateEntityFactory replaces DateEntityHelper.
|
Modifier and Type | Method and Description |
---|---|
SearchResultEntity |
build(SearchResult result)
Builds a REST ContentEntity for the given search result
|
SearchResultEntity |
build(SearchResult result)
Builds a REST ContentEntity for the given search result
|
ContentEntity |
build(T object)
Builds a REST ContentEntity for the given CEO
|
static SpaceEntity |
createSpaceEntity(Space space) |
protected final SettingsManager settingsManager
@Deprecated public DefaultContentEntityBuilder(SettingsManager settingsManager, DateEntityHelper dateEntityHelper, UserEntityHelper userEntityHelper)
settingsManager
- dateEntityHelper
- userEntityHelper
- public DefaultContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserEntityHelper userEntityHelper)
public SearchResultEntity build(SearchResult result)
SearchEntityBuilder
build
in interface SearchEntityBuilder
result
- the SearchResult
null
if the current user is not permitted to view the content or
if no content object can be found for the given result.public SearchResultEntity build(SearchResult result)
SearchEntityBuilder
build
in interface SearchEntityBuilder
result
- the SearchResult
null
if the current user is not permitted to view the content or
if no content object can be found for the given result.public ContentEntity build(T object)
ContentEntityBuilder
build
in interface ContentEntityBuilder<T extends ContentEntityObject>
object
- the ContentEntityObject
null
if the current user is not permitted to view the content or
if no content object can be found for the given object.public static SpaceEntity createSpaceEntity(Space space)
Copyright © 2003–2015 Atlassian. All rights reserved.