public class ContentFactory extends ModelFactory<ContentEntityObject,Content>
Constructor and Description |
---|
ContentFactory(ContentBodyFactory contentBodyFactory,
SpaceFactory spaceFactory,
ContentMetadataFactory metadataFactory,
VersionFactory versionFactory,
HistoryFactory historyFactory,
ChildContentFactory childContentFactory,
ContentExtensionsFactory extensionsFactory,
OperationService operationService,
ContentPropertyService contentPropertyService) |
Modifier and Type | Method and 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> |
buildFrom(Iterable<HC> entities,
Expansions expansions) |
Reference<Content> |
buildRef(ContentEntityObject entity,
Fauxpansions fauxpansions) |
asFunction
public ContentFactory(ContentBodyFactory contentBodyFactory, SpaceFactory spaceFactory, ContentMetadataFactory metadataFactory, VersionFactory versionFactory, HistoryFactory historyFactory, ChildContentFactory childContentFactory, ContentExtensionsFactory extensionsFactory, OperationService operationService, ContentPropertyService contentPropertyService)
public Content buildFrom(ContentEntityObject entity, Expansions expansions)
buildFrom
in class ModelFactory<ContentEntityObject,Content>
public <HC extends ContentEntityObject> Iterable<Content> buildFrom(Iterable<HC> entities, Expansions expansions)
buildFrom
in class ModelFactory<ContentEntityObject,Content>
public Reference<Content> buildRef(ContentEntityObject entity, Fauxpansions fauxpansions)
public Content.ContentBuilder builderFrom(ContentEntityObject entity, ContentType contentType, Expansions expansions)
Copyright © 2003–2016 Atlassian. All rights reserved.