Class AttachmentEntityBuilder
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.builders.AttachmentEntityBuilder
-
- All Implemented Interfaces:
SearchEntityBuilder
public class AttachmentEntityBuilder extends Object implements SearchEntityBuilder
-
-
Constructor Summary
Constructors Constructor Description AttachmentEntityBuilder(AnyTypeDao anyTypeDao, DefaultRestAttachmentManager restAttachmentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultEntitybuild(SearchResult result)Builds a REST ContentEntity for the given search resultSearchResultEntitybuild(SearchResult result)Builds a REST ContentEntity for the given search result
-
-
-
Constructor Detail
-
AttachmentEntityBuilder
public AttachmentEntityBuilder(AnyTypeDao anyTypeDao, DefaultRestAttachmentManager restAttachmentManager)
-
-
Method Detail
-
build
public SearchResultEntity build(SearchResult result)
Description copied from interface:SearchEntityBuilderBuilds a REST ContentEntity for the given search result- Specified by:
buildin interfaceSearchEntityBuilder- Parameters:
result- theSearchResult- Returns:
- the entity, or
nullif 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:SearchEntityBuilderBuilds a REST ContentEntity for the given search result- Specified by:
buildin interfaceSearchEntityBuilder- Parameters:
result- theSearchResult- Returns:
- the entity, or
nullif the current user is not permitted to view the content or if no content object can be found for the given result.
-
-