use of com.thinkbiganalytics.metadata.api.event.feed.PropertyChange in project kylo by Teradata.
the class JcrFeedProvider method mergeFeedProperties.
@Override
public Map<String, Object> mergeFeedProperties(ID feedId, Map<String, Object> properties) {
JcrFeed feed = (JcrFeed) getFeed(feedId);
List<String> securityGroupNames = new ArrayList<>();
for (Object o : feed.getSecurityGroups()) {
HadoopSecurityGroup securityGroup = (HadoopSecurityGroup) o;
securityGroupNames.add(securityGroup.getName());
}
Map<String, Object> merged = feed.mergeProperties(properties);
PropertyChange change = new PropertyChange(feed.getId().getIdValue(), feed.getCategory().getSystemName(), feed.getSystemName(), securityGroupNames, feed.getProperties(), properties);
this.metadataEventService.notify(new FeedPropertyChangeEvent(change));
return merged;
}
Aggregations