Class TemplateRepositoryServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<TemplateEngineConfiguration>
com.flowable.template.engine.impl.repository.TemplateRepositoryServiceImpl
- All Implemented Interfaces:
TemplateRepositoryService
public class TemplateRepositoryServiceImpl
extends CommonEngineServiceImpl<TemplateEngineConfiguration>
implements TemplateRepositoryService
- Author:
- Joram Barrez, Tijs Rademakers
-
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
ConstructorDescriptionTemplateRepositoryServiceImpl
(TemplateEngineConfiguration engineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionStarts creating a new deploymentQuery deploymentsQuery template definitionsQuery template variation definitionsvoid
deleteDeployment
(String deploymentId) Deletes the given deployment.deploy
(TemplateDeploymentBuilderImpl deploymentBuilder) getDeploymentResourceNames
(String deploymentId) Retrieves a list of deployment resources for the given deployment, ordered alphabetically.getLatestTemplateDefinitionModelByKey
(String templateDefinitionKey) Returns theTemplateModel
including all template model info.getLatestTemplateDefinitionModelByKeyAndTenantId
(String templateDefinitionKey, String tenantId) Returns theTemplateModel
including all template model info.getResourceAsStream
(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.getTemplateDefinitionModel
(String templateDefinitionId) Returns theTemplateModel
including all template model info.getTemplateDefinitionModelToJson
(String templateDefinitionKey) Returns theTemplateModel
as a JSON string.getTemplateVariationDefinitionModel
(String templateVariationDefinitionId) Returns theTemplateVariationModel
including all template model info.getTemplateVariationDefinitionModelToJson
(String templateVariationDefinitionId) Returns theTemplateVariationModel
as a JSON string.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 Details
-
TemplateRepositoryServiceImpl
-
-
Method Details
-
createDeployment
Description copied from interface:TemplateRepositoryService
Starts creating a new deployment- Specified by:
createDeployment
in interfaceTemplateRepositoryService
-
getDeploymentResourceNames
Description copied from interface:TemplateRepositoryService
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Specified by:
getDeploymentResourceNames
in interfaceTemplateRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Description copied from interface:TemplateRepositoryService
Gives access to a deployment resource through a stream of bytes.- Specified by:
getResourceAsStream
in interfaceTemplateRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.
-
deploy
-
getTemplateDefinitionModel
Description copied from interface:TemplateRepositoryService
Returns theTemplateModel
including all template model info.- Specified by:
getTemplateDefinitionModel
in interfaceTemplateRepositoryService
-
getLatestTemplateDefinitionModelByKey
Description copied from interface:TemplateRepositoryService
Returns theTemplateModel
including all template model info.- Specified by:
getLatestTemplateDefinitionModelByKey
in interfaceTemplateRepositoryService
-
getLatestTemplateDefinitionModelByKeyAndTenantId
public TemplateModel getLatestTemplateDefinitionModelByKeyAndTenantId(String templateDefinitionKey, String tenantId) Description copied from interface:TemplateRepositoryService
Returns theTemplateModel
including all template model info.- Specified by:
getLatestTemplateDefinitionModelByKeyAndTenantId
in interfaceTemplateRepositoryService
-
getTemplateDefinitionModelToJson
Description copied from interface:TemplateRepositoryService
Returns theTemplateModel
as a JSON string.- Specified by:
getTemplateDefinitionModelToJson
in interfaceTemplateRepositoryService
-
getTemplateVariationDefinitionModel
public TemplateVariationModel getTemplateVariationDefinitionModel(String templateVariationDefinitionId) Description copied from interface:TemplateRepositoryService
Returns theTemplateVariationModel
including all template model info.- Specified by:
getTemplateVariationDefinitionModel
in interfaceTemplateRepositoryService
-
getTemplateVariationDefinitionModelToJson
Description copied from interface:TemplateRepositoryService
Returns theTemplateVariationModel
as a JSON string.- Specified by:
getTemplateVariationDefinitionModelToJson
in interfaceTemplateRepositoryService
-
deleteDeployment
Description copied from interface:TemplateRepositoryService
Deletes the given deployment.- Specified by:
deleteDeployment
in interfaceTemplateRepositoryService
- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
Description copied from interface:TemplateRepositoryService
Query deployments- Specified by:
createDeploymentQuery
in interfaceTemplateRepositoryService
-
createTemplateDefinitionQuery
Description copied from interface:TemplateRepositoryService
Query template definitions- Specified by:
createTemplateDefinitionQuery
in interfaceTemplateRepositoryService
-
createTemplateVariationDefinitionQuery
Description copied from interface:TemplateRepositoryService
Query template variation definitions- Specified by:
createTemplateVariationDefinitionQuery
in interfaceTemplateRepositoryService
-