use of com.thinkbiganalytics.nifi.feedmgr.TemplateCreationHelper in project kylo by Teradata.
the class LegacyNifiRestClient method getPropertiesForTemplate.
/**
* @param parentProcessGroup the parent group for which this template will reside
* @param dto the template to parse
* @param includePropertyDescriptors true to include propertyDescriptor details on each property, false to just include the property key
* @return all the properties included in this template
*/
public List<NifiProperty> getPropertiesForTemplate(ProcessGroupDTO parentProcessGroup, TemplateDTO dto, boolean includePropertyDescriptors) {
if (includePropertyDescriptors) {
TemplateCreationHelper helper = new TemplateCreationHelper(this, niFiObjectCache);
ProcessGroupDTO groupDTO = helper.createTemporaryTemplateFlow(dto.getId());
dto.setSnippet(groupDTO.getContents());
}
return NifiPropertyUtil.getPropertiesForTemplate(parentProcessGroup, dto, propertyDescriptorTransform);
}
Aggregations