Class DefaultEntityBuilderFactory
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.entities.builders.DefaultEntityBuilderFactory
- All Implemented Interfaces:
EntityBuilderFactory
-
Constructor Summary
ConstructorDescriptionDefaultEntityBuilderFactory
(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, DefaultRestAttachmentManager restAttachmentManager, AnyTypeDao anyTypeDao, UserAccessor userAccessor, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager, AvatarProviderAccessor avatarProviderAccessor, AttachmentManager attachmentManager) -
Method Summary
Modifier and TypeMethodDescriptioncreateBuilder
(String type) A builder for constructing a search REST entity from a search result<T extends ContentEntityObject>
ContentEntityBuilder<? super T>createContentEntityBuilder
(Class<? extends T> clazz) A builder for constructing a REST entity from a {{com.atlassian.confluence.core.ContentEntityObject}}
-
Constructor Details
-
DefaultEntityBuilderFactory
public DefaultEntityBuilderFactory(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, DefaultRestAttachmentManager restAttachmentManager, AnyTypeDao anyTypeDao, UserAccessor userAccessor, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager, AvatarProviderAccessor avatarProviderAccessor, AttachmentManager attachmentManager)
-
-
Method Details
-
createBuilder
Description copied from interface:EntityBuilderFactory
A builder for constructing a search REST entity from a search result- Specified by:
createBuilder
in interfaceEntityBuilderFactory
- Parameters:
type
- - the type of the search result- Returns:
- A builder for constructing a search REST entity from a search result
-
createContentEntityBuilder
public <T extends ContentEntityObject> ContentEntityBuilder<? super T> createContentEntityBuilder(Class<? extends T> clazz) Description copied from interface:EntityBuilderFactory
A builder for constructing a REST entity from a {{com.atlassian.confluence.core.ContentEntityObject}}- Specified by:
createContentEntityBuilder
in interfaceEntityBuilderFactory
- Type Parameters:
T
- A ContentEntityObject- Parameters:
clazz
- the class of the content entity- Returns:
- A builder for constructing a REST entity from a {{com.atlassian.confluence.core.ContentEntityObject}}
-