public class ContentPropertyFactory extends Object
Constructor and Description |
---|
ContentPropertyFactory(ContentService contentService) |
Modifier and Type | Method and Description |
---|---|
JsonContentProperty |
buildFrom(Content content,
CustomContentEntityObject storageContentProperty,
Expansions expansions)
Convert the given CustomContentEntityObject into a corresponding ContentProperty with the given container.
|
JsonContentProperty |
buildFrom(CustomContentEntityObject storageContentProperty,
Expansions expansions)
Convert the given CustomContentEntityObject into a corresponding ContentProperty.
|
com.google.common.base.Function<CustomContentEntityObject,JsonContentProperty> |
buildFromFunction(Content content,
Expansions expansions) |
Version |
makeVersion(ContentEntityObject entity) |
Reference<Version> |
makeVersion(ContentEntityObject entity,
boolean expanded) |
public ContentPropertyFactory(ContentService contentService)
public com.google.common.base.Function<CustomContentEntityObject,JsonContentProperty> buildFromFunction(Content content, Expansions expansions)
public JsonContentProperty buildFrom(CustomContentEntityObject storageContentProperty, Expansions expansions) throws NotFoundException
storageContentProperty
- the storage value to convertexpansions
- the properties to expand while building the ContentPropertyNotFoundException
- if the referenced owner in the storageContentProperty cannot be found via the ContentServicepublic JsonContentProperty buildFrom(Content content, CustomContentEntityObject storageContentProperty, Expansions expansions)
content
- the container. This must have been initialized via the ContentService or ContentFactory, rather than deserialized from the clientstorageContentProperty
- the storage value to convertexpansions
- the properties to expand while building the ContentPropertypublic Version makeVersion(ContentEntityObject entity)
public Reference<Version> makeVersion(ContentEntityObject entity, boolean expanded)
Copyright © 2003–2015 Atlassian. All rights reserved.