For consistency we store the last access approval notification (of a given type) sent for an AR and a given recipient (e.g. accessor or submitter), this allows to quickly decide if we want to send out a notification when an approval changes or when it is about to expire.
In the UI for governance we show a list of “accessor groups“, which gather the current approvals grouped by submitter and expiration date. We need a service that given an AR and a set of recipients shows which notifications are sent. Note that we do not store the history of the notifications, rather we only keep the last type of notification which should be enough for now.
Later in the UI when showing an accessor group this service can be invoked to see which notification of each type were last sent to each accessor (which include the submitter itself).