Interface TemplateRepositoryService
- All Known Implementing Classes:
TemplateRepositoryServiceImpl
public interface TemplateRepositoryService
-
Method Summary
Modifier and TypeMethodDescriptionStarts creating a new deploymentQuery deploymentsQuery template definitionsQuery template variation definitionsvoid
deleteDeployment
(String deploymentId) Deletes the given deployment.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.
-
Method Details
-
createDeployment
TemplateDeploymentBuilder createDeployment()Starts creating a new deployment -
getDeploymentResourceNames
Retrieves a list of deployment resources for the given deployment, ordered alphabetically.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
getResourceAsStream
Gives access to a deployment resource through a stream of bytes.- Parameters:
deploymentId
- id of the deployment, cannot be null.resourceName
- name of the resource, cannot be null.- Throws:
FlowableObjectNotFoundException
- when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
-
getTemplateDefinitionModel
Returns theTemplateModel
including all template model info. -
getLatestTemplateDefinitionModelByKey
Returns theTemplateModel
including all template model info. -
getLatestTemplateDefinitionModelByKeyAndTenantId
TemplateModel getLatestTemplateDefinitionModelByKeyAndTenantId(String templateDefinitionKey, String tenantId) Returns theTemplateModel
including all template model info. -
getTemplateDefinitionModelToJson
Returns theTemplateModel
as a JSON string. -
getTemplateVariationDefinitionModel
Returns theTemplateVariationModel
including all template model info. -
getTemplateVariationDefinitionModelToJson
Returns theTemplateVariationModel
as a JSON string. -
deleteDeployment
Deletes the given deployment.- Parameters:
deploymentId
- id of the deployment, cannot be null.
-
createDeploymentQuery
TemplateDeploymentQuery createDeploymentQuery()Query deployments -
createTemplateDefinitionQuery
TemplateDefinitionQuery createTemplateDefinitionQuery()Query template definitions -
createTemplateVariationDefinitionQuery
TemplateVariationDefinitionQuery createTemplateVariationDefinitionQuery()Query template variation definitions
-