public interface ConfigurationPersistenceStrategy
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteConfiguration(ResourceResolver resourceResolver,
String configResourcePath)
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
Resource |
getResource(Resource resource)
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g.
|
String |
getResourcePath(String resourcePath)
Allows the strategy to transform the given configuration resource path according to it's persistent strategies,
e.g.
|
boolean |
persistConfiguration(ResourceResolver resourceResolver,
String configResourcePath,
ConfigurationPersistData data)
Stores configuration data for a singleton configuration resource.
|
boolean |
persistConfigurationCollection(ResourceResolver resourceResolver,
String configResourceCollectionParentPath,
ConfigurationCollectionPersistData data)
Stores configuration data for a configuration resource collection.
|
Resource getResource(Resource resource)
resource - Configuration resourceString getResourcePath(String resourcePath)
resourcePath - Configuration resource path or part of it (e.g. config name)boolean persistConfiguration(ResourceResolver resourceResolver, String configResourcePath, ConfigurationPersistData data)
resourceResolver - Resource resolverconfigResourcePath - Path to store configuration data to. The resource (and it's parents) may not exist and may have to be created.data - Configuration persistence databoolean persistConfigurationCollection(ResourceResolver resourceResolver, String configResourceCollectionParentPath, ConfigurationCollectionPersistData data)
resourceResolver - Resource resolverconfigResourceCollectionParentPath - Parent path to store configuration collection data to.
The resource (and it's parents) may not exist and may have to be created.data - Configuration collection data. All existing collection entries on this context path level are erased and replaced with the new ones.boolean deleteConfiguration(ResourceResolver resourceResolver, String configResourcePath)
resourceResolver - Resource resolverconfigResourcePath - Path to store configuration data to. The resource (and it's parents) may not exist and may have to be created."Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"