Skip to content

Commit

Permalink
Maven site: wcm-io-devops/conga-aem-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wcmio-site-deploy committed Jan 22, 2024
1 parent 7c603ed commit 35d1c01
Show file tree
Hide file tree
Showing 18 changed files with 87 additions and 81 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified conga/plugins/aem/conga-aem-plugin/apidocs/type-search-index.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ContentElementHandler</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">CONGA AEM Plugin</a> &gt; <a href="index.html" class="el_package">io.wcm.devops.conga.plugins.aem.util</a> &gt; <span class="el_class">ContentElementHandler</span></div><h1>ContentElementHandler</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">17 of 84</td><td class="ctr2">79%</td><td class="bar">3 of 10</td><td class="ctr2">70%</td><td class="ctr1">3</td><td class="ctr2">9</td><td class="ctr1">3</td><td class="ctr2">19</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a2"><a href="ContentElementHandler.java.html#L42" class="el_method">resource(String, Map)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="27" height="10" title="17" alt="17"/><img src="../jacoco-resources/greenbar.gif" width="92" height="10" title="57" alt="57"/></td><td class="ctr2" id="c3">77%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="36" height="10" title="3" alt="3"/><img src="../jacoco-resources/greenbar.gif" width="84" height="10" title="7" alt="7"/></td><td class="ctr2" id="e0">70%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g0">6</td><td class="ctr1" id="h0">3</td><td class="ctr2" id="i0">16</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="ContentElementHandler.java.html#L38" class="el_method">static {...}</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="4" alt="4"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="ContentElementHandler.java.html#L35" class="el_method">ContentElementHandler()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a1"><a href="ContentElementHandler.java.html#L70" class="el_method">getRoot()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.11.202310140853</span></div></body></html>
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ContentElementHandler</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">CONGA AEM Plugin</a> &gt; <a href="index.html" class="el_package">io.wcm.devops.conga.plugins.aem.util</a> &gt; <span class="el_class">ContentElementHandler</span></div><h1>ContentElementHandler</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">17 of 84</td><td class="ctr2">79%</td><td class="bar">3 of 10</td><td class="ctr2">70%</td><td class="ctr1">3</td><td class="ctr2">9</td><td class="ctr1">3</td><td class="ctr2">19</td><td class="ctr1">0</td><td class="ctr2">4</td></tr></tfoot><tbody><tr><td id="a2"><a href="ContentElementHandler.java.html#L44" class="el_method">resource(String, Map)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="27" height="10" title="17" alt="17"/><img src="../jacoco-resources/greenbar.gif" width="92" height="10" title="57" alt="57"/></td><td class="ctr2" id="c3">77%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="36" height="10" title="3" alt="3"/><img src="../jacoco-resources/greenbar.gif" width="84" height="10" title="7" alt="7"/></td><td class="ctr2" id="e0">70%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g0">6</td><td class="ctr1" id="h0">3</td><td class="ctr2" id="i0">16</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a3"><a href="ContentElementHandler.java.html#L40" class="el_method">static {...}</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="4" alt="4"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="ContentElementHandler.java.html#L35" class="el_method">ContentElementHandler()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a1"><a href="ContentElementHandler.java.html#L72" class="el_method">getRoot()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.11.202310140853</span></div></body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,41 @@
<span class="fc" id="L35">final class ContentElementHandler implements ContentHandler {</span>

private ContentElement root;
<span class="fc" id="L38"> private static final Pattern PATH_PATTERN = Pattern.compile(&quot;^((/[^/]+)*)(/([^/]+))$&quot;);</span>

@SuppressWarnings(&quot;java:S5998&quot;) // analyzed paths should be safe
<span class="fc" id="L40"> private static final Pattern PATH_PATTERN = Pattern.compile(&quot;^((/[^/]+)*)(/([^/]+))$&quot;);</span>

@Override
public void resource(String path, Map&lt;String, Object&gt; properties) {
<span class="fc bfc" id="L42" title="All 2 branches covered."> if (StringUtils.equals(path, &quot;/&quot;)) {</span>
<span class="fc" id="L43"> root = new ContentElementImpl(null, properties);</span>
<span class="fc bfc" id="L44" title="All 2 branches covered."> if (StringUtils.equals(path, &quot;/&quot;)) {</span>
<span class="fc" id="L45"> root = new ContentElementImpl(null, properties);</span>
}
else {
<span class="pc bpc" id="L46" title="1 of 2 branches missed."> if (root == null) {</span>
<span class="nc" id="L47"> throw new IllegalArgumentException(&quot;Root resource not set.&quot;);</span>
<span class="pc bpc" id="L48" title="1 of 2 branches missed."> if (root == null) {</span>
<span class="nc" id="L49"> throw new IllegalArgumentException(&quot;Root resource not set.&quot;);</span>
}
<span class="fc" id="L49"> Matcher matcher = PATH_PATTERN.matcher(path);</span>
<span class="pc bpc" id="L50" title="1 of 2 branches missed."> if (!matcher.matches()) {</span>
<span class="nc" id="L51"> throw new IllegalArgumentException(&quot;Unexpected path:&quot; + path);</span>
<span class="fc" id="L51"> Matcher matcher = PATH_PATTERN.matcher(path);</span>
<span class="pc bpc" id="L52" title="1 of 2 branches missed."> if (!matcher.matches()) {</span>
<span class="nc" id="L53"> throw new IllegalArgumentException(&quot;Unexpected path:&quot; + path);</span>
}
<span class="fc" id="L53"> String relativeParentPath = StringUtils.stripStart(matcher.group(1), &quot;/&quot;);</span>
<span class="fc" id="L54"> String name = matcher.group(4);</span>
<span class="fc" id="L55"> String relativeParentPath = StringUtils.stripStart(matcher.group(1), &quot;/&quot;);</span>
<span class="fc" id="L56"> String name = matcher.group(4);</span>
ContentElement parent;
<span class="fc bfc" id="L56" title="All 2 branches covered."> if (StringUtils.isEmpty(relativeParentPath)) {</span>
<span class="fc" id="L57"> parent = root;</span>
<span class="fc bfc" id="L58" title="All 2 branches covered."> if (StringUtils.isEmpty(relativeParentPath)) {</span>
<span class="fc" id="L59"> parent = root;</span>
}
else {
<span class="fc" id="L60"> parent = root.getChild(relativeParentPath);</span>
<span class="fc" id="L62"> parent = root.getChild(relativeParentPath);</span>
}
<span class="pc bpc" id="L62" title="1 of 2 branches missed."> if (parent == null) {</span>
<span class="nc" id="L63"> throw new IllegalArgumentException(&quot;Parent '&quot; + relativeParentPath + &quot;' does not exist.&quot;);</span>
<span class="pc bpc" id="L64" title="1 of 2 branches missed."> if (parent == null) {</span>
<span class="nc" id="L65"> throw new IllegalArgumentException(&quot;Parent '&quot; + relativeParentPath + &quot;' does not exist.&quot;);</span>
}
<span class="fc" id="L65"> parent.getChildren().put(name, new ContentElementImpl(name, properties));</span>
<span class="fc" id="L67"> parent.getChildren().put(name, new ContentElementImpl(name, properties));</span>
}
<span class="fc" id="L67"> }</span>
<span class="fc" id="L69"> }</span>

public ContentElement getRoot() {
<span class="fc" id="L70"> return root;</span>
<span class="fc" id="L72"> return root;</span>
}

}
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion conga/plugins/aem/conga-aem-plugin/jacoco-unit/jacoco.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 35d1c01

Please sign in to comment.