Class AttachmentEntityBuilder
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.entities.builders.AttachmentEntityBuilder
- All Implemented Interfaces:
SearchEntityBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentEntityBuilder(AnyTypeDaoInternal 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(AnyTypeDaoInternal anyTypeDao, DefaultRestAttachmentManager restAttachmentManager)
-
-
Method Details
-
build
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
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.
-