public class ServiceRegistryRepositoryServiceImpl extends CommonEngineServiceImpl<ServiceRegistryEngineConfiguration> implements ServiceRegistryRepositoryService
commandExecutor
configuration
Constructor and Description |
---|
ServiceRegistryRepositoryServiceImpl(ServiceRegistryEngineConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
String |
convertServiceDefinitionModelToJson(String appDefinitionId)
Returns the
ServiceDefinitionModel as a JSON string. |
ServiceDeploymentBuilder |
createDeployment()
Starts creating a new deployment
|
ServiceDeploymentQuery |
createDeploymentQuery()
Query deployments
|
ServiceDefinitionQuery |
createServiceDefinitionQuery()
Query service definitions
|
void |
deleteDeployment(String deploymentId)
Deletes the given deployment.
|
ServiceDeployment |
deploy(ServiceDeploymentBuilderImpl deploymentBuilder) |
List<String> |
getDeploymentResourceNames(String deploymentId)
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.
|
InputStream |
getResourceAsStream(String deploymentId,
String resourceName)
Gives access to a deployment resource through a stream of bytes.
|
ServiceDefinition |
getServiceDefinition(String appDefinitionId)
Returns the
ServiceDefinition including all service information like additional Properties (e.g. |
ServiceDefinition |
getServiceDefinitionByKey(String serviceDefinitionKey)
Returns the
ServiceDefinition including all service information like additional Properties (e.g. |
ServiceDefinition |
getServiceDefinitionByKeyAndTenantId(String serviceDefinitionKey,
String tenantId)
Returns the
ServiceDefinition including all service information like additional Properties (e.g. |
ServiceDefinitionModel |
getServiceDefinitionModel(String serviceDefinitionId)
Returns the
ServiceDefinitionModel including all service model info. |
ServiceDefinitionModel |
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 |
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 |
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. |
getCommandExecutor, setCommandExecutor
getConfiguration
public ServiceRegistryRepositoryServiceImpl(ServiceRegistryEngineConfiguration configuration)
public ServiceDeploymentBuilder createDeployment()
ServiceRegistryRepositoryService
createDeployment
in interface ServiceRegistryRepositoryService
public List<String> getDeploymentResourceNames(String deploymentId)
ServiceRegistryRepositoryService
getDeploymentResourceNames
in interface ServiceRegistryRepositoryService
deploymentId
- id of the deployment, cannot be null.public InputStream getResourceAsStream(String deploymentId, String resourceName)
ServiceRegistryRepositoryService
getResourceAsStream
in interface ServiceRegistryRepositoryService
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.public ServiceDeployment deploy(ServiceDeploymentBuilderImpl deploymentBuilder)
public ServiceDefinition getServiceDefinition(String appDefinitionId)
ServiceRegistryRepositoryService
ServiceDefinition
including all service information like additional Properties (e.g. documentation).getServiceDefinition
in interface ServiceRegistryRepositoryService
public ServiceDefinition getServiceDefinitionByKey(String serviceDefinitionKey)
ServiceRegistryRepositoryService
ServiceDefinition
including all service information like additional Properties (e.g. documentation).
The latest version for the given key will be returned.getServiceDefinitionByKey
in interface ServiceRegistryRepositoryService
public ServiceDefinition getServiceDefinitionByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
ServiceRegistryRepositoryService
ServiceDefinition
including all service information like additional Properties (e.g. documentation).
The latest version for the given key will be returned.getServiceDefinitionByKeyAndTenantId
in interface ServiceRegistryRepositoryService
public ServiceDefinitionModel getServiceDefinitionModel(String serviceDefinitionId)
ServiceRegistryRepositoryService
ServiceDefinitionModel
including all service model info.getServiceDefinitionModel
in interface ServiceRegistryRepositoryService
public ServiceDefinitionModel getServiceDefinitionModelByKey(String serviceDefinitionKey)
ServiceRegistryRepositoryService
ServiceDefinitionModel
including all service model info,
using the service definition key and resolving the key to the latest version.getServiceDefinitionModelByKey
in interface ServiceRegistryRepositoryService
public ServiceDefinitionModel getServiceDefinitionModelByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
ServiceRegistryRepositoryService
ServiceDefinitionModel
including all service model info,
using the service definition key and resolving the key to the latest version.getServiceDefinitionModelByKeyAndTenantId
in interface ServiceRegistryRepositoryService
public ServiceDefinitionModel getServiceDefinitionModelByReferenceKeyAndTenantId(String referenceKey, String tenantId)
ServiceRegistryRepositoryService
ServiceDefinitionModel
including all service model info,
using the reference key and resolving the key to the latest version.getServiceDefinitionModelByReferenceKeyAndTenantId
in interface ServiceRegistryRepositoryService
public String convertServiceDefinitionModelToJson(String appDefinitionId)
ServiceRegistryRepositoryService
ServiceDefinitionModel
as a JSON string.convertServiceDefinitionModelToJson
in interface ServiceRegistryRepositoryService
public void deleteDeployment(String deploymentId)
ServiceRegistryRepositoryService
deleteDeployment
in interface ServiceRegistryRepositoryService
deploymentId
- id of the deployment, cannot be null.public ServiceDeploymentQuery createDeploymentQuery()
ServiceRegistryRepositoryService
createDeploymentQuery
in interface ServiceRegistryRepositoryService
public ServiceDefinitionQuery createServiceDefinitionQuery()
ServiceRegistryRepositoryService
createServiceDefinitionQuery
in interface ServiceRegistryRepositoryService