use of org.commonjava.auditquery.fileevent.FileGroupingEvent in project indy by Commonjava.
the class EventAuditListener method onPromoteComplete.
public void onPromoteComplete(@Observes final PromoteCompleteEvent event) {
if (!eventAuditConfig.isEnabled()) {
return;
}
if (event instanceof PathsPromoteCompleteEvent) {
FileGroupingEvent fileGroupingEvent = new FileGroupingEvent(FileGroupingEventType.BY_PATH_PROMOTION);
transformFileGroupingEvent(event, fileGroupingEvent);
eventPublisher.publishFileGroupingEvent(fileGroupingEvent);
} else {
logger.trace("Unsupported grouping event: {}", event.getClass());
return;
}
}
Aggregations