Interface GraphQLEvent

All Superinterfaces:
Event, SerializableAsMap
All Known Subinterfaces:
UserManagementGraphQLEvent
All Known Implementing Classes:
AccountCreatedGraphQLEvent, AccountDeletedGraphQLEvent, AccountReadGraphQLEvent, AccountUpdatedGraphQLEvent

@Experimental public interface GraphQLEvent extends Event
Common interface for any event triggered by GraphQL actions.
Since:
7.0
  • Method Details

    • getAuthenticatedSubject

      String getAuthenticatedSubject()
      Get the authenticated subject, i.e. who triggered the event.
      Returns:
      The subject of whoever triggered the event (client or user)
    • asMap

      default Map<String,Object> asMap()
      Description copied from interface: Event
      Get a map representation of this Event.
      Specified by:
      asMap in interface Event
      Specified by:
      asMap in interface SerializableAsMap
      Returns:
      a Map representation of this Event. This can be used to serialize events. Sub-types are encouraged to override this method, calling super.asMap() and enriching the returned mutable Map with the more specific information added by the sub-type.