class PipelineEventService implements EntityEventService {

    @Override
    public void updateEventsWithChildrenAndIssues(final Long id) {
        eventManager.addUpdateEvent(EventObjectType.PIPELINE.name().toLowerCase(), id);
        eventManager.addUpdateEventsForIssues(id, AclClass.PIPELINE);
        List<PipelineRun> pipelineRuns = ListUtils.emptyIfNull(pipelineRunManager.loadAllRunsByPipeline(id));
        pipelineRuns.forEach(run -> eventManager.addUpdateEvent(EventObjectType.RUN.name().toLowerCase(), run.getId()));
    }

}