Repository: camel Updated Branches: refs/heads/master 8c51cb9e9 -> f9fba78ce
Retrieve relevant fields to determine PushTopic update The check for changes in these fields was already in the code, but the field values were not retrieved through the Salesforce REST API. Signed-off-by: Sune Keller <abs...@almbrand.dk> Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f9fba78c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f9fba78c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f9fba78c Branch: refs/heads/master Commit: f9fba78ce600b0c7c81f27d87654cc73041ff3c5 Parents: 8c51cb9 Author: Sune Keller <abs...@almbrand.dk> Authored: Fri Jun 24 15:29:40 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Jun 25 09:12:05 2016 +0200 ---------------------------------------------------------------------- .../component/salesforce/internal/streaming/PushTopicHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/f9fba78c/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/PushTopicHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/PushTopicHelper.java b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/PushTopicHelper.java index f27ce56..3321b4f 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/PushTopicHelper.java +++ b/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/PushTopicHelper.java @@ -74,7 +74,9 @@ public class PushTopicHelper { try { // use SOQL to lookup Topic, since Name is not an external ID!!! restClient.query("SELECT Id, Name, Query, ApiVersion, IsActive, " - + "NotifyForFields, NotifyForOperations, Description " + + "NotifyForFields, NotifyForOperations, NotifyForOperationCreate, " + + "NotifyForOperationDelete, NotifyForOperationUndelete, " + + "NotifyForOperationUpdate, Description " + "FROM PushTopic WHERE Name = '" + topicName + "'", callback);