Search in sources :

Example 21 with FeedManagerTemplate

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);
}
Also used : JcrCategory(com.thinkbiganalytics.metadata.modeshape.category.JcrCategory) Category(com.thinkbiganalytics.metadata.api.category.Category) FeedManagerTemplate(com.thinkbiganalytics.metadata.api.template.FeedManagerTemplate) Feed(com.thinkbiganalytics.metadata.api.feed.Feed)

Aggregations

FeedManagerTemplate (com.thinkbiganalytics.metadata.api.template.FeedManagerTemplate)21 RegisteredTemplate (com.thinkbiganalytics.feedmgr.rest.model.RegisteredTemplate)8 Feed (com.thinkbiganalytics.metadata.api.feed.Feed)7 Category (com.thinkbiganalytics.metadata.api.category.Category)6 FeedMetadata (com.thinkbiganalytics.feedmgr.rest.model.FeedMetadata)3 MetadataRepositoryException (com.thinkbiganalytics.metadata.modeshape.MetadataRepositoryException)3 Principal (java.security.Principal)3 DefaultTag (com.thinkbiganalytics.discovery.model.DefaultTag)2 FeedCategory (com.thinkbiganalytics.feedmgr.rest.model.FeedCategory)2 FeedSummary (com.thinkbiganalytics.feedmgr.rest.model.FeedSummary)2 UIFeed (com.thinkbiganalytics.feedmgr.rest.model.UIFeed)2 UserProperty (com.thinkbiganalytics.feedmgr.rest.model.UserProperty)2 MetadataEventService (com.thinkbiganalytics.metadata.api.event.MetadataEventService)2 UserFieldDescriptor (com.thinkbiganalytics.metadata.api.extension.UserFieldDescriptor)2 HadoopSecurityGroup (com.thinkbiganalytics.metadata.api.security.HadoopSecurityGroup)2 FeedManagerTemplateProvider (com.thinkbiganalytics.metadata.api.template.FeedManagerTemplateProvider)2 JcrHadoopSecurityGroup (com.thinkbiganalytics.metadata.modeshape.security.JcrHadoopSecurityGroup)2 AccessController (com.thinkbiganalytics.security.AccessController)2 Serializable (java.io.Serializable)2 ArrayList (java.util.ArrayList)2