@Service public class TemplateExtractor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOAD_PART_PATTERN |
| Constructor and Description |
|---|
TemplateExtractor() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
findLoadPartTemplates(String content)
Extract template identifiers (template ids or names) with regex help from load_part construction.
|
org.qubership.automation.itf.core.model.jpa.message.template.Template<? extends org.qubership.automation.itf.core.util.provider.TemplateProvider> |
getTemplateObject(String templateIdentifier,
BigInteger projectId)
Get template from db by identifier (id or name + project id).
|
public static final String LOAD_PART_PATTERN
public Set<String> findLoadPartTemplates(String content)
content - template content or some string which you need check to load_part construction.public org.qubership.automation.itf.core.model.jpa.message.template.Template<? extends org.qubership.automation.itf.core.util.provider.TemplateProvider> getTemplateObject(String templateIdentifier, BigInteger projectId)
templateIdentifier - template id or name.projectId - project id.Copyright © 2025. All rights reserved.