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 StringconvertServiceDefinitionModelToJson(String appDefinitionId)Returns theServiceDefinitionModelas a JSON string.ServiceDeploymentBuildercreateDeployment()Starts creating a new deploymentServiceDeploymentQuerycreateDeploymentQuery()Query deploymentsServiceDefinitionQuerycreateServiceDefinitionQuery()Query service definitionsvoiddeleteDeployment(String deploymentId)Deletes the given deployment.ServiceDeploymentdeploy(ServiceDeploymentBuilderImpl deploymentBuilder)List<String>getDeploymentResourceNames(String deploymentId)Retrieves a list of deployment resources for the given deployment, ordered alphabetically.InputStreamgetResourceAsStream(String deploymentId, String resourceName)Gives access to a deployment resource through a stream of bytes.ServiceDefinitiongetServiceDefinition(String appDefinitionId)Returns theServiceDefinitionincluding all service information like additional Properties (e.g.ServiceDefinitiongetServiceDefinitionByKey(String serviceDefinitionKey)Returns theServiceDefinitionincluding all service information like additional Properties (e.g.ServiceDefinitiongetServiceDefinitionByKeyAndTenantId(String serviceDefinitionKey, String tenantId)Returns theServiceDefinitionincluding all service information like additional Properties (e.g.ServiceDefinitionModelgetServiceDefinitionModel(String serviceDefinitionId)Returns theServiceDefinitionModelincluding all service model info.ServiceDefinitionModelgetServiceDefinitionModelByKey(String serviceDefinitionKey)Returns theServiceDefinitionModelincluding all service model info, using the service definition key and resolving the key to the latest version.ServiceDefinitionModelgetServiceDefinitionModelByKeyAndTenantId(String serviceDefinitionKey, String tenantId)Returns theServiceDefinitionModelincluding all service model info, using the service definition key and resolving the key to the latest version.ServiceDefinitionModelgetServiceDefinitionModelByReferenceKeyAndTenantId(String referenceKey, String tenantId)Returns theServiceDefinitionModelincluding 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:ServiceRegistryRepositoryServiceStarts creating a new deployment- Specified by:
createDeploymentin interfaceServiceRegistryRepositoryService
-
getDeploymentResourceNames
public List<String> getDeploymentResourceNames(String deploymentId)
Description copied from interface:ServiceRegistryRepositoryServiceRetrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNamesin interfaceServiceRegistryRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
getResourceAsStream
public InputStream getResourceAsStream(String deploymentId, String resourceName)
Description copied from interface:ServiceRegistryRepositoryServiceGives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStreamin 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:ServiceRegistryRepositoryServiceReturns theServiceDefinitionincluding all service information like additional Properties (e.g. documentation).- Specified by:
getServiceDefinitionin interfaceServiceRegistryRepositoryService
-
getServiceDefinitionByKey
public ServiceDefinition getServiceDefinitionByKey(String serviceDefinitionKey)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionincluding all service information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getServiceDefinitionByKeyin interfaceServiceRegistryRepositoryService
-
getServiceDefinitionByKeyAndTenantId
public ServiceDefinition getServiceDefinitionByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionincluding all service information like additional Properties (e.g. documentation). The latest version for the given key will be returned.- Specified by:
getServiceDefinitionByKeyAndTenantIdin interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModel
public ServiceDefinitionModel getServiceDefinitionModel(String serviceDefinitionId)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionModelincluding all service model info.- Specified by:
getServiceDefinitionModelin interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModelByKey
public ServiceDefinitionModel getServiceDefinitionModelByKey(String serviceDefinitionKey)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionModelincluding all service model info, using the service definition key and resolving the key to the latest version.- Specified by:
getServiceDefinitionModelByKeyin interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModelByKeyAndTenantId
public ServiceDefinitionModel getServiceDefinitionModelByKeyAndTenantId(String serviceDefinitionKey, String tenantId)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionModelincluding all service model info, using the service definition key and resolving the key to the latest version.- Specified by:
getServiceDefinitionModelByKeyAndTenantIdin interfaceServiceRegistryRepositoryService
-
getServiceDefinitionModelByReferenceKeyAndTenantId
public ServiceDefinitionModel getServiceDefinitionModelByReferenceKeyAndTenantId(String referenceKey, String tenantId)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionModelincluding all service model info, using the reference key and resolving the key to the latest version.- Specified by:
getServiceDefinitionModelByReferenceKeyAndTenantIdin interfaceServiceRegistryRepositoryService
-
convertServiceDefinitionModelToJson
public String convertServiceDefinitionModelToJson(String appDefinitionId)
Description copied from interface:ServiceRegistryRepositoryServiceReturns theServiceDefinitionModelas a JSON string.- Specified by:
convertServiceDefinitionModelToJsonin interfaceServiceRegistryRepositoryService
-
deleteDeployment
public void deleteDeployment(String deploymentId)
Description copied from interface:ServiceRegistryRepositoryServiceDeletes the given deployment.- Specified by:
deleteDeploymentin interfaceServiceRegistryRepositoryService- Parameters:
deploymentId- id of the deployment, cannot be null.
-
createDeploymentQuery
public ServiceDeploymentQuery createDeploymentQuery()
Description copied from interface:ServiceRegistryRepositoryServiceQuery deployments- Specified by:
createDeploymentQueryin interfaceServiceRegistryRepositoryService
-
createServiceDefinitionQuery
public ServiceDefinitionQuery createServiceDefinitionQuery()
Description copied from interface:ServiceRegistryRepositoryServiceQuery service definitions- Specified by:
createServiceDefinitionQueryin interfaceServiceRegistryRepositoryService
-
-