use of com.thinkbiganalytics.metadata.api.template.FeedManagerTemplate in project kylo by Teradata.
the class FeedModelTransform method setFeedMetadataRegisteredTemplate.
/**
* Set the FeedMetadata.registeredTemplate with the template data
* @param domain the domain JcrFeed
* @param feed the FeedMetata REST object
*/
public void setFeedMetadataRegisteredTemplate(@Nonnull final Feed domain, FeedMetadata feed) {
FeedManagerTemplate template = domain.getTemplate();
if (template != null) {
RegisteredTemplate registeredTemplate = templateModelTransform.DOMAIN_TO_REGISTERED_TEMPLATE.apply(template);
feed.setRegisteredTemplate(registeredTemplate);
feed.setTemplateId(registeredTemplate.getId());
feed.setTemplateName(registeredTemplate.getTemplateName());
}
}
Aggregations