Class DefaultEntityBuilderFactory
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.builders.DefaultEntityBuilderFactory
-
- All Implemented Interfaces:
EntityBuilderFactory
public class DefaultEntityBuilderFactory extends Object implements EntityBuilderFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultEntityBuilderFactory(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, DefaultRestAttachmentManager restAttachmentManager, AnyTypeDao anyTypeDao, UserAccessor userAccessor, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager, AvatarProviderAccessor avatarProviderAccessor, AttachmentManager attachmentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchEntityBuilder
createBuilder(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 Detail
-
DefaultEntityBuilderFactory
public DefaultEntityBuilderFactory(SettingsManager settingsManager, DateEntityFactory dateEntityFactory, DefaultRestAttachmentManager restAttachmentManager, AnyTypeDao anyTypeDao, UserAccessor userAccessor, UserEntityHelper userEntityHelper, ContentTypeManager contentTypeManager, AvatarProviderAccessor avatarProviderAccessor, AttachmentManager attachmentManager)
-
-
Method Detail
-
createBuilder
public SearchEntityBuilder createBuilder(String type)
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}}
-
-