[midPoint-git] [Evolveum/midpoint] b00f32: Fix "report output created" notifications

mederly noreply at github.com
Thu Mar 17 12:32:15 CET 2022


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: b00f3271c33e887d4f10354fe7a773ab98b4ce46
      https://github.com/Evolveum/midpoint/commit/b00f3271c33e887d4f10354fe7a773ab98b4ce46
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

  Changed paths:
    M infra/schema/src/main/resources/xml/ns/public/common/common-notifications-3.xsd
    A model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/ActivityEvent.java
    A model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/ActivityRealizationCompleteEvent.java
    M model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/Event.java
    A model/notifications-api/src/main/java/com/evolveum/midpoint/notifications/api/events/ReportOutputCreatedEvent.java
    M model/notifications-impl/pom.xml
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/AccountOperationListener.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/CaseEventCreationListenerImpl.java
    A model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationActivityListener.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationHook.java
    A model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationReportOutputCreatedListener.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationTaskListener.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/SimpleObjectRefImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/AccessCertificationEventImpl.java
    A model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/ActivityEventImpl.java
    A model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/ActivityRealizationCompleteEventImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/BaseEventImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/CaseManagementEventImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/CustomEventImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/PolicyRuleEventImpl.java
    A model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/ReportOutputCreatedEventImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/TaskEventImpl.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/events/factory/CertEventFactory.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/notifiers/SimpleReportNotifier.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/util/ApplicationContextHolder.java
    M model/notifications-impl/src/test/java/com/evolveum/midpoint/notifications/impl/NotificationsTest.java
    M model/report-impl/pom.xml
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportServiceImpl.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/DistributedReportExportActivityHandler.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ExportActivitySupport.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ImportActivitySupport.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ReportActivitySupport.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/SaveReportFileSupport.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/controller/CollectionDistributedExportController.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/EmptyReportIntegrationTest.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/TestCsvReport.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/TestCsvReportExportClassic.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/TestCsvReportExportClassicSafe.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/TestCsvReportMultiNode.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/TestHtmlReportExportClassic.java
    M model/report-impl/src/test/resources/common/system-configuration-safe.xml
    M model/report-impl/src/test/resources/common/system-configuration.xml
    M model/report-impl/src/test/resources/ctx-report-test-main.xml
    M model/report-impl/src/test/resources/reports/report-audit-collection-with-double-view.xml
    M model/report-impl/src/test/resources/reports/report-audit-collection-with-view.xml
    M repo/repo-cache/src/main/java/com/evolveum/midpoint/repo/cache/handlers/GetObjectOpHandler.java
    M repo/repo-common/pom.xml
    A repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/ActivityListener.java
    A repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/ReportOutputCreatedListener.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/AbstractActivityRun.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/CommonTaskBeans.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/activity/run/state/CurrentActivityState.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/reports/ReportSupportUtil.java
    M repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskQuartzImpl.java

  Log Message:
  -----------
  Fix "report output created" notifications

Notifications about reports being created were originally implemented
by SimpleReportNotifier watching TaskEvent instances. This was not
good enough, e.g. it didn't support distributed reports introduced
in midPoint 4.4.

Therefore, here we add ReportOutputCreatedEvent that is emitted
specifically when a report output is created, regardless
of the task/activity state, or other circumstances.

Related changes:
- The reportDataRef in the report activity work state is now correctly
filled in.
- As a side effect of this work, _experimental_ events for activity
completion (ActivityRealizationCompleteEvent) were implemented.

Related to MID-7737.


  Commit: f9e705f6f82ff04909abde26aa614632d7699ae8
      https://github.com/Evolveum/midpoint/commit/f9e705f6f82ff04909abde26aa614632d7699ae8
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

  Changed paths:
    M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/component/AssignmentsDetailsPanel.java
    M model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/activity/ReportDataCreationActivityRun.java
    M model/report-impl/src/test/java/com/evolveum/midpoint/report/TestCsvReportMultiNode.java

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master'


Compare: https://github.com/Evolveum/midpoint/compare/52935d70b001...f9e705f6f82f


More information about the midPoint-svn mailing list