camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r911002 - in /websites/production/camel/content: cache/main.pageCache jcr.html
Date Mon, 02 Jun 2014 21:17:57 GMT
Author: buildbot
Date: Mon Jun  2 21:17:57 2014
New Revision: 911002

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/jcr.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/jcr.html
==============================================================================
--- websites/production/camel/content/jcr.html (original)
+++ websites/production/camel/content/jcr.html Mon Jun  2 21:17:57 2014
@@ -106,13 +106,13 @@
     </div>
 <h3 id="JCR-Usage">Usage</h3><p>The <code>repository</code>
element of the URI is used to look up the JCR <code>Repository</code> object in
the Camel context registry.</p><h4 id="JCR-Producer">Producer</h4><div
class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Default Value </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelJcrOperation</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelJcrInsert</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> CamelJcrInsert
or CamelJcrGetById operation to use </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>CamelJcrNodeName</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Used to determine the node name
to use. </p></td></tr></tbody></table>
-</div><p>When a message is sent to a JCR producer endpoint:</p><ul><li>If
the operation is CamelJcrInsert: A new node is created in the content repository, all the
message headers of the IN message are transformed to <code>javax.jcr.Value</code>
instances and added to the new node and the node's UUID is returned in the OUT message.</li><li>If
the operation is CamelJcrGetById: A new node is retrieved from the repository using the message
body as node identifier.</li></ul>    <div class="aui-message warning shadowed
information-macro">
+</div><p>When a message is sent to a JCR producer endpoint:</p><ul><li>If
the operation is CamelJcrInsert: A new node is created in the content repository, all the
message headers of the IN message are transformed to <code><a shape="rect" class="external-link"
href="http://www.day.com/specs/javax.jcr/javadocs/jcr-2.0/javax/jcr/Value.html" rel="nofollow">javax.jcr.Value</a></code>
instances and added to the new node and the node's UUID is returned in the OUT message.</li><li>If
the operation is CamelJcrGetById: A new node is retrieved from the repository using the message
body as node identifier.</li></ul>    <div class="aui-message warning shadowed
information-macro">
                             <span class="aui-icon icon-warning">Icon</span>
                 <div class="message-content">
                             <p>Please note that the JCR Producer used message properties
instead of message headers in Camel versions earlier than 2.12.3. See <a shape="rect" class="external-link"
href="https://issues.apache.org/jira/browse/CAMEL-7067">https://issues.apache.org/jira/browse/CAMEL-7067</a>
for more details.</p>
                     </div>
     </div>
-<p>&#160;</p><h4 id="JCR-Consumer">Consumer</h4><p>The
consumer will connect to JCR periodically and return a List&lt;javax.jcr.observation.Event&gt;
in the message body.</p><div class="confluenceTableSmall">
+<p>&#160;</p><h4 id="JCR-Consumer">Consumer</h4><p>The
consumer will connect to JCR periodically and return a List&lt;<a shape="rect" class="external-link"
href="http://www.day.com/specs/javax.jcr/javadocs/jcr-2.0/javax/jcr/observation/Event.html"
rel="nofollow">javax.jcr.observation.Event</a>&gt; in the message body.</p><div
class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Default Value </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>eventTypes</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>0</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> A combination
of one or more event types encoded as a bit mask value such as javax.jcr.observation.Event.NODE_ADDED,
javax.jcr.observation.Event.NODE_REMOVED, etc. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>deep</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> When it is true, events whose associated
parent node is at current path or within its subgraph are received. </p></td
 ></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>uuids</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>null</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
Only events whose associated parent node has one of the identifiers in the comma separated
uuid list will be received.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>nodeTypeNames</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Only events whose associated parent
node has one of the node types (or a subtype of one of the node types) in this list will be
received. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>noLocal</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>false</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
If <code>noLocal</code> is <code>true</cod
 e>, then events generated by the session through which the listener was registered are
ignored. Otherwise, they are not ignored. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>sessionLiveCheckInterval</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>60000</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Interval
in milliseconds to wait before each session live checking. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>sessionLiveCheckIntervalOnStart</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>3000</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Interval
in milliseconds to wait before the first session live checking. </p></td></tr></tbody></table>
 </div><h3 id="JCR-Example">Example</h3><p>The snippet below creates
a node named <code>node</code> under the <code>/home/test</code> node
in the content repository. One additional property is added to the node as well: <code>my.contents.property</code>
which will contain the body of the message being sent.</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[from(&quot;direct:a&quot;).setHeader(JcrConstants.JCR_NODE_NAME,
constant(&quot;node&quot;))



Mime
View raw message