ConfigurationPersistenceStrategy2 instead.@ConsumerType @Deprecated public interface ConfigurationPersistenceStrategy
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteConfiguration(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String configResourcePath)
Deprecated.
Delete configuration or configuration collection data from repository using the inner-most context path as reference.
|
org.apache.sling.api.resource.Resource |
getResource(org.apache.sling.api.resource.Resource resource)
Deprecated.
Allows the strategy to transform the given configuration resource according to it's persistent strategies,
e.g. fetching the data from a child resource instead of the given resource.
|
String |
getResourcePath(String resourcePath)
Deprecated.
Allows the strategy to transform the given configuration resource path according to it's persistent strategies,
e.g. fetching the data from a child resource instead of the given resource.
|
boolean |
persistConfiguration(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String configResourcePath,
ConfigurationPersistData data)
Deprecated.
Stores configuration data for a singleton configuration resource.
|
boolean |
persistConfigurationCollection(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String configResourceCollectionParentPath,
ConfigurationCollectionPersistData data)
Deprecated.
Stores configuration data for a configuration resource collection.
|
@CheckForNull org.apache.sling.api.resource.Resource getResource(@Nonnull org.apache.sling.api.resource.Resource resource)
resource - Configuration resource@CheckForNull String getResourcePath(@Nonnull String resourcePath)
resourcePath - Configuration resource path or part of it (e.g. config name)boolean persistConfiguration(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver, @Nonnull String configResourcePath, @Nonnull 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 data to be stored. All existing properties are erased and replaced with the new ones.boolean persistConfigurationCollection(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver, @Nonnull String configResourceCollectionParentPath, @Nonnull 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(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver, @Nonnull 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 © 2007–2017 The Apache Software Foundation. All rights reserved.