This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 773d24c Regen
773d24c is described below
commit 773d24ca2af5ce943b47ae59c5e27d03e31209f1
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Oct 30 07:41:19 2021 +0200
Regen
---
.../springboot/catalog/components/salesforce.json | 4 +++
.../src/main/docs/salesforce.json | 12 +++++++++
.../SalesforceComponentConfiguration.java | 31 ++++++++++++++++++++++
.../spring-boot/examples/json/salesforce.json | 12 +++++++++
4 files changed, 59 insertions(+)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/salesforce.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/salesforce.json
index e810934..ae685c4 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/salesforce.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/salesforce.json
@@ -41,7 +41,9 @@
"instanceId": { "kind": "property", "displayName": "Instance Id", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Salesforce1 Analytics report
execution instance ID" },
"jobId": { "kind": "property", "displayName": "Job Id", "group": "common",
"label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Bulk API Job ID" },
"limit": { "kind": "property", "displayName": "Limit", "group": "common",
"label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Limit on number of returned
records. Applicable to some of the API, check the Salesforce documentation." },
+ "locator": { "kind": "property", "displayName": "Locator", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Locator provided by salesforce
Bulk 2.0 API for use in getting results for a Query job." },
"maxBackoff": { "kind": "property", "displayName": "Max Backoff", "group":
"common", "label": "", "required": false, "type": "duration", "javaType":
"long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "30000", "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Maximum backoff interval for
Streaming connection restart attempts for failures beyond CometD
auto-reconnect." },
+ "maxRecords": { "kind": "property", "displayName": "Max Records", "group":
"common", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "The maximum number of records
to retrieve per set of results for a Bulk 2.0 Query. The request is still
subject to the size l [...]
"notFoundBehaviour": { "kind": "property", "displayName": "Not Found
Behaviour", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.salesforce.NotFoundBehaviour", "enum": [
"EXCEPTION", "NULL" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "EXCEPTION", "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Sets the be [...]
"notifyForFields": { "kind": "property", "displayName": "Notify For
Fields", "group": "common", "label": "", "required": false, "type": "object",
"javaType":
"org.apache.camel.component.salesforce.internal.dto.NotifyForFieldsEnum",
"enum": [ "ALL", "REFERENCED", "SELECT", "WHERE" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Notify for [...]
"notifyForOperationCreate": { "kind": "property", "displayName": "Notify
For Operation Create", "group": "common", "label": "", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "config", "description": "Notify for create operation,
defaults to false (API version = 29.0)" },
@@ -128,7 +130,9 @@
"instanceId": { "kind": "parameter", "displayName": "Instance Id",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Salesforce1 Analytics
report execution instance ID" },
"jobId": { "kind": "parameter", "displayName": "Job Id", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Bulk API Job ID" },
"limit": { "kind": "parameter", "displayName": "Limit", "group": "common",
"label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Limit on number of
returned records. Applicable to some of the API, check the Salesforce
documentation." },
+ "locator": { "kind": "parameter", "displayName": "Locator", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Locator provided by
salesforce Bulk 2.0 API for use in getting results for a Query job." },
"maxBackoff": { "kind": "parameter", "displayName": "Max Backoff",
"group": "common", "label": "", "required": false, "type": "duration",
"javaType": "long", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": "30000", "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Maximum backoff interval
for Streaming connection restart attempts for failures beyond CometD auto-recon
[...]
+ "maxRecords": { "kind": "parameter", "displayName": "Max Records",
"group": "common", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "The maximum number of
records to retrieve per set of results for a Bulk 2.0 Query. The request is
still subject to th [...]
"notFoundBehaviour": { "kind": "parameter", "displayName": "Not Found
Behaviour", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"org.apache.camel.component.salesforce.NotFoundBehaviour", "enum": [
"EXCEPTION", "NULL" ], "deprecated": false, "autowired": false, "secret":
false, "defaultValue": "EXCEPTION", "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Set [...]
"notifyForFields": { "kind": "parameter", "displayName": "Notify For
Fields", "group": "common", "label": "", "required": false, "type": "object",
"javaType":
"org.apache.camel.component.salesforce.internal.dto.NotifyForFieldsEnum",
"enum": [ "ALL", "REFERENCED", "SELECT", "WHERE" ], "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "No [...]
"notifyForOperationCreate": { "kind": "parameter", "displayName": "Notify
For Operation Create", "group": "common", "label": "", "required": false,
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.salesforce.SalesforceEndpointConfig",
"configurationField": "configuration", "description": "Notify for create
operation, defaults to false (API version = 29.0)" },
diff --git
a/components-starter/camel-salesforce-starter/src/main/docs/salesforce.json
b/components-starter/camel-salesforce-starter/src/main/docs/salesforce.json
index 060d6d2..af4d25e 100644
--- a/components-starter/camel-salesforce-starter/src/main/docs/salesforce.json
+++ b/components-starter/camel-salesforce-starter/src/main/docs/salesforce.json
@@ -303,6 +303,12 @@
"sourceType":
"org.apache.camel.component.salesforce.springboot.SalesforceComponentConfiguration"
},
{
+ "name": "camel.component.salesforce.locator",
+ "type": "java.lang.String",
+ "description": "Locator provided by salesforce Bulk 2.0 API for use in
getting results for a Query job.",
+ "sourceType":
"org.apache.camel.component.salesforce.springboot.SalesforceComponentConfiguration"
+ },
+ {
"name": "camel.component.salesforce.login-config",
"type": "org.apache.camel.component.salesforce.SalesforceLoginConfig",
"description": "All authentication configuration in one nested bean, all
properties set there can be set directly on the component as well. The option
is a org.apache.camel.component.salesforce.SalesforceLoginConfig type.",
@@ -329,6 +335,12 @@
"defaultValue": 30000
},
{
+ "name": "camel.component.salesforce.max-records",
+ "type": "java.lang.Integer",
+ "description": "The maximum number of records to retrieve per set of
results for a Bulk 2.0 Query. The request is still subject to the size limits.
If you are working with a very large number of query results, you may
experience a timeout before receiving all the data from Salesforce. To prevent
a timeout, specify the maximum number of records your client is expecting to
receive in the maxRecords parameter. This splits the results into smaller sets
with this value as the maximum size.",
+ "sourceType":
"org.apache.camel.component.salesforce.springboot.SalesforceComponentConfiguration"
+ },
+ {
"name": "camel.component.salesforce.not-found-behaviour",
"type": "org.apache.camel.component.salesforce.NotFoundBehaviour",
"description": "Sets the behaviour of 404 not found status received from
Salesforce API. Should the body be set to NULL NotFoundBehaviour#NULL or should
a exception be signaled on the exchange NotFoundBehaviour#EXCEPTION - the
default.",
diff --git
a/components-starter/camel-salesforce-starter/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java
b/components-starter/camel-salesforce-starter/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java
index 246e33c..4ceb028 100644
---
a/components-starter/camel-salesforce-starter/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java
+++
b/components-starter/camel-salesforce-starter/src/main/java/org/apache/camel/component/salesforce/springboot/SalesforceComponentConfiguration.java
@@ -133,11 +133,26 @@ public class SalesforceComponentConfiguration
*/
private Integer limit;
/**
+ * Locator provided by salesforce Bulk 2.0 API for use in getting results
+ * for a Query job.
+ */
+ private String locator;
+ /**
* Maximum backoff interval for Streaming connection restart attempts for
* failures beyond CometD auto-reconnect. The option is a long type.
*/
private Long maxBackoff = 30000L;
/**
+ * The maximum number of records to retrieve per set of results for a Bulk
+ * 2.0 Query. The request is still subject to the size limits. If you are
+ * working with a very large number of query results, you may experience a
+ * timeout before receiving all the data from Salesforce. To prevent a
+ * timeout, specify the maximum number of records your client is expecting
+ * to receive in the maxRecords parameter. This splits the results into
+ * smaller sets with this value as the maximum size.
+ */
+ private Integer maxRecords;
+ /**
* Sets the behaviour of 404 not found status received from Salesforce API.
* Should the body be set to NULL NotFoundBehaviour#NULL or should a
* exception be signaled on the exchange NotFoundBehaviour#EXCEPTION - the
@@ -642,6 +657,14 @@ public class SalesforceComponentConfiguration
this.limit = limit;
}
+ public String getLocator() {
+ return locator;
+ }
+
+ public void setLocator(String locator) {
+ this.locator = locator;
+ }
+
public Long getMaxBackoff() {
return maxBackoff;
}
@@ -650,6 +673,14 @@ public class SalesforceComponentConfiguration
this.maxBackoff = maxBackoff;
}
+ public Integer getMaxRecords() {
+ return maxRecords;
+ }
+
+ public void setMaxRecords(Integer maxRecords) {
+ this.maxRecords = maxRecords;
+ }
+
public NotFoundBehaviour getNotFoundBehaviour() {
return notFoundBehaviour;
}
diff --git a/docs/components/modules/spring-boot/examples/json/salesforce.json
b/docs/components/modules/spring-boot/examples/json/salesforce.json
index 060d6d2..af4d25e 100644
--- a/docs/components/modules/spring-boot/examples/json/salesforce.json
+++ b/docs/components/modules/spring-boot/examples/json/salesforce.json
@@ -303,6 +303,12 @@
"sourceType":
"org.apache.camel.component.salesforce.springboot.SalesforceComponentConfiguration"
},
{
+ "name": "camel.component.salesforce.locator",
+ "type": "java.lang.String",
+ "description": "Locator provided by salesforce Bulk 2.0 API for use in
getting results for a Query job.",
+ "sourceType":
"org.apache.camel.component.salesforce.springboot.SalesforceComponentConfiguration"
+ },
+ {
"name": "camel.component.salesforce.login-config",
"type": "org.apache.camel.component.salesforce.SalesforceLoginConfig",
"description": "All authentication configuration in one nested bean, all
properties set there can be set directly on the component as well. The option
is a org.apache.camel.component.salesforce.SalesforceLoginConfig type.",
@@ -329,6 +335,12 @@
"defaultValue": 30000
},
{
+ "name": "camel.component.salesforce.max-records",
+ "type": "java.lang.Integer",
+ "description": "The maximum number of records to retrieve per set of
results for a Bulk 2.0 Query. The request is still subject to the size limits.
If you are working with a very large number of query results, you may
experience a timeout before receiving all the data from Salesforce. To prevent
a timeout, specify the maximum number of records your client is expecting to
receive in the maxRecords parameter. This splits the results into smaller sets
with this value as the maximum size.",
+ "sourceType":
"org.apache.camel.component.salesforce.springboot.SalesforceComponentConfiguration"
+ },
+ {
"name": "camel.component.salesforce.not-found-behaviour",
"type": "org.apache.camel.component.salesforce.NotFoundBehaviour",
"description": "Sets the behaviour of 404 not found status received from
Salesforce API. Should the body be set to NULL NotFoundBehaviour#NULL or should
a exception be signaled on the exchange NotFoundBehaviour#EXCEPTION - the
default.",