use of com.thinkbiganalytics.metadata.api.template.FeedManagerTemplate in project kylo by Teradata.
the class FeedTestUtil method findOrCreateFeed.
public Feed findOrCreateFeed(String categorySystemName, String feedSystemName, String feedTemplate) {
Category category = findOrCreateCategory(categorySystemName);
Feed feed = feedProvider.ensureFeed(category.getId(), feedSystemName);
feed.setDisplayName(feedSystemName);
FeedManagerTemplate template = findOrCreateTemplate(feedTemplate);
feed.setTemplate(template);
return feedProvider.update(feed);
}
Aggregations