com.atlassian.confluence.plugins.rest.entities.builders
Class PersonalInformationContentEntityBuilder

java.lang.Object
  extended by com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder<T>
      extended by com.atlassian.confluence.plugins.rest.entities.builders.WikiLinkableContentEntityBuilder<PersonalInformation>
          extended by 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
PersonalInformationContentEntityBuilder(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, UserAccessor userAccessor, UserEntityHelper userEntityHelper)
           
PersonalInformationContentEntityBuilder(SettingsManager settingsManager, DateEntityHelper dateEntityHelper, UserAccessor userAccessor, UserEntityHelper userEntityHelper)
          Deprecated. since 4.3. DateEntityFactory replaces DateEntityHelper.
 
Method Summary
 ContentEntity build(PersonalInformation personalInfo)
          Builds a REST ContentEntity for the given CEO
 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
 
Methods inherited from class com.atlassian.confluence.plugins.rest.entities.builders.DefaultContentEntityBuilder
createSpaceEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonalInformationContentEntityBuilder

@Deprecated
public PersonalInformationContentEntityBuilder(SettingsManager settingsManager,
                                                          DateEntityHelper dateEntityHelper,
                                                          UserAccessor userAccessor,
                                                          UserEntityHelper userEntityHelper)
Deprecated. since 4.3. DateEntityFactory replaces DateEntityHelper.

Parameters:
settingsManager -
dateEntityHelper -
userAccessor -
userEntityHelper -

PersonalInformationContentEntityBuilder

public PersonalInformationContentEntityBuilder(SettingsManager settingsManager,
                                               DateEntityFactory dateEntityFactory,
                                               UserAccessor userAccessor,
                                               UserEntityHelper userEntityHelper)
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 interface ContentEntityBuilder<PersonalInformation>
Overrides:
build in class WikiLinkableContentEntityBuilder<PersonalInformation>
Parameters:
personalInfo - the ContentEntityObject
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 interface SearchEntityBuilder
Overrides:
build in class DefaultContentEntityBuilder<PersonalInformation>
Parameters:
result - the SearchResult
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 interface SearchEntityBuilder
Overrides:
build in class DefaultContentEntityBuilder<PersonalInformation>
Parameters:
result - the SearchResult
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.


Copyright © 2003-2012 Atlassian. All Rights Reserved.