public class ConnectorService extends AbstractService
AbstractService.OutputStreamResponseExtractormapper, restTemplate| Constructor and Description |
|---|
ConnectorService(org.springframework.web.client.RestTemplate restTemplate,
ProjectService projectService)
Deprecated.
use ConnectorService(RestTemplate, ProjectService, GoodDataSettings) constructor instead
|
ConnectorService(org.springframework.web.client.RestTemplate restTemplate,
ProjectService projectService,
GoodDataSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
CoupaInstance |
createCoupaInstance(Project project,
CoupaInstance instance)
Creates Coupa connector instance.
|
Integration |
createIntegration(Project project,
ConnectorType connectorType,
Integration integration)
Create connector integration
|
Integration |
createIntegration(Project project,
Settings settings)
Create connector integration with given settings
|
protected FutureResult<ProcessStatus> |
createProcessPollResult(String uri) |
FutureResult<ProcessStatus> |
executeProcess(Project project,
ProcessExecution execution)
Execute connector process
|
Collection<CoupaInstance> |
findCoupaInstances(Project project)
Returns collection of all existing Coupa instances
|
CoupaSettings |
getCoupaSettings(Project project)
Gets settings for coupa connector.
|
Integration |
getIntegration(Project project,
ConnectorType connectorType)
Retrieve connector integration
|
PardotSettings |
getPardotSettings(Project project)
Gets settings for pardot connector.
|
FutureResult<ProcessStatus> |
getProcessStatus(IntegrationProcessStatus process)
Gets status of provided connector process.
|
<T extends Settings> |
getSettings(Project project,
ConnectorType connectorType,
Class<T> settingsClass)
Get settings for given connector of given class.
|
Zendesk4Settings |
getZendesk4Settings(Project project)
Get settings for zendesk4 connector.
|
void |
updateIntegration(Project project,
ConnectorType connectorType,
Integration integration)
Update connector integration
|
void |
updateSettings(Project project,
Settings settings)
Update integration settings
|
extractDatapublic ConnectorService(org.springframework.web.client.RestTemplate restTemplate,
ProjectService projectService,
GoodDataSettings settings)
@Deprecated public ConnectorService(org.springframework.web.client.RestTemplate restTemplate, ProjectService projectService)
public Integration getIntegration(Project project, ConnectorType connectorType)
project - projectconnectorType - connector typeConnectorException - if integration can't be retrievedpublic Integration createIntegration(Project project, Settings settings)
project - projectsettings - integration settingsConnectorException - if integration can't be createdpublic Integration createIntegration(Project project, ConnectorType connectorType, Integration integration)
project - projectconnectorType - connector typeintegration - integrationConnectorException - if integration can't be createdpublic void updateIntegration(Project project, ConnectorType connectorType, Integration integration)
project - projectconnectorType - connector typeintegration - integrationConnectorException - if integration can't be updatedpublic Zendesk4Settings getZendesk4Settings(Project project)
project - projectpublic CoupaSettings getCoupaSettings(Project project)
project - projectpublic PardotSettings getPardotSettings(Project project)
project - projectpublic CoupaInstance createCoupaInstance(Project project, CoupaInstance instance)
project - projectinstance - instance with it's API URL, API key and namepublic Collection<CoupaInstance> findCoupaInstances(Project project)
project - projectpublic <T extends Settings> T getSettings(Project project, ConnectorType connectorType, Class<T> settingsClass)
T - type of fetched settingsproject - projectconnectorType - type of connector to fetch settings ofrsettingsClass - class of settings fetchedpublic void updateSettings(Project project, Settings settings)
project - projectsettings - integration settingsConnectorException - if settings can't be updatedpublic FutureResult<ProcessStatus> executeProcess(Project project, ProcessExecution execution)
project - projectexecution - process executionConnectorException - if process execution failspublic FutureResult<ProcessStatus> getProcessStatus(IntegrationProcessStatus process)
You can use process retrieved by getXXXProcess methods on Integration as well as a result of
executeProcess(Project, ProcessExecution).
process - process to be executedConnectorException - if process execution failsprotected FutureResult<ProcessStatus> createProcessPollResult(String uri)
Copyright © 2019. All rights reserved.