camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r937269 - in /websites/production/camel/content: cache/main.pageCache salesforce.html
Date Thu, 22 Jan 2015 15:18:17 GMT
Author: buildbot
Date: Thu Jan 22 15:18:16 2015
New Revision: 937269

Log:
Production update by buildbot for camel

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

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

Modified: websites/production/camel/content/salesforce.html
==============================================================================
--- websites/production/camel/content/salesforce.html (original)
+++ websites/production/camel/content/salesforce.html Thu Jan 22 15:18:16 2015
@@ -122,7 +122,8 @@
 		ObjectMapper mapper = new ObjectMapper();
 		String enc = mapper.convertValue(document, String.class);
 		cv.setVersionDataUrl(enc);
-	}
+		message.setBody(cv);
+    }
 
 	protected ContentWorkspace getWorkSpace(Exchange exchange) {
 		// Look up the content workspace somehow, maybe use enrich() to add it to a
@@ -132,7 +133,8 @@
 } ]]></script>
 </div></div><p>Give the output from the processor to the Salesforce component:</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;file:///home/camel/library&quot;)
-		.to(new ContentProcessor())
+		.to(new ContentProcessor())     // convert bytes from the file into a ContentVersion SObject

+										// for the salesforce component
 		.to(&quot;salesforce:createSObject&quot;); ]]></script>
 </div></div><h2 id="Salesforce-CamelSalesforceMavenPlugin">Camel Salesforce
Maven Plugin</h2><p>This Maven plugin generates DTOs for the Camel <a shape="rect"
href="salesforce.html">Salesforce</a>.</p><h3 id="Salesforce-Usage">Usage</h3><p>The
plugin configuration has the following properties.</p><div class="confluenceTableSmall"><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>clientId</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Salesforce client Id for Remote API
access</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>clientSecret</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Salesforce client secret for Remote
API access</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>userName</p></td><td
colspan=
 "1" rowspan="1" class="confluenceTd"><p>Salesforce account user name</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>password</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Salesforce account password (including
secret token)</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>version</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Salesforce Rest API version, defaults
to 25.0</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>outputDirectory</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Directory where to place generated
DTOs, defaults to ${project.build.directory}/generated-sources/camel-salesforce</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>includes</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>List of SObject types to include</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>excludes</p></td><td
colspan="1" rowspan="1" class="co
 nfluenceTd"><p>List of SObject types to exclude</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>includePattern</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Java RegEx for SObject types to include</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>excludePattern</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Java RegEx for SObject types to exclude</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>packageName</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Java package name for generated DTOs,
defaults to org.apache.camel.salesforce.dto.</p></td></tr></tbody></table></div></div><p>For
obvious security reasons it is recommended that the clientId, clientSecret, userName and password
fields be not set in the pom.xml. <br clear="none"> The plugin should be configured
for the rest of the properties, and can be executed using the following command:</p><div
class="code panel pdl" style="border-w
 idth: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
mvn camel-salesforce:generate -DclientId=&lt;clientid&gt; -DclientSecret=&lt;clientsecret&gt;
-DuserName=&lt;username&gt; -Dpassword=&lt;password&gt;



Mime
View raw message