Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
CAMEL-12434: Future proof the Salesforce Limits API

Seems that we can't model the Limits as a map of Operation enum and

Usage DTO, as this makes it fragile if Salesforce renames or adds a

unsupported Operation. This makes the internal map type keyed by String

instead of the Operation enum to support those cases.

  1. … 2 more files in changeset.
CAMEL-12334: fix flaky test (2)

Change the timezone format in the test to match the formatter used in

the code.

CAMEL-12334: fix flaky test

Test was using timezone from local date and comparing it to a period

date in another offset due to DST.

CAMEL-12334: change defaults and add support fo...

...r OffsetTime

The new defaults when generating Salesforce DTOs are:

- java.time.ZonedDateTime for dateTime

- java.time.OffsetTime for time

- java.time.LocalDate for date

Even though some client code might break because of this change its easy

to use plugins `customTypes` parameter to use the old types.

  1. … 10 more files in changeset.
CAMEL-12334: unify date (de)serialization handling

This adds support for using any of the following date/time classes:

- java.util.Date

- java.time.Instant

- java.time.LocalDate

- java.time.ZonedDateTime

- java.time.OffsetDateTime

With this all usage of Jackson `ObjectMapper` and `XStream` instances

goes through the single utility method in `JsonUtils` or `XStreamUtils`

in order to register default serializers/deserializers/converters.

  1. … 33 more files in changeset.
CAMEL-12334: Mapped date to LocalDate and time to OffsetTime. Added properties to control the behavior

  1. … 9 more files in changeset.
CAMEL-12334: Mapped date to LocalDate and time to LocalTime

  1. … 12 more files in changeset.
CAMEL-12123: camel-salesforce - Http proxy supp...

...ort uses two inconsistent methods and is broken

To remain backward compatible both methods of configuring HTTP proxy

support in `camel-salesforce` are taken into account when configuring

the rest client.

  1. … 1 more file in changeset.
CAMEL-11637: Unable to assign null value to a S...

...alesforce object field

This adds endpoint and incoming message header parameter

`serializeNulls`, if set to `true` when using JSON data format `null`

values of data transfer objects will be serialized with the literal

`null` value.

For example, `Account` DTO with `description` field set to `null` will

be serialized as:

{

"name": "Acme",

...

"description": null,

...

}

  1. … 7 more files in changeset.
CAMEL-12085: Don't mandate header case for cust...

...om Salesforce HTTP haders

  1. … 1 more file in changeset.
CAMEL-11919: Fixes if headers not given as String[]

If headers on the incoming message intended to be sent to Salesforce are

not specified as a String array, they will not be set on the HTTP

request. This adds explicit conversion instead of relying on conversion

of the header value.

  1. … 1 more file in changeset.
CAMEL-11995: Salesforce Composite API support

Adds support for third Composite resource, now we can support Batch,

Tree and plain "Composite" resource. Composite resource allows

generating a request of up to 25 possibly chained requests. Chaining is

performed by using references so response from a previous request can be

used in the subsequent request.

Bulk of the work was contributed by Spiliopoulos, Vassilis (ELS-CON)

<v.spiliopoulos@elsevier.com>, this polishes and rebases on the current

master.

  1. … 16 more files in changeset.
CAMEL-11869: Upgrade mockito-core to 2.11.0 for camel-atmosphere-websocket, camel-salesforce-component and camel-script

  1. … 5 more files in changeset.
CAMEL-11919: Salesforce REST API request header...

...s not included in update,upsert,create and query operations

This allows setting Salesforce specific headers on the inbound Camel

message. Supported headers are those that start with `Sforce` or

`x-sfdc` and are need to be of a type that can be converted to a array

of String objects: either String, String[] or collection of String

objects.

Support has been added to set headers on all operations and it is up to

the client to set them in a manner that makes sense for the specific

operation and Salesforce object.

Correspondingly any response `Sforce` headers can now be retrieved from

the outbound message headers.

  1. … 22 more files in changeset.
CAMEL-11667: Support Metadata component extension

This simplifies and unifies the two modes of metadata gathering. Now if

`sObjectName` is specified a (very simple) JSON schema is returned

rather than custom JSON object.

  1. … 2 more files in changeset.
CAMEL-11667: Support Metadata component extension

Adds support for `MetaDataExtension` in the Salesforce component.

Currently two kinds of metadata are supported:

- listing Salesforce Object types

- listing fields of Salesforce object type

For Salesforce object types object name and label are returned and for

Salesforce object fields name and field type are returned.

New facade to use low level Salesforce RestClient was added

`SalesforceClientTemplate` intended to be used from extensions such as

this and the existing `ComponentVerifierExtension` was refactored to use

it.

  1. … 13 more files in changeset.
CAMEL-11629: Cleanup SalesforceComponentVerifie...

...rTest

Splits the SalesforceComponentVerifier test into integration

(connectivity) and unit test (parameter). The integration test now

relies on `LoginConfigHelper` that reads its configuration from

`salesforce-test-login.properties`.

    • -0
    • +137
    ./camel/component/salesforce/SalesforceComponentVerifierExtensionIntegrationTest.java
Fixes Checkstyle issues in Salesforce component

  1. … 1 more file in changeset.
CAMEL-10743: Fixed CS errors

  1. … 2 more files in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce Streaming API

  1. … 1 more file in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce Streaming API

  1. … 1 more file in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce REST APIs

    • -0
    • +240
    ./camel/component/salesforce/RawPayloadTest.java
  1. … 3 more files in changeset.
CAMEL-10743: Added support for rawPayload parameter in Salesforce REST APIs

    • -0
    • +240
    ./camel/component/salesforce/RawPayloadTest.java
  1. … 3 more files in changeset.
CAMEL-10744: Added utility APIs in Salesforce JsonUtils to generate JSON schema from SObjectDescription, added required modules to Karaf camel-salesforce feature

    • -0
    • +56
    ./camel/component/salesforce/api/utils/JsonUtilsTest.java
  1. … 4 more files in changeset.
CAMEL-10744: Added utility APIs in Salesforce JsonUtils to generate JSON schema from SObjectDescription, added required modules to Karaf camel-salesforce feature

    • -0
    • +56
    ./camel/component/salesforce/api/utils/JsonUtilsTest.java
  1. … 4 more files in changeset.
CAMEL-11550: Component extensions

    • -0
    • +183
    ./camel/component/salesforce/SalesforceComponentVerifierExtensionTest.java
  1. … 97 more files in changeset.
CAMEL-11402 Logic error in authentication type ...

...determination

This fixes the logic error and adds a test to confirm.

  1. … 1 more file in changeset.
CAMEL-11149: SPI - Allow to plugin different headers map implementation

  1. … 42 more files in changeset.
Code cleanup: removed unused imports

  1. … 43 more files in changeset.
CAMEL-11233 Allow overriding the setting of ins...

...tanceUrl

Added a new property `instanceUrl` to override Salesforce returned

value (`instance_url`).

  1. … 6 more files in changeset.