| java.lang.Object | |
| ↳ | org.mule.module.servicesource.ServiceSourceConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
ServiceSource Cloud Connector. The ServiceSource Connector will allow to use the ServiceSource REST API. Almost every operation that can be done via the API can be done through this connector.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| analysisResource | |||||||||||
| analysisUrl | The relative URL where the analysis API calls are made | ||||||||||
| apiClient | |||||||||||
| apiResource | |||||||||||
| apiUrl | The relative URL where the main API calls are made. | ||||||||||
| client | Jersey Client | ||||||||||
| connectTimeout | The connect timeout interval, in milliseconds | ||||||||||
| coockie | |||||||||||
| csrfToken | CSRF Token | ||||||||||
| logger | |||||||||||
| loginUrl | The relative url of the endpoint that handles login | ||||||||||
| lookupKeyCache | |||||||||||
| modelsMetadata | |||||||||||
| password | Application password | ||||||||||
| readTimeout | The read timeout interval, in milliseconds | ||||||||||
| server | URL of the ServiceSource server API | ||||||||||
| tenantName | Name of the tenant | ||||||||||
| username | Application username | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method allows searching on the analysis API.
| |||||||||||
This processor must be invoked to indicatethat the data load job has completed.
| |||||||||||
Connect
| |||||||||||
Connection Identifier
| |||||||||||
Generic method to create entities in dynamic collections
| |||||||||||
Creates new address
| |||||||||||
Creates a new Asset
| |||||||||||
Creates a new Booking
| |||||||||||
Creates new contact
| |||||||||||
Creates a new forecast
| |||||||||||
Creates a new lookup
| |||||||||||
Creates a new note
| |||||||||||
Creates new offer
| |||||||||||
Creates a new opportunity
| |||||||||||
Creates a new Product
| |||||||||||
Creates a new Quote
| |||||||||||
Creates a new Task
| |||||||||||
Removes the object from the collection, permitting reference checks.
| |||||||||||
Disconnect
| |||||||||||
Generic method to create entities dynamicly using DataSense.
| |||||||||||
Pushes data through the load API.
| |||||||||||
Export a collection.
| |||||||||||
This method initiates the ServiceSource client and gson
| |||||||||||
Executes a method on the object of a collection.
| |||||||||||
Invoke Static Method
Executes a static method on the collection.
| |||||||||||
Are we connected
| |||||||||||
Pushes data through the load API.
| |||||||||||
Consumes the lookups config API looking for a lookup for the given connection on the given propertyPath.
| |||||||||||
This method provides basic search capabilities through a collection by providing a mongo formatted query.
| |||||||||||
Generic method to read entities from dynamic collections
| |||||||||||
Fetches the address identified by the object id.
| |||||||||||
Fetches the Asset identified by the object id.
| |||||||||||
Fetches the Booking identified by the object id.
| |||||||||||
Fetches the contact identified by the object id.
| |||||||||||
Fetches the forecast identified by the object id.
| |||||||||||
Fetches the note identified by the object id.
| |||||||||||
Fetches the offer identified by the object id.
| |||||||||||
Fetches the opportunity identified by the object id.
| |||||||||||
Fetches the Product identified by the object id.
| |||||||||||
Fetches the Quote identified by the object id.
| |||||||||||
Fetches the Task identified by the object id.
| |||||||||||
This method provides search capabilities by specifying filters through a map.
| |||||||||||
Starts a Data Load by creating an entry in the data load collection.
| |||||||||||
Generic method to update entities from dynamic collections
| |||||||||||
Updates an address
| |||||||||||
Updates an Asset
| |||||||||||
Updates a Booking
| |||||||||||
Updates a given contact
| |||||||||||
Updates a forecast
| |||||||||||
Updates a given note
| |||||||||||
Updates an offer
| |||||||||||
Updates an opportunity
| |||||||||||
Updates a Product
| |||||||||||
Updates a Quote
| |||||||||||
Updates a Task
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The relative URL where the analysis API calls are made
The relative URL where the main API calls are made.
Jersey Client
The connect timeout interval, in milliseconds
CSRF Token
The relative url of the endpoint that handles login
Application password
The read timeout interval, in milliseconds
URL of the ServiceSource server API
Name of the tenant
Application username
This method allows searching on the analysis API.
| collection | The collection to query |
|---|---|
| filters | Map that includes filters |
AnalysisObject
This processor must be invoked to indicatethat the data load job has completed. This call must be made after all the in-progress load calls complete. The done API can optionally contain summary statistics about the loaded data organized by input source.
| request | An instance of DataLoadCompleteRequest with the comple data load request data |
|---|---|
| dataLoadJobId | The id of the data load job. |
Connect
| username | Application username |
|---|---|
| password | Application password |
| server | URL of the SRPS server API |
| tenantName | Name of the tenant |
| ConnectionException | . |
|---|
Connection Identifier
Generic method to create entities in dynamic collections
| collection | A member of the ServiceSourceCollection enum representing the collection that owns the entity |
|---|---|
| entity | A subclass instance of ServiceSourceEntity |
ServiceSourceEntity with the created entity
Creates a new Asset
| asset | A org.mule.module.servicesource.model.Asset |
|---|
Creates a new Booking
| booking | A org.mule.module.servicesource.model.Booking |
|---|
Creates a new opportunity
| opportunity | A Opportunity |
|---|
Opportunity representing the newly created opportunity
Creates a new Product
| product | A org.mule.module.servicesource.model.Product |
|---|
Creates a new Quote
| quote | A org.mule.module.servicesource.model.Quote |
|---|
Creates a new Task
| task | A org.mule.module.servicesource.model.Task |
|---|
Removes the object from the collection, permitting reference checks.
| collection | The name of the collection |
|---|---|
| objectId | Id of the object to delete. |
Disconnect
Generic method to create entities dynamicly using DataSense. This method used a Map to represent entities instead of pojos.
| collection | A String representation of a ServiceSource collection. For example: app.offers |
|---|---|
| entity | A Map representing the entity |
Pushes data through the load API. The ID of the data load job must be included as input. Each invocation of the load API provides data for a single collection and parallel calls can be made to push data to multiple collections. The object content can be deduced from the data dictionary, metadata API or by fetching a pre-existing object using the object fetch API. Unlike its load-data counterpart, this version of the processor takes maps instead of pojos and includes support for DataSense.
| collection | A member of the ServiceSourceCollection enum representing the collection that owns the entities |
|---|---|
| objects | A list with instances of ServiceSourceEntity all belonging to the same collection |
| dataLoadJobId | The id of the data load job. |
| incremental | If true performs an incremental load and the data may already exist and should be updated if it does rather than just added |
Export a collection. You can optionally specify the columns you want to export and whether or not to use streaming
| collection | The collection to query |
|---|---|
| streaming | Wether or not use streaming |
| columns | List of string specifying the columns to return |
ServiceSourceEntity
| key |
|---|
| Exception |
|---|
| Exception |
|---|
This method initiates the ServiceSource client and gson
| MuleException |
|---|
Executes a method on the object of a collection.
| collection | The collection the object belongs to |
|---|---|
| objectId | Id of the object. |
| method | The object method to be invoked. |
| parameters | The parameters for the specified method. |
Invoke Static Method Executes a static method on the collection. These methods can perform actions across multiple objects.
| collection | The name of the collection |
|---|---|
| method | The static method to be invoked. |
| parameters | The parameters for the specified method. |
Are we connected
Pushes data through the load API. The ID of the data load job must be included as input. Each invocation of the load API provides data for a single collection and parallel calls can be made to push data to multiple collections. The object content can be deduced from the data dictionary, metadata API or by fetching a pre-existing object using the object fetch API.
| objects | A list with instances of ServiceSourceEntity all belonging to the same collection |
|---|---|
| collection | A member of the ServiceSourceCollection enum representing the collection that owns the entities |
| dataLoadJobId | The id of the data load job. |
| incremental | If true performs an incremental load and the data may already exist and should be updated if it does rather than just added |
ServiceSourceEntity which represent the inserted objects
Consumes the lookups config API looking for a lookup for the given connection on the given propertyPath. If found, then the name of a lookup matching the displayName is returned
| collectionName | The name of collection that the lookup referes to |
|---|---|
| propertyPath | The property path of the lookup vlaue |
| displayName | The displayName being looked up |
This method provides basic search capabilities through a collection by providing a mongo formatted query. Take in count that the query is sent as a query param so per http protocol limitations there's a limit on the amount of characters that it can have. To post large filters use search instead.
| collection | The collection to query |
|---|---|
| query | A mongo formatted query |
ServiceSourceEntity
Generic method to read entities from dynamic collections
| collection | A member of the ServiceSourceCollection enum representing the collection that owns the entity |
|---|---|
| objectId | The id of the entity you want to get |
ServiceSourceEntity with the created entity
Fetches the address identified by the object id.
| objectId | Id of the object to read. |
|---|
Address
Fetches the Asset identified by the object id.
| objectId | Id of the object to read. |
|---|
Fetches the Booking identified by the object id.
| objectId | Id of the object to read. |
|---|
Fetches the contact identified by the object id.
| objectId | Id of the object to read. |
|---|
Contact
Fetches the forecast identified by the object id.
| objectId | Id of the object to read. |
|---|
Forecast
Fetches the note identified by the object id.
| objectId | Id of the object to read. |
|---|
Note
Fetches the offer identified by the object id.
| objectId | Id of the object to read. |
|---|
Offer
Fetches the opportunity identified by the object id.
| objectId | Id of the object to read. |
|---|
Opportunity
Fetches the Product identified by the object id.
| objectId | Id of the object to read. |
|---|
Fetches the Quote identified by the object id.
| objectId | Id of the object to read. |
|---|
Fetches the Task identified by the object id.
| objectId | Id of the object to read. |
|---|
This method provides search capabilities by specifying filters through a map. The advantage of using this processor over query is that you can now use a map to visually add the filters and you don't risk exceeding the max length of the query params since the filters are sent as a post.
| collection | The collection to query |
|---|---|
| filters | Map that includes filters |
| streaming | Wheter or not to do streaming |
| columns | An optional list of columns to return. Use this to only return the fields you're interested while reducing network traffic |
| limit | The max number of results to return. If you want to have no limit then pass -1 |
ServiceSourceEntity
| analysisUrl |
|---|
| apiUrl |
|---|
| connectTimeout |
|---|
| csrfToken |
|---|
| loginUrl |
|---|
| password |
|---|
| readTimeout |
|---|
| server |
|---|
| tenantName |
|---|
| username |
|---|
Starts a Data Load by creating an entry in the data load collection. The returned data load object contains an id field and the content of this field must be used in the load and done API call URLs.
| jobName | The name of the data load job you want to start |
|---|---|
| dataLoadConfigId | The id of the data load configuration that this job references to |
| displayName | A friendly name for the generated job |
DataLoad which represents the created DataLoad object.
It also includes the id you need to provide later on.
Generic method to update entities from dynamic collections
| collection | A member of the ServiceSourceCollection enum representing the collection that owns the entity |
|---|---|
| objectId | The id of the entity you want to get |
| entity | A subclass instance of ServiceSourceEntity with the entitie's new state |
ServiceSourceEntity with the created entity
Updates an opportunity
| objectId | Id of the object to update. |
|---|---|
| opportunity | The new state of the note as an instance of Opportunity |
Opportunity