Class StorageJsonPropertyManager
- java.lang.Object
-
- com.atlassian.confluence.plugins.contentproperty.StorageJsonPropertyManager
-
public class StorageJsonPropertyManager extends Object
Manages the actual loading and storing of content and space properties stored in CustomContentEntityObjects.- Since:
- 5.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomContentEntityObject
getStorageContentProperty(SimpleValidationResult.Builder result, JsonContentProperty property)
CustomContentEntityObject
getStorageSpaceProperty(JsonSpaceProperty property)
CustomContentEntityObject
updateStorageFromApi(JsonContentProperty apiContentProperty, CustomContentEntityObject storageJsonProperty)
Updates a JsonProperty CustomContentEntityObject to be a ContentProperty.CustomContentEntityObject
updateStorageFromApi(JsonSpaceProperty property, CustomContentEntityObject storageJsonProperty)
Updates a JsonProperty CustomContentEntityObject to be a SpaceProperty.
-
-
-
Method Detail
-
updateStorageFromApi
public CustomContentEntityObject updateStorageFromApi(JsonContentProperty apiContentProperty, CustomContentEntityObject storageJsonProperty)
Updates a JsonProperty CustomContentEntityObject to be a ContentProperty. ContentProperty has a Container and an Optional Space.- Parameters:
apiContentProperty
- JsonSpaceProperty to create the CustomContentEntityObject fromstorageJsonProperty
- a CustomContentEntityObject that is being updated to be a SpaceProperty- Returns:
- A CustomContentEntityObject that is a content property
-
updateStorageFromApi
public CustomContentEntityObject updateStorageFromApi(JsonSpaceProperty property, CustomContentEntityObject storageJsonProperty)
Updates a JsonProperty CustomContentEntityObject to be a SpaceProperty. SpaceProperty has a space and a null Container.- Parameters:
property
- JsonSpaceProperty to create the CustomContentEntityObject fromstorageJsonProperty
- a CustomContentEntityObject that is being updated to be a SpaceProperty- Returns:
- A CustomContentEntityObject that is a space property
-
getStorageContentProperty
public CustomContentEntityObject getStorageContentProperty(SimpleValidationResult.Builder result, JsonContentProperty property)
-
getStorageSpaceProperty
public CustomContentEntityObject getStorageSpaceProperty(JsonSpaceProperty property)
-
-