Class StorageJsonPropertyManager
java.lang.Object
com.atlassian.confluence.plugins.contentproperty.StorageJsonPropertyManager
Manages the actual loading and storing of content and space properties stored in CustomContentEntityObjects.
- Since:
- 5.6
-
Method Summary
Modifier and TypeMethodDescriptiongetStorageContentProperty
(SimpleValidationResult.Builder result, JsonContentProperty property) getStorageSpaceProperty
(JsonSpaceProperty property) updateStorageFromApi
(JsonContentProperty apiContentProperty, CustomContentEntityObject storageJsonProperty) Updates a JsonProperty CustomContentEntityObject to be a ContentProperty.updateStorageFromApi
(JsonSpaceProperty property, CustomContentEntityObject storageJsonProperty) Updates a JsonProperty CustomContentEntityObject to be a SpaceProperty.
-
Method Details
-
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
-