Skip to content

Admin: compose & send an ESPI BatchList notification (ApplicationInformation / Authorization feed+entry / Subscription) #177

@dfcoffin

Description

@dfcoffin

Summary

The Data Custodian admin needs a UI to compose and send an ESPI BatchList notification to a Third Party. The BatchList must be able to carry valid resource URLs for an ApplicationInformation, an Authorization feed, an Authorization entry, and a Subscription.

This re-activates the legacy "Notify Third Party" capability on the modern portal, built on the #158 notification contract (BatchListDto / BatchListXmlCodec / NotificationService).

Scope

  • NotificationService.notifyBatchList(thirdPartyNotificationUri, List<String> resourceUris) — synchronous send (marshal BatchListDto via BatchListXmlCodec, POST application/atom+xml), surfacing success/failure to the caller.
  • Custodian admin page GET /custodian/notifications (form) + POST /custodian/notifications/send:
    • Target: the Third Party notification URL (pre-fillable from an ApplicationInformation's thirdPartyNotifyUri).
    • Resource URLs: ApplicationInformation, Authorization feed, Authorization entry, Subscription (blank fields are omitted).
  • Dashboard card + nav entry.
  • @PreAuthorize("hasRole('ROLE_CUSTODIAN')").
  • Unit test for the new service method.

Acceptance

An admin can submit the four URLs to a target and the DC POSTs a valid ESPI BatchList (Atom) to that endpoint; success/failure is shown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions