Class AccountUpdatedGraphQLEvent

Object
se.curity.identityserver.sdk.data.events.graphql.AccountUpdatedGraphQLEvent
All Implemented Interfaces:
SerializableAsMap, AuditableEvent, Event, GraphQLEvent, UserManagementGraphQLEvent

@Experimental public final class AccountUpdatedGraphQLEvent extends Object implements UserManagementGraphQLEvent, AuditableEvent
Event fired when an account is updated via the GraphQL interface.
Since:
7.0
  • Constructor Details

    • AccountUpdatedGraphQLEvent

      public AccountUpdatedGraphQLEvent(String authenticatedSubject, AccountAttributes storedAccount)
  • Method Details

    • getAuditData

      public AuditData getAuditData()
      Description copied from interface: AuditableEvent
      Get all AuditData associated with this auditable event.

      This method must always return the same instant of AuditData.

      Specified by:
      getAuditData in interface AuditableEvent
      Returns:
      the AuditData concisely describing the auditable data of this event
    • asMap

      public 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 GraphQLEvent
      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.
    • getAuthenticatedSubject

      public String getAuthenticatedSubject()
      Description copied from interface: GraphQLEvent
      Get the authenticated subject, i.e. who triggered the event.
      Specified by:
      getAuthenticatedSubject in interface GraphQLEvent
      Returns:
      The subject of whoever triggered the event (client or user)
    • getStoredAccount

      public AccountAttributes getStoredAccount()
      Get the accounts attributes representing the stored account after the update.
      Returns:
      the account attributes representing the stored account after the update.