Class SystemEvent

Object
se.curity.identityserver.sdk.data.events.SystemEvent
All Implemented Interfaces:
SerializableAsMap, Event
Direct Known Subclasses:
ConfigurationChangedSystemEvent, ProfileAddedSystemEvent

public abstract class SystemEvent extends Object implements Event
Base class for system level events.
Since:
2.2.0
  • Constructor Details

    • SystemEvent

      public SystemEvent(String serverId, String serviceRole)
  • Method Details

    • getServerId

      public String getServerId()
      Returns the ID of the server this event concerns.
      Returns:
      the server ID
    • getServiceRole

      public String getServiceRole()
      Returns the service role this service operates as
      Returns:
      the service role
      Since:
      4.0.0
    • 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 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object