This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.caconfig.spi-1.2.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-caconfig-spi.git
commit 722a0a41ce67242921d150a7c0f2806171459746 Author: Stefan Seifert <[email protected]> AuthorDate: Mon Dec 5 20:51:47 2016 +0000 SLING-6367 Context-Aware Config: Delete Configurations via ConfigurationManager git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/contextaware-config/spi@1772800 13f79535-47bb-0310-9956-ffa450edef68 --- .../caconfig/spi/ConfigurationPersistenceStrategy.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/sling/caconfig/spi/ConfigurationPersistenceStrategy.java b/src/main/java/org/apache/sling/caconfig/spi/ConfigurationPersistenceStrategy.java index 909b7e2..cf88798 100644 --- a/src/main/java/org/apache/sling/caconfig/spi/ConfigurationPersistenceStrategy.java +++ b/src/main/java/org/apache/sling/caconfig/spi/ConfigurationPersistenceStrategy.java @@ -55,9 +55,9 @@ public interface ConfigurationPersistenceStrategy { * @param configResourcePath Path to store configuration data to. The resource (and it's parents) may not exist and may have to be created. * @param properties Configuration properties * @return true if the data was persisted. false if persisting the data was not accepted by this persistence strategy - * (but in case of error throw an exception). + * (in case of error throw an exception). */ - boolean persist(@Nonnull ResourceResolver resourceResolver, + boolean persistConfiguration(@Nonnull ResourceResolver resourceResolver, @Nonnull String configResourcePath, @Nonnull ConfigurationPersistData data); /** @@ -69,9 +69,18 @@ public interface ConfigurationPersistenceStrategy { * @param resourceCollectionItems Resource collection items to be stored. * All existing collection entries on this context path level are erased and replaced with the new ones. * @return true if the data was persisted. false if persisting the data was not accepted by this persistence strategy - * (but in case of error throw an exception). + * (in case of error throw an exception). */ - boolean persistCollection(@Nonnull ResourceResolver resourceResolver, + boolean persistConfigurationCollection(@Nonnull ResourceResolver resourceResolver, @Nonnull String configResourceCollectionParentPath, @Nonnull ConfigurationCollectionPersistData data); + + /** + * Delete configuration or configuration collection data from repository using the inner-most context path as reference. + * @param resourceResolver Resource resolver + * @param configResourcePath Path to store configuration data to. The resource (and it's parents) may not exist and may have to be created. + * @return true if the data was delete. false if deleting the data was not accepted by this persistence strategy + * (in case of error throw an exception). + */ + boolean deleteConfiguration(@Nonnull ResourceResolver resourceResolver, @Nonnull String configResourcePath); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
