Modifier and Type | Method and Description |
---|---|
ServiceDefinitionModel |
DataObjectOperations.getServiceDefinitionModel(DataObjectDefinition dataObjectDefinition) |
Modifier and Type | Method and Description |
---|---|
void |
ServiceInvokerInterceptor.afterServiceInvocation(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext context,
ServiceInvocationResult result) |
void |
ServiceInvokerInterceptor.beforeServiceInvocation(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
Modifier and Type | Method and Description |
---|---|
ServiceDefinitionModel |
ServiceResourceConverter.convertServiceResourceToModel(byte[] serviceResourceBytes) |
ServiceDefinitionModel |
ServiceResourceConverter.convertServiceResourceToModel(InputStream serviceResourceStream) |
ServiceDefinitionModel |
ServiceRegistryRepositoryService.getServiceDefinitionModel(String serviceDefinitionId)
Returns the
ServiceDefinitionModel including all service model info. |
ServiceDefinitionModel |
ServiceRegistryRepositoryService.getServiceDefinitionModelByKey(String serviceDefinitionKey)
Returns the
ServiceDefinitionModel including all service model info,
using the service definition key and resolving the key to the latest version. |
ServiceDefinitionModel |
ServiceRegistryRepositoryService.getServiceDefinitionModelByKeyAndTenantId(String serviceDefinitionKey,
String tenantId)
Returns the
ServiceDefinitionModel including all service model info,
using the service definition key and resolving the key to the latest version. |
ServiceDefinitionModel |
ServiceRegistryRepositoryService.getServiceDefinitionModelByReferenceKeyAndTenantId(String referenceKey,
String tenantId)
Returns the
ServiceDefinitionModel including all service model info,
using the reference key and resolving the key to the latest version. |
Modifier and Type | Method and Description |
---|---|
String |
ServiceResourceConverter.convertServiceDefinitionModelToJson(ServiceDefinitionModel serviceDefinitionModel) |
Modifier and Type | Method and Description |
---|---|
ServiceDefinitionModel |
ServiceRegistryRepositoryServiceImpl.getServiceDefinitionModel(String serviceDefinitionId) |
ServiceDefinitionModel |
ServiceRegistryRepositoryServiceImpl.getServiceDefinitionModelByKey(String serviceDefinitionKey) |
ServiceDefinitionModel |
ServiceRegistryRepositoryServiceImpl.getServiceDefinitionModelByKeyAndTenantId(String serviceDefinitionKey,
String tenantId) |
ServiceDefinitionModel |
ServiceRegistryRepositoryServiceImpl.getServiceDefinitionModelByReferenceKeyAndTenantId(String referenceKey,
String tenantId) |
Modifier and Type | Method and Description |
---|---|
ServiceInvocationResponse |
ServiceInvoker.invoke(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext) |
List<ServiceInvocationResponse> |
ServiceInvoker.invokeList(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext) |
Modifier and Type | Method and Description |
---|---|
ServiceDefinitionModel |
GetServiceDefinitionModelCmd.execute(CommandContext commandContext) |
ServiceDefinitionModel |
GetServiceDefinitionModelByReferenceCmd.execute(CommandContext commandContext) |
protected ServiceDefinitionModel |
InvokeServiceCmd.getServiceDefinitionModel(ServiceDefinitionEntity serviceDefinition,
CommandContext commandContext) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
InvokeServiceCmd.createValidateAndCompleteServiceInvocationInputDataMap(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ExpressionManager expressionManager)
Creates, validates and completes the service invocation data according the input parameter definition of the service.
|
protected Object |
InvokeServiceCmd.getLookupId(ServiceDefinitionModel serviceDefinitionModel,
ServiceInvocationResponse invocationResponse,
Map<String,Object> resultMap,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Search for the lookup id value in the response according the mapping in the service definition and do proper handling of the response type (e.g.
|
protected ServiceInvoker |
InvokeServiceCmd.getServiceInvoker(ServiceDefinitionModel serviceDefinitionModel,
CommandContext commandContext) |
protected ServiceOperation |
InvokeServiceCmd.getServiceOperation(ServiceDefinitionModel serviceDefinitionModel) |
protected Map<String,Object> |
InvokeServiceCmd.handleOutputParameterValues(Object invocationResponse,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext context,
ExpressionManager expressionManager,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Verifies and handles output values according the output paramter definition of the service (specially missing and null-value output).
|
protected ServiceInvocationResultResponse |
InvokeServiceCmd.handleServiceInvocationResponse(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvoker serviceInvoker,
ServiceInvocationContextImpl context,
ExpressionManager expressionManager,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ServiceInvocationResponse invocationResponse) |
protected ServiceInvocationResultResponse |
InvokeSingleServiceCmd.invoke(ServiceInvoker serviceInvoker,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContextImpl context,
CommandContext commandContext) |
protected abstract T |
InvokeServiceCmd.invoke(ServiceInvoker serviceInvoker,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContextImpl context,
CommandContext commandContext) |
protected List<ServiceInvocationResultResponse> |
InvokeListServiceCmd.invoke(ServiceInvoker serviceInvoker,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContextImpl context,
CommandContext commandContext) |
protected T |
InvokeServiceCmd.invokeService(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvoker serviceInvoker,
ServiceInvocationContextImpl context,
CommandContext commandContext) |
protected void |
InvokeServiceCmd.processAndValidateInputParameter(ServiceDefinitionModel serviceDefinitionModel,
ServiceInputParameter inputParameter,
Map<String,Object> serviceInvocationInputData,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ExpressionManager expressionManager)
Internal method to process a single input parameter by looking at its definition and checking its value.
|
Modifier and Type | Method and Description |
---|---|
ServiceDefinitionModel |
ServiceResourceConverterImpl.convertServiceResourceToModel(byte[] appResourceBytes) |
ServiceDefinitionModel |
ServiceResourceConverterImpl.convertServiceResourceToModel(InputStream appResourceStream) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,ColumnMapping> |
ServiceResourceConverterImpl.columnMappingsByName(ServiceDefinitionModel model) |
String |
ServiceResourceConverterImpl.convertServiceDefinitionModelToJson(ServiceDefinitionModel serviceDefinitionModel) |
protected ServiceDefinitionEntity |
ServiceDefinitionDeployer.getMostRecentVersionOfServiceDefinition(ServiceDefinitionModel serviceDefinitionModel,
String tenantId) |
protected void |
ServiceDefinitionDeployer.updateCachingAndArtifacts(ServiceDefinitionEntity serviceDefinition,
ServiceDefinitionModel serviceResourceModel,
ServiceDeploymentEntity deployment) |
Modifier and Type | Method and Description |
---|---|
protected void |
ExpressionInvoker.completeInputParameter(ServiceDefinitionModel serviceDefinitionModel,
ServiceInputParameter inputParameter,
ServiceInvocationVariablesContainer serviceInvocationVariablesContainer)
Internal method to process a single input parameter by looking at its definition and checking its value and adding null values for missing input
parameter values in the data map.
|
protected Object |
ExpressionInvoker.executeExpressionAndGetResult(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
ServiceInvocationResponse |
ExpressionInvoker.invoke(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
List<ServiceInvocationResponse> |
ExpressionInvoker.invokeList(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.JsonNode |
RestServiceInvoker.applyOutputPathIfApplicable(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
com.fasterxml.jackson.databind.JsonNode resultJsonNode) |
protected void |
RestServiceInvoker.configureRequest(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
HttpRequest request,
ServiceInvocationVariablesContainer variablesContainer) |
protected org.apache.http.impl.client.HttpClientBuilder |
RestServiceInvoker.createHttpClientBuilder(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
protected String |
RestServiceInvoker.encodeBasicAuth(String username,
String password,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation) |
void |
RestServiceInvokerEnhancer.enhanceHttpClientBuilder(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext,
org.apache.http.impl.client.HttpClientBuilder httpClientBuilder) |
void |
RestServiceInvokerEnhancer.enhanceHttpRequest(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext,
org.apache.http.client.methods.HttpRequestBase httpRequestBase) |
void |
RestServiceInvokerEnhancer.enhanceHttpResponse(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext,
org.apache.http.HttpResponse httpResponse) |
void |
RestServiceInvokerEnhancer.enhanceJsonResponse(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext,
com.fasterxml.jackson.databind.JsonNode jsonResponse) |
HttpResponse |
RestServiceInvoker.execute(HttpRequest request,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
protected RestServiceAuthorization |
RestServiceInvoker.getAuthorization(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation) |
protected String |
RestServiceInvoker.getBody(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ExpressionManager expressionManager,
ServiceInvocationVariablesContainer serviceInvocationVariablesContainer) |
protected String |
RestServiceInvoker.getUrl(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation) |
RestServiceInvocationResponse |
RestServiceInvoker.invoke(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext context) |
List<ServiceInvocationResponse> |
RestServiceInvoker.invokeList(ServiceDefinitionModel serviceDefinition,
ServiceOperation serviceOperation,
ServiceInvocationContext serviceInvocationContext) |
protected boolean |
RestServiceInvoker.lookupBooleanProperty(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
String field,
boolean defaultValue) |
protected MultiValueMap<String,String> |
RestServiceInvoker.lookupHeaders(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation) |
protected int |
RestServiceInvoker.lookupIntegerProperty(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
String field,
int defaultValue) |
protected String |
RestServiceInvoker.lookupStringProperty(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
String field,
String defaultValue) |
HttpResponse |
RestServiceInvoker.perform(org.apache.http.impl.client.CloseableHttpClient client,
ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvocationContext context,
HttpRequest httpRequest) |
Modifier and Type | Field and Description |
---|---|
protected ServiceDefinitionModel |
ServiceDefinitionCacheEntry.serviceDefinitionModel |
Modifier and Type | Method and Description |
---|---|
ServiceDefinitionModel |
ServiceDefinitionCacheEntry.getServiceDefinitionModel() |
Modifier and Type | Method and Description |
---|---|
void |
ServiceDefinitionCacheEntry.setServiceDefinitionModel(ServiceDefinitionModel serviceDefinitionModel) |
Constructor and Description |
---|
ServiceDefinitionCacheEntry(ServiceDefinitionEntity serviceDefinitionEntity,
ServiceDefinitionModel serviceDefinitionModel) |
Modifier and Type | Class and Description |
---|---|
class |
BaseServiceDefinitionModel |
Modifier and Type | Method and Description |
---|---|
static Collection<ServiceInputParameter> |
ServiceParameterUtil.extractServiceInputParameters(ServiceDefinitionModel model,
ServiceOperation operation) |
static Collection<ServiceOutputParameter> |
ServiceParameterUtil.extractServiceOutputParameters(ServiceDefinitionModel model,
ServiceOperation operation) |