Search in sources :

Example 1 with FileGroupingEvent

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;
    }
}
Also used : PathsPromoteCompleteEvent(org.commonjava.indy.promote.change.event.PathsPromoteCompleteEvent) FileGroupingEvent(org.commonjava.auditquery.fileevent.FileGroupingEvent)

Aggregations

FileGroupingEvent (org.commonjava.auditquery.fileevent.FileGroupingEvent)1 PathsPromoteCompleteEvent (org.commonjava.indy.promote.change.event.PathsPromoteCompleteEvent)1