diff --git a/src/main/java/io/wcm/caconfig/extensions/persistence/impl/PagePersistenceStrategy.java b/src/main/java/io/wcm/caconfig/extensions/persistence/impl/PagePersistenceStrategy.java index 90551cf..0fe8320 100644 --- a/src/main/java/io/wcm/caconfig/extensions/persistence/impl/PagePersistenceStrategy.java +++ b/src/main/java/io/wcm/caconfig/extensions/persistence/impl/PagePersistenceStrategy.java @@ -28,6 +28,7 @@ import static io.wcm.caconfig.extensions.persistence.impl.PersistenceUtils.ensureContainingPage; import static io.wcm.caconfig.extensions.persistence.impl.PersistenceUtils.ensurePageIfNotContainingPage; import static io.wcm.caconfig.extensions.persistence.impl.PersistenceUtils.getOrCreateResource; +import static io.wcm.caconfig.extensions.persistence.impl.PersistenceUtils.isItemModifiedOrNewlyAdded; import static io.wcm.caconfig.extensions.persistence.impl.PersistenceUtils.replaceProperties; import static io.wcm.caconfig.extensions.persistence.impl.PersistenceUtils.updatePageLastMod; @@ -56,6 +57,7 @@ /** * AEM-specific persistence strategy that has higher precedence than the default strategy from Sling, * but lower precedence that the persistence strategy that is part of AEM since version 6.3. + * *
* It supports reading configurations from cq:Page nodes in /conf, the configuration is read from the jcr:content child * node. Unlike the persistence strategy in AEM 6.3 this also supports writing configuration to /conf. diff --git a/src/main/java/io/wcm/caconfig/extensions/references/impl/ConfigurationReferenceProvider.java b/src/main/java/io/wcm/caconfig/extensions/references/impl/ConfigurationReferenceProvider.java index c2d0b7e..53a1466 100644 --- a/src/main/java/io/wcm/caconfig/extensions/references/impl/ConfigurationReferenceProvider.java +++ b/src/main/java/io/wcm/caconfig/extensions/references/impl/ConfigurationReferenceProvider.java @@ -55,15 +55,15 @@ import com.day.cq.wcm.api.reference.ReferenceProvider; /** - *
* This implementation of {@link ReferenceProvider} allows to resolve references of a given {@link Resource} to * context-aware configurations. - *
+ * ** This is for example used by ActivationReferenceSearchServlet to resolve referenced content of pages during activation * of a page using AEM sites. Returning the configurations allows the editor to activate them along with the page * referring to them. *
+ * ** This component can be disabled by configuration, but its enabled by default. *
@@ -130,7 +130,8 @@ public List* To avoid conflicts with the two implementations trying to achieve the same, this services checks if * the Core Component reference provider is present, and deactivates it. *
+ * ** Unfortunately there is no better way, as the Core Component reference provider does not support to be disabled via * OSGi configuration, and the AEM WCM Core implementation does not sort the reference providers by service ranking. * If both reference providers are active at the same time it's a matter of luck who "wins". *
+ * ** The implementation of this service is heavily inspired by the "Component Disabler" of ACS AEM Commons. *