Class ContentFactory
- java.lang.Object
-
- com.atlassian.confluence.api.impl.service.content.factory.ModelFactory<ContentEntityObject,Content>
-
- com.atlassian.confluence.api.impl.service.content.factory.ContentFactory
-
public class ContentFactory extends ModelFactory<ContentEntityObject,Content>
-
-
Constructor Summary
Constructors Constructor Description ContentFactory(ContentBodyFactory contentBodyFactory, SpaceFactory spaceFactory, ContentMetadataFactory metadataFactory, VersionFactory versionFactory, HistoryFactory historyFactory, ChildContentFactory childContentFactory, ContentExtensionsFactory extensionsFactory, OperationService operationService, ContentRestrictionService contentRestrictionService, NavigationService navigationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Content
buildFrom(ContentEntityObject entity, Expansions expansions)
<HC extends ContentEntityObject>
Iterable<Content>buildFrom(Iterable<HC> entities, Expansions expansions)
Reference<Content>
buildRef(ContentEntityObject entity, Fauxpansions fauxpansions)
-
Methods inherited from class com.atlassian.confluence.api.impl.service.content.factory.ModelFactory
asFunction
-
-
-
-
Constructor Detail
-
ContentFactory
public ContentFactory(ContentBodyFactory contentBodyFactory, SpaceFactory spaceFactory, ContentMetadataFactory metadataFactory, VersionFactory versionFactory, HistoryFactory historyFactory, ChildContentFactory childContentFactory, ContentExtensionsFactory extensionsFactory, OperationService operationService, ContentRestrictionService contentRestrictionService, NavigationService navigationService)
-
-
Method Detail
-
buildFrom
public Content buildFrom(ContentEntityObject entity, Expansions expansions)
- Specified by:
buildFrom
in classModelFactory<ContentEntityObject,Content>
-
buildFrom
public <HC extends ContentEntityObject> Iterable<Content> buildFrom(Iterable<HC> entities, Expansions expansions)
- Overrides:
buildFrom
in classModelFactory<ContentEntityObject,Content>
-
buildRef
public Reference<Content> buildRef(ContentEntityObject entity, Fauxpansions fauxpansions)
-
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.
-
-