public class ConnectorService extends AbstractService
AbstractService.OutputStreamResponseExtractormapper, restTemplate, WAIT_BEFORE_RETRY_IN_MILLIS| Constructor and Description |
|---|
ConnectorService(org.springframework.web.client.RestTemplate restTemplate,
ProjectService projectService) |
| Modifier and Type | Method and Description |
|---|---|
Integration |
createIntegration(Project project,
ConnectorType connectorType,
Integration integration)
Create connector integration
|
Integration |
createIntegration(Project project,
Settings settings)
Create connector integration with given settings
|
FutureResult<ProcessStatus> |
executeProcess(Project project,
ProcessExecution execution)
Execute connector process
|
Integration |
getIntegration(Project project,
ConnectorType connectorType)
Retrieve connector integration
|
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)
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 <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 failsCopyright © 2017. All Rights Reserved.