Search in sources :

Example 1 with TemplateRepositoryInterface

use of io.kestra.core.repositories.TemplateRepositoryInterface in project kestra by kestra-io.

the class RestoreQueueService method templates.

public int templates(boolean noRecreate) {
    TemplateRepositoryInterface templateRepository = applicationContext.getBean(TemplateRepositoryInterface.class);
    List<Template> templates = new ArrayList<>(templateRepository.findAll());
    return this.send(templates, QueueFactoryInterface.TEMPLATE_NAMED, Template.class, noRecreate);
}
Also used : TemplateRepositoryInterface(io.kestra.core.repositories.TemplateRepositoryInterface) ArrayList(java.util.ArrayList) Template(io.kestra.core.models.templates.Template)

Aggregations

Template (io.kestra.core.models.templates.Template)1 TemplateRepositoryInterface (io.kestra.core.repositories.TemplateRepositoryInterface)1 ArrayList (java.util.ArrayList)1