Class PersonalInformationContentEntityBuilder
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder<T>
-
- com.atlassian.confluence.plugins.rest.entities.builders.WikiLinkableContentEntityBuilder<PersonalInformation>
-
- com.atlassian.confluence.plugins.rest.entities.builders.PersonalInformationContentEntityBuilder
-
- All Implemented Interfaces:
ContentEntityBuilder<PersonalInformation>
,SearchEntityBuilder
public class PersonalInformationContentEntityBuilder extends WikiLinkableContentEntityBuilder<PersonalInformation>
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
settingsManager
-
-
Constructor Summary
Constructors Constructor Description PersonalInformationContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserAccessor userAccessor, UserEntityHelper userEntityHelper, AvatarProviderAccessor avatarProviderAccessor, AttachmentManager attachmentManager)
-
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 resultContentEntity
build(PersonalInformation personalInfo)
Builds a REST ContentEntity for the given CEO-
Methods inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
createSpaceEntity
-
-
-
-
Constructor Detail
-
PersonalInformationContentEntityBuilder
public PersonalInformationContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserAccessor userAccessor, UserEntityHelper userEntityHelper, AvatarProviderAccessor avatarProviderAccessor, AttachmentManager attachmentManager)
-
-
Method Detail
-
build
public ContentEntity build(PersonalInformation personalInfo)
Description copied from interface:ContentEntityBuilder
Builds a REST ContentEntity for the given CEO- Specified by:
build
in interfaceContentEntityBuilder<PersonalInformation>
- Overrides:
build
in classWikiLinkableContentEntityBuilder<PersonalInformation>
- Parameters:
personalInfo
- 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.
-
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<PersonalInformation>
- 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
- Overrides:
build
in classDefaultContentEntityBuilder<PersonalInformation>
- 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.
-
-