tree: 80b874f4de51f538eb444bf2f9a31fd6473e20d6 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
components/camel-salesforce/camel-salesforce-maven-plugin/README.md

Maven plugin for camel-salesforce component

This plugin generates DTOs for the Camel Salesforce Component.

Usage

The plugin configuration has the following properties.

  • clientId - Salesforce client Id for Remote API access
  • clientSecret - Salesforce client secret for Remote API access
  • userName - Salesforce account user name
  • password - Salesforce account password (including secret token)
  • version - Salesforce Rest API version, defaults to 25.0
  • outputDirectory - Directory where to place generated DTOs, defaults to ${project.build.directory}/generated-sources/camel-salesforce
  • includes - List of SObject types to include
  • excludes - List of SObject types to exclude
  • includePattern - Java RegEx for SObject types to include
  • excludePattern - Java RegEx for SObject types to exclude
  • packageName - Java package name for generated DTOs, defaults to org.apache.camel.salesforce.dto.

Fro obvious security reasons it is recommended that the clientId, clientSecret, userName and password fields be not set in the pom.xml. The plugin should be configured for the rest of the properties, and can be executed using the following command:

mvn camel-salesforce:generate -DcamelSalesforce.clientId=<clientid> -DcamelSalesforce.clientSecret=<clientsecret> -DcamelSalesforce.userName=<username> -DcamelSalesforce.password=<password>

The generated DTOs use Jackson and XStream annotations. All Salesforce field types are supported. Date and time fields are mapped to Joda DateTime, and picklist fields are mapped to generated Java Enumerations.