Interface TemplateRepositoryService
- All Known Implementing Classes:
TemplateRepositoryServiceImpl
public interface TemplateRepositoryService
-
Method Summary
Modifier and TypeMethodDescriptionStarts creating a new deploymentQuery deploymentsQuery template definitionsQuery template variation definitionsvoiddeleteDeployment(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 theTemplateModelincluding all template model info.getLatestTemplateDefinitionModelByKeyAndTenantId(String templateDefinitionKey, String tenantId) Returns theTemplateModelincluding all template model info.getResourceAsStream(String deploymentId, String resourceName) Gives access to a deployment resource through a stream of bytes.getTemplateDefinitionModel(String templateDefinitionId) Returns theTemplateModelincluding all template model info.getTemplateDefinitionModelToJson(String templateDefinitionKey) Returns theTemplateModelas a JSON string.getTemplateVariationDefinitionModel(String templateVariationDefinitionId) Returns theTemplateVariationModelincluding all template model info.getTemplateVariationDefinitionModelToJson(String templateVariationDefinitionId) Returns theTemplateVariationModelas 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 theTemplateModelincluding all template model info. -
getLatestTemplateDefinitionModelByKey
Returns theTemplateModelincluding all template model info. -
getLatestTemplateDefinitionModelByKeyAndTenantId
TemplateModel getLatestTemplateDefinitionModelByKeyAndTenantId(String templateDefinitionKey, String tenantId) Returns theTemplateModelincluding all template model info. -
getTemplateDefinitionModelToJson
Returns theTemplateModelas a JSON string. -
getTemplateVariationDefinitionModel
Returns theTemplateVariationModelincluding all template model info. -
getTemplateVariationDefinitionModelToJson
Returns theTemplateVariationModelas 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
-