Package org.apache.camel.component.salesforce.internal.dto

Examples of org.apache.camel.component.salesforce.internal.dto.QueryRecordsPushTopic


                throw new SalesforceException("API call timeout!", null);
            }
            if (callback.getException() != null) {
                throw callback.getException();
            }
            QueryRecordsPushTopic records = OBJECT_MAPPER.readValue(callback.getResponse(),
                    QueryRecordsPushTopic.class);
            if (records.getTotalSize() == 1) {

                PushTopic topic = records.getRecords().get(0);
                LOG.info("Found existing topic {}: {}", topicName, topic);

                // check if we need to update topic query, notifyForFields or notifyForOperations
                if (!query.equals(topic.getQuery())
                        || (config.getNotifyForFields() != null
View Full Code Here


            // remove the test record
            assertNull(template().requestBody("direct:deleteSObjectWithId", merchandise));

            // remove the test topic
            // find it using SOQL first
            QueryRecordsPushTopic records = template().requestBody("direct:query", null,
                QueryRecordsPushTopic.class);
            assertEquals("Test topic not found", 1, records.getTotalSize());
            assertNull(template().requestBody("direct:deleteSObject",
                records.getRecords().get(0)));

        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.component.salesforce.internal.dto.QueryRecordsPushTopic

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.