public class JsonPropertyFactory extends Object
Constructor and Description |
---|
JsonPropertyFactory(ContentService contentService,
SpaceService spaceService) |
Modifier and Type | Method and Description |
---|---|
JsonContentProperty |
buildContentPropertyFrom(CustomContentEntityObject storageContentProperty,
Expansions expansions)
Convert the given CustomContentEntityObject into a corresponding ContentProperty.
|
com.google.common.base.Function<CustomContentEntityObject,JsonContentProperty> |
buildContentPropertyFromFunction() |
com.google.common.base.Function<CustomContentEntityObject,JsonContentProperty> |
buildContentPropertyFromFunction(Content content,
Expansions expansions) |
JsonContentProperty |
buildFrom(Content content,
CustomContentEntityObject storageContentProperty,
Expansions expansions)
Convert the given CustomContentEntityObject into a corresponding ContentProperty with the given container.
|
JsonContentProperty |
buildFrom(CustomContentEntityObject storageContentProperty)
Convert the given CustomContentEntityObject into a corresponding ContentProperty with the given container.
|
JsonSpaceProperty |
buildFrom(Space space,
CustomContentEntityObject storageContentProperty,
Expansions expansions) |
JsonSpaceProperty |
buildSpacePropertyFrom(CustomContentEntityObject property,
Expansions expansions)
Convert the given CustomContentEntityObject into a corresponding SpaceProperty.
|
com.google.common.base.Function<CustomContentEntityObject,JsonSpaceProperty> |
buildSpacePropertyFromFunction(Space space,
Expansions expansions) |
Version |
makeVersion(ContentEntityObject entity) |
Reference<Version> |
makeVersion(ContentEntityObject entity,
boolean expanded) |
public JsonPropertyFactory(ContentService contentService, SpaceService spaceService)
public com.google.common.base.Function<CustomContentEntityObject,JsonContentProperty> buildContentPropertyFromFunction(Content content, Expansions expansions)
public com.google.common.base.Function<CustomContentEntityObject,JsonContentProperty> buildContentPropertyFromFunction()
public com.google.common.base.Function<CustomContentEntityObject,JsonSpaceProperty> buildSpacePropertyFromFunction(Space space, Expansions expansions)
public JsonContentProperty buildContentPropertyFrom(CustomContentEntityObject storageContentProperty, Expansions expansions)
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 JsonSpaceProperty buildSpacePropertyFrom(CustomContentEntityObject property, Expansions expansions)
property
- the storage value to convertexpansions
- the properties to expand while building the SpacePropertyNotFoundException
- if the referenced owner in the property cannot be found via the SpaceServicepublic 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 JsonContentProperty buildFrom(CustomContentEntityObject storageContentProperty)
storageContentProperty
- the storage value to convertpublic JsonSpaceProperty buildFrom(Space space, CustomContentEntityObject storageContentProperty, Expansions expansions)
public Version makeVersion(ContentEntityObject entity)
public Reference<Version> makeVersion(ContentEntityObject entity, boolean expanded)
Copyright © 2003–2018 Atlassian. All rights reserved.