Class AttachmentEntityBuilder
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.entities.builders.AttachmentEntityBuilder
- All Implemented Interfaces:
SearchEntityBuilder
-
Constructor Summary
ConstructorDescriptionAttachmentEntityBuilder
(AnyTypeDao anyTypeDao, DefaultRestAttachmentManager restAttachmentManager) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(SearchResult result) Builds a REST ContentEntity for the given search resultbuild
(SearchResult result) Builds a REST ContentEntity for the given search result
-
Constructor Details
-
AttachmentEntityBuilder
public AttachmentEntityBuilder(AnyTypeDao anyTypeDao, DefaultRestAttachmentManager restAttachmentManager)
-
-
Method Details
-
build
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
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.
-