public class ClassificationWorkflowNameResolver extends Object
| Constructor and Description |
|---|
ClassificationWorkflowNameResolver(com.github.cafdataprocessing.classification.service.client.ApiClient apiClient)
Create new instance of ClassificationWorkflowNameResolver using specified ApiClient.
|
| Modifier and Type | Method and Description |
|---|---|
void |
populateFromCreationResult(com.github.cafdataprocessing.classification.service.creation.created.CreationResult creationResult)
Populate map of classification workflow names to IDs using the Creation Result.
|
void |
populateWorkflowsFromApiCall(String projectId)
Populates the known mapping of workflow names to workflow IDs by querying the classification API for all existing workflows.
|
Long |
resolveFromWorkflowName(String workflowName)
Resolves provided classification workflow name to matching ID.
|
public ClassificationWorkflowNameResolver(com.github.cafdataprocessing.classification.service.client.ApiClient apiClient)
apiClient - Used to create a Workflow API to contact for resolution. If null passed then name resolution
via external API calls will not be possible.public void populateFromCreationResult(com.github.cafdataprocessing.classification.service.creation.created.CreationResult creationResult)
creationResult - Classification Workflow Creation Result to populate from.public void populateWorkflowsFromApiCall(String projectId) throws com.github.cafdataprocessing.classification.service.client.ApiException
projectId - Project ID to use in workflow requests.com.github.cafdataprocessing.classification.service.client.ApiException - Thrown if there is an error communicating with the API or if error response received from API.Copyright © 2015–2017 Hewlett Packard Enterprise Development LP. All rights reserved.