Class ServiceRegistryRepositoryServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<ServiceRegistryEngineConfiguration>
-
- com.flowable.serviceregistry.engine.ServiceRegistryRepositoryServiceImpl
-
- All Implemented Interfaces:
ServiceRegistryRepositoryService
public class ServiceRegistryRepositoryServiceImpl extends CommonEngineServiceImpl<ServiceRegistryEngineConfiguration> implements ServiceRegistryRepositoryService
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistryRepositoryServiceImpl(ServiceRegistryEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
convertServiceDefinitionModelToJson(String appDefinitionId)
Returns theServiceDefinitionModel
as a JSON string.ServiceDeploymentBuilder
createDeployment()
Starts creating a new deploymentServiceDeploymentQuery
createDeploymentQuery()
Query deploymentsServiceDefinitionQuery
createServiceDefinitionQuery()
Query service definitionsvoid
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 theServiceDefinition
including all service information like additional Properties (e.g.ServiceDefinition
getServiceDefinitionByKey(String serviceDefinitionKey)
Returns theServiceDefinition
including all service information like additional Properties (e.g.ServiceDefinition
getServiceDefinitionByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
Returns theServiceDefinition
including all service information like additional Properties (e.g.ServiceDefinitionModel
getServiceDefinitionModel(String serviceDefinitionId)
Returns theServiceDefinitionModel
including all service model info.ServiceDefinitionModel
getServiceDefinitionModelByKey(String serviceDefinitionKey)
Returns theServiceDefinitionModel
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 theServiceDefinitionModel
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 theServiceDefinitionModel
including all service model info, using the reference key and resolving the key to the latest version.-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Constructor Detail
-
ServiceRegistryRepositoryServiceImpl
public ServiceRegistryRepositoryServiceImpl(ServiceRegistryEngineConfiguration configuration)
-
-
Method Detail
-
createDeployment
public ServiceDeploymentBuilder createDeployment()
Description copied from interface:ServiceRegistryRepositoryService
Starts creating a new deployment- Specified by:
createDeployment
in interfaceServiceRegistryRepositoryService
-
getDeploymentResourceNames
public List<String> getDeploymentResourceNames(String deploymentId)
Description copied from interface:ServiceRegistryRepositoryService
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNames
in interfaceServiceRegistryRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
public InputStream getResourceAsStream(String deploymentId, String resourceName)
Description copied from interface:ServiceRegistryRepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStream
in interfaceServiceRegistryRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.
-
deploy
public ServiceDeployment deploy(ServiceDeploymentBuilderImpl deploymentBuilder)
-
getServiceDefinition
public ServiceDefinition getServiceDefinition(String appDefinitionId)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinition
including all service information like additional Properties (e.g. documentation).- Specified by:
getServiceDefinition
in interfaceServiceRegistryRepositoryService
-
getServiceDefinitionByKey
public ServiceDefinition getServiceDefinitionByKey(String serviceDefinitionKey)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinition
including all service information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getServiceDefinitionByKey
in interfaceServiceRegistryRepositoryService
-
getServiceDefinitionByKeyAndTenantId
public ServiceDefinition getServiceDefinitionByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinition
including all service information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getServiceDefinitionByKeyAndTenantId
in interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModel
public ServiceDefinitionModel getServiceDefinitionModel(String serviceDefinitionId)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinitionModel
including all service model info.- Specified by:
getServiceDefinitionModel
in interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModelByKey
public ServiceDefinitionModel getServiceDefinitionModelByKey(String serviceDefinitionKey)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinitionModel
including all service model info, using the service definition key and resolving the key to the latest version.- Specified by:
getServiceDefinitionModelByKey
in interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModelByKeyAndTenantId
public ServiceDefinitionModel getServiceDefinitionModelByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinitionModel
including all service model info, using the service definition key and resolving the key to the latest version.- Specified by:
getServiceDefinitionModelByKeyAndTenantId
in interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModelByReferenceKeyAndTenantId
public ServiceDefinitionModel getServiceDefinitionModelByReferenceKeyAndTenantId(String referenceKey, String tenantId)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinitionModel
including all service model info, using the reference key and resolving the key to the latest version.- Specified by:
getServiceDefinitionModelByReferenceKeyAndTenantId
in interfaceServiceRegistryRepositoryService
-
convertServiceDefinitionModelToJson
public String convertServiceDefinitionModelToJson(String appDefinitionId)
Description copied from interface:ServiceRegistryRepositoryService
Returns theServiceDefinitionModel
as a JSON string.- Specified by:
convertServiceDefinitionModelToJson
in interfaceServiceRegistryRepositoryService
-
deleteDeployment
public void deleteDeployment(String deploymentId)
Description copied from interface:ServiceRegistryRepositoryService
Deletes the given deployment.- Specified by:
deleteDeployment
in interfaceServiceRegistryRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
public ServiceDeploymentQuery createDeploymentQuery()
Description copied from interface:ServiceRegistryRepositoryService
Query deployments- Specified by:
createDeploymentQuery
in interfaceServiceRegistryRepositoryService
-
createServiceDefinitionQuery
public ServiceDefinitionQuery createServiceDefinitionQuery()
Description copied from interface:ServiceRegistryRepositoryService
Query service definitions- Specified by:
createServiceDefinitionQuery
in interfaceServiceRegistryRepositoryService
-
-