Skip to content

Commit

Permalink
Maven site: wcm-io-devops/conga
Browse files Browse the repository at this point in the history
  • Loading branch information
wcmio-site-deploy committed Jan 10, 2024
1 parent a70fa8a commit ee8a0cb
Show file tree
Hide file tree
Showing 58 changed files with 1,261 additions and 1,287 deletions.
Binary file modified conga/generator/apidocs/member-search-index.zip
Binary file not shown.
Binary file modified conga/generator/apidocs/package-search-index.zip
Binary file not shown.
Binary file modified conga/generator/apidocs/type-search-index.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion conga/generator/dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ <h2 id="Dependency_File_Details">Dependency File Details</h2>
</tr>
<tr class="a">
<td align="left">io.wcm.devops.conga.model-1.16.5-SNAPSHOT.jar</td>
<td align="right">32.4 kB</td>
<td align="right">32.3 kB</td>
<td align="right">48</td>
<td align="right">31</td>
<td align="right">5</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

List&lt;String&gt; sanitizedCommentLines;
<span class="pc bpc" id="L52" title="1 of 2 branches missed."> if (context.getCommentLines() == null) {</span>
<span class="nc" id="L53"> sanitizedCommentLines = ImmutableList.of();</span>
<span class="nc" id="L53"> sanitizedCommentLines = List.of();</span>
}
else {
<span class="fc" id="L56"> sanitizedCommentLines = context.getCommentLines().stream()</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
*/
package io.wcm.devops.conga.generator.plugins.handlebars.escaping;

import java.util.Map;

import org.apache.commons.text.translate.AggregateTranslator;
import org.apache.commons.text.translate.CharSequenceTranslator;
import org.apache.commons.text.translate.EntityArrays;
import org.apache.commons.text.translate.LookupTranslator;

import com.google.common.collect.ImmutableMap;

import io.wcm.devops.conga.generator.spi.handlebars.EscapingStrategyPlugin;
import io.wcm.devops.conga.generator.spi.handlebars.context.EscapingStrategyContext;
import io.wcm.devops.conga.generator.util.FileUtil;
Expand All @@ -50,7 +50,7 @@
<span class="fc" id="L50"> private static final CharSequenceTranslator ESCAPE_JSON =</span>
new AggregateTranslator(
new LookupTranslator(
<span class="fc" id="L53"> ImmutableMap.of(</span>
<span class="fc" id="L53"> Map.of(</span>
&quot;\&quot;&quot;, &quot;\\\&quot;&quot;,
&quot;\\&quot;, &quot;\\\\&quot;
)),
Expand Down
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>ValueProviderContext</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 Generator</a> &gt; <a href="index.html" class="el_package">io.wcm.devops.conga.generator.spi.context</a> &gt; <span class="el_class">ValueProviderContext</span></div><h1>ValueProviderContext</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">18 of 50</td><td class="ctr2">64%</td><td class="bar">1 of 2</td><td class="ctr2">50%</td><td class="ctr1">3</td><td class="ctr2">8</td><td class="ctr1">4</td><td class="ctr2">14</td><td class="ctr1">2</td><td class="ctr2">7</td></tr></tfoot><tbody><tr><td id="a3"><a href="ValueProviderContext.java.html#L85" class="el_method">setValueProviderCache(Object)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="77" height="10" title="9" alt="9"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">2</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="ValueProviderContext.java.html#L77" class="el_method">getValueProviderCache()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="7" alt="7"/></td><td class="ctr2" id="c6">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h1">1</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a1"><a href="ValueProviderContext.java.html#L65" class="el_method">getValueProviderConfig(String)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="17" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="102" height="10" title="12" alt="12"/></td><td class="ctr2" id="c4">85%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="1" alt="1"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i0">4</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a5"><a href="ValueProviderContext.java.html#L39" class="el_method">valueProviderGlobalContext(ValueProviderGlobalContext)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="77" height="10" title="9" alt="9"/></td><td class="ctr2" id="c0">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="i1">3</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a6"><a href="ValueProviderContext.java.html#L49" class="el_method">valueProviderName(String)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="42" height="10" title="5" alt="5"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a4"><a href="ValueProviderContext.java.html#L29" class="el_method">ValueProviderContext()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="25" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a2"><a href="ValueProviderContext.java.html#L57" class="el_method">getValueProviderName()</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="25" height="10" title="3" alt="3"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">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>ValueProviderContext</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 Generator</a> &gt; <a href="index.html" class="el_package">io.wcm.devops.conga.generator.spi.context</a> &gt; <span class="el_class">ValueProviderContext</span></div><h1>ValueProviderContext</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">18 of 50</td><td class="ctr2">64%</td><td class="bar">1 of 2</td><td class="ctr2">50%</td><td class="ctr1">3</td><td class="ctr2">8</td><td class="ctr1">4</td><td class="ctr2">14</td><td class="ctr1">2</td><td class="ctr2">7</td></tr></tfoot><tbody><tr><td id="a3"><a href="ValueProviderContext.java.html#L83" class="el_method">setValueProviderCache(Object)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="77" height="10" title="9" alt="9"/></td><td class="ctr2" id="c5">0%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h0">2</td><td class="ctr2" id="i2">2</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a0"><a href="ValueProviderContext.java.html#L75" class="el_method">getValueProviderCache()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="7" alt="7"/></td><td class="ctr2" id="c6">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h1">1</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a1"><a href="ValueProviderContext.java.html#L63" class="el_method">getValueProviderConfig(String)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="17" height="10" title="2" alt="2"/><img src="../jacoco-resources/greenbar.gif" width="102" height="10" title="12" alt="12"/></td><td class="ctr2" id="c4">85%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="60" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="1" alt="1"/></td><td class="ctr2" id="e0">50%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i0">4</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a5"><a href="ValueProviderContext.java.html#L37" class="el_method">valueProviderGlobalContext(ValueProviderGlobalContext)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="77" height="10" title="9" alt="9"/></td><td class="ctr2" id="c0">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="i1">3</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a6"><a href="ValueProviderContext.java.html#L47" class="el_method">valueProviderName(String)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="42" height="10" title="5" alt="5"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a4"><a href="ValueProviderContext.java.html#L27" class="el_method">ValueProviderContext()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="25" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">1</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a2"><a href="ValueProviderContext.java.html#L55" class="el_method">getValueProviderName()</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="25" height="10" title="3" alt="3"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6">1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">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 @@ -21,12 +21,10 @@

import java.util.Map;

import com.google.common.collect.ImmutableMap;

/**
* Context for a single {@link io.wcm.devops.conga.generator.spi.ValueProviderPlugin} instance.
*/
<span class="fc" id="L29">public final class ValueProviderContext extends AbstractPluginContext&lt;ValueProviderContext&gt; {</span>
<span class="fc" id="L27">public final class ValueProviderContext extends AbstractPluginContext&lt;ValueProviderContext&gt; {</span>

private ValueProviderGlobalContext valueProviderGlobalContext;
private String valueProviderName;
Expand All @@ -36,54 +34,54 @@
* @return this
*/
public ValueProviderContext valueProviderGlobalContext(ValueProviderGlobalContext context) {
<span class="fc" id="L39"> this.valueProviderGlobalContext = context;</span>
<span class="fc" id="L40"> return this</span>
<span class="fc" id="L41"> .pluginContextOptions(context.getPluginContextOptions());</span>
<span class="fc" id="L37"> this.valueProviderGlobalContext = context;</span>
<span class="fc" id="L38"> return this</span>
<span class="fc" id="L39"> .pluginContextOptions(context.getPluginContextOptions());</span>
}

/**
* @param value Value provider name
* @return this
*/
public ValueProviderContext valueProviderName(String value) {
<span class="fc" id="L49"> this.valueProviderName = value;</span>
<span class="fc" id="L50"> return this;</span>
<span class="fc" id="L47"> this.valueProviderName = value;</span>
<span class="fc" id="L48"> return this;</span>
}

/**
* @return Value provider name
*/
public String getValueProviderName() {
<span class="fc" id="L57"> return this.valueProviderName;</span>
<span class="fc" id="L55"> return this.valueProviderName;</span>
}

/**
* @param key Configuration parameter name
* @return Configuration for the current value provider. Never null.
*/
public Object getValueProviderConfig(String key) {
<span class="fc" id="L65"> Map&lt;String, Object&gt; config = valueProviderGlobalContext.getValueProviderConfig(valueProviderName);</span>
<span class="pc bpc" id="L66" title="1 of 2 branches missed."> if (config == null) {</span>
<span class="nc" id="L67"> config = ImmutableMap.of();</span>
<span class="fc" id="L63"> Map&lt;String, Object&gt; config = valueProviderGlobalContext.getValueProviderConfig(valueProviderName);</span>
<span class="pc bpc" id="L64" title="1 of 2 branches missed."> if (config == null) {</span>
<span class="nc" id="L65"> config = Map.of();</span>
}
<span class="fc" id="L69"> return config.get(key);</span>
<span class="fc" id="L67"> return config.get(key);</span>
}

/**
* Get cache object for the current value provider.
* @return Cache object or null if none was set yet
*/
public Object getValueProviderCache() {
<span class="nc" id="L77"> return valueProviderGlobalContext.getGlobalValueProviderCache().get(valueProviderName);</span>
<span class="nc" id="L75"> return valueProviderGlobalContext.getGlobalValueProviderCache().get(valueProviderName);</span>
}

/**
* Set cache object for the current value provider.
* @param object Cache object
*/
public void setValueProviderCache(Object object) {
<span class="nc" id="L85"> valueProviderGlobalContext.getGlobalValueProviderCache().put(valueProviderName, object);</span>
<span class="nc" id="L86"> }</span>
<span class="nc" id="L83"> valueProviderGlobalContext.getGlobalValueProviderCache().put(valueProviderName, object);</span>
<span class="nc" id="L84"> }</span>

}
</pre><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>
Loading

0 comments on commit ee8a0cb

Please sign in to comment.