Interface GraphQLEvent
- All Superinterfaces:
Event,SerializableAsMap
- All Known Subinterfaces:
UserManagementGraphQLEvent
- All Known Implementing Classes:
AccountCreatedGraphQLEvent,AccountDeletedGraphQLEvent,AccountReadGraphQLEvent,AccountUpdatedGraphQLEvent
Common interface for any event triggered by GraphQL actions.
- Since:
- 7.0
-
Method Summary
-
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
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceSerializableAsMap- Returns:
- a
Maprepresentation of thisEvent. This can be used to serialize events. Sub-types are encouraged to override this method, callingsuper.asMap()and enriching the returned mutableMapwith the more specific information added by the sub-type.
-