Interface TemplateRepositoryService

All Known Implementing Classes:
TemplateRepositoryServiceImpl

public interface TemplateRepositoryService
  • Method Details

    • createDeployment

      TemplateDeploymentBuilder createDeployment()
      Starts creating a new deployment
    • getDeploymentResourceNames

      List<String> getDeploymentResourceNames(String deploymentId)
      Retrieves a list of deployment resources for the given deployment, ordered alphabetically.
      Parameters:
      deploymentId - id of the deployment, cannot be null.
    • getResourceAsStream

      InputStream getResourceAsStream(String deploymentId, String resourceName)
      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

      TemplateModel getTemplateDefinitionModel(String templateDefinitionId)
      Returns the TemplateModel including all template model info.
    • getLatestTemplateDefinitionModelByKey

      TemplateModel getLatestTemplateDefinitionModelByKey(String templateDefinitionKey)
      Returns the TemplateModel including all template model info.
    • getLatestTemplateDefinitionModelByKeyAndTenantId

      TemplateModel getLatestTemplateDefinitionModelByKeyAndTenantId(String templateDefinitionKey, String tenantId)
      Returns the TemplateModel including all template model info.
    • getTemplateDefinitionModelToJson

      String getTemplateDefinitionModelToJson(String templateDefinitionKey)
      Returns the TemplateModel as a JSON string.
    • getTemplateVariationDefinitionModel

      TemplateVariationModel getTemplateVariationDefinitionModel(String templateVariationDefinitionId)
      Returns the TemplateVariationModel including all template model info.
    • getTemplateVariationDefinitionModelToJson

      String getTemplateVariationDefinitionModelToJson(String templateVariationDefinitionId)
      Returns the TemplateVariationModel as a JSON string.
    • deleteDeployment

      void deleteDeployment(String deploymentId)
      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