Author: buildbot
Date: Thu Mar 2 14:06:05 2017
New Revision: 1007565
Log:
Staging update by buildbot for sling
Modified:
websites/staging/sling/trunk/content/ (props changed)
websites/staging/sling/trunk/content/documentation/bundles/validation.html
Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Mar 2 14:06:05 2017
@@ -1 +1 @@
-1785133
+1785139
Modified:
websites/staging/sling/trunk/content/documentation/bundles/validation.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/bundles/validation.html
(original)
+++ websites/staging/sling/trunk/content/documentation/bundles/validation.html
Thu Mar 2 14:06:05 2017
@@ -120,6 +120,7 @@ h2:hover > .headerlink, h3:hover > .head
<li><a href="#basic-usage">Basic Usage</a></li>
<li><a href="#validation-model-resources">Validation Model Resources</a><ul>
<li><a href="#validation-model-inheritance">Validation Model
Inheritance</a></li>
+<li><a href="#precedence-of-validation-models">Precedence of Validation
Models</a></li>
</ul>
</li>
<li><a href="#usage-in-sling-models">Usage in Sling Models</a><ul>
@@ -210,7 +211,7 @@ h2:hover > .headerlink, h3:hover > .head
<td><code>applicablePaths</code></td>
<td>Property</td>
<td><code>String[]</code></td>
-<td>Path prefixes which restrict the validation model to resources which are
below one of the given prefixes. No wildcards are supported. If not given,
there is no path restriction.</td>
+<td>Path prefixes which restrict the validation model to resources which are
below one of the given prefixes. No wildcards are supported. If not given,
there is no path restriction. If there are multiple validation models
registered for the same resource type the one with the longest matching
applicablePath is chosen.</td>
<td>no</td>
</tr>
<tr>
@@ -295,6 +296,8 @@ h2:hover > .headerlink, h3:hover > .head
<h2 id="validation-model-inheritance">Validation Model Inheritance<a
class="headerlink" href="#validation-model-inheritance" title="Permanent
link">¶</a></h2>
<p>Sling Validation optionally supports the inheritance of Sling Validation
Models. This means not only the model for exactly the given resource type is
considered, but also the models for all resource super types.
To overwrite some property or child from one of the super type models, just
define a property/child on the same level and with the same name in a model for
a resource type which is more specific. That way the property/child on the
super validation model is no longer effective.</p>
+<h2 id="precedence-of-validation-models">Precedence of Validation Models<a
class="headerlink" href="#precedence-of-validation-models" title="Permanent
link">¶</a></h2>
+<p>In case there are multiple validation models registered for the same
resource type the one gets chosen which has the longest matching
applicablePath. In case even that does not resolve to a single model the one in
the first resource resolver's search path is chosen (models below
<code>/apps</code> before the ones below <code>/libs</code>). If even that does
not resolve to a single validation model any of the equally ranked models might
be picked.</p>
<h1 id="usage-in-sling-models">Usage in <a
href="/documentation/bundles/models.html">Sling Models</a><a class="headerlink"
href="#usage-in-sling-models" title="Permanent link">¶</a></h1>
<h2 id="since-sling-models-120">Since Sling Models 1.2.0<a class="headerlink"
href="#since-sling-models-120" title="Permanent link">¶</a></h2>
<p>See <a href="/documentation/bundles/models.html#validation">Sling Models
validation</a></p>
@@ -355,7 +358,7 @@ Each validator needs to specify one type
<li><a
href="http://www.slideshare.net/raducotescu/apache-sling-generic-validation-framework">Apache
Sling Generic Validation Framework, adaptTo 2014</a></li>
</ol>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1785133 by kwin on Thu, 2 Mar 2017 13:35:06 +0000
+ Rev. 1785139 by kwin on Thu, 2 Mar 2017 14:05:56 +0000
</div>
<div class="trademarkFooter">
Apache Sling, Sling, Apache, the Apache feather logo, and the Apache
Sling project