Class ContentFactory
java.lang.Object
com.atlassian.confluence.api.impl.service.content.factory.ContentFactory
- All Implemented Interfaces:
ModelFactory<ContentEntityObject,
Content>
-
Constructor Summary
ConstructorsConstructorDescriptionContentFactory
(ContentBodyFactory contentBodyFactory, SpaceFactory spaceFactory, ContentMetadataFactory metadataFactory, VersionFactory versionFactory, HistoryFactory historyFactory, ChildContentFactory childContentFactory, ContentExtensionsFactory extensionsFactory, OperationService operationService, ContentRestrictionService contentRestrictionService, NavigationService navigationService) -
Method Summary
Modifier and TypeMethodDescriptionbuilderFrom
(ContentEntityObject entity, ContentType contentType, Expansions expansions) Exposes the content builder that this factory uses to produce content objects, generally don't use this method, it exists as an interim measure whilst legacy drafts are being migrated to shared drafts and we need to be able to attach files to legacy drafts using the rest api.buildFrom
(ContentEntityObject entity, Expansions expansions) buildFrom
(Iterable<? extends ContentEntityObject> entities, Expansions expansions) buildRef
(ContentEntityObject entity, Fauxpansions fauxpansions) static ContentEntityObject
getRootContainer
(Contained<?> entity)
-
Constructor Details
-
Method Details
-
buildFrom
- Specified by:
buildFrom
in interfaceModelFactory<ContentEntityObject,
Content>
-
buildFrom
public Iterable<Content> buildFrom(Iterable<? extends ContentEntityObject> entities, Expansions expansions) - Specified by:
buildFrom
in interfaceModelFactory<ContentEntityObject,
Content>
-
buildRef
-
builderFrom
public Content.ContentBuilder builderFrom(ContentEntityObject entity, ContentType contentType, Expansions expansions) Exposes the content builder that this factory uses to produce content objects, generally don't use this method, it exists as an interim measure whilst legacy drafts are being migrated to shared drafts and we need to be able to attach files to legacy drafts using the rest api. -
getRootContainer
-