@Override public void perform(GraphRewrite event, EvaluationContext context, ApplicationReportModel payload) { final ApplicationReportIndexService applicationReportIndexService = new ApplicationReportIndexService(event.getGraphContext()); final ProjectModel projectModel = payload.getProjectModel(); if (projectModel == null || Boolean.TRUE == payload.getDisplayInGlobalApplicationIndex()) { ApplicationReportIndexModel index = applicationReportIndexService.getOrCreateGlobalApplicationIndex(); index.addApplicationReportModel(payload); } if (projectModel != null) { ApplicationReportIndexModel index = applicationReportIndexService .getApplicationReportIndexForProjectModel(payload.getProjectModel()); index.addApplicationReportModel(payload); } }
@Override public void perform(GraphRewrite event, EvaluationContext context, ApplicationReportModel payload) { final ApplicationReportIndexService applicationReportIndexService = new ApplicationReportIndexService(event.getGraphContext()); final ProjectModel projectModel = payload.getProjectModel(); if (projectModel == null || Boolean.TRUE == payload.getDisplayInGlobalApplicationIndex()) { ApplicationReportIndexModel index = applicationReportIndexService.getOrCreateGlobalApplicationIndex(); index.addApplicationReportModel(payload); } if (projectModel != null) { ApplicationReportIndexModel index = applicationReportIndexService .getApplicationReportIndexForProjectModel(payload.getProjectModel()); index.addApplicationReportModel(payload); } }