Class AccountReadScimEvent

Object
se.curity.identityserver.sdk.data.events.ScimEvent
se.curity.identityserver.sdk.data.events.AccountReadScimEvent
All Implemented Interfaces:
SerializableAsMap, Event

public class AccountReadScimEvent extends ScimEvent
A ScimEvent that occurs when a single user account information is read.

Operations that result in several accounts being read at once are reported via the AccountSearchScimEvent instead.

Since:
2.2.0
  • Constructor Details

    • AccountReadScimEvent

      public AccountReadScimEvent(String authenticatedSubject, String scimAccountId, ResourceAttributes<?> userAccount, ResourceQuery resourceQuery, ResponseModel.MapResponseModel responseModel, String profileId)
      Creates a new AccountReadScimEvent.
      Parameters:
      authenticatedSubject - The subject who was responsible, i.e. who read the account
      scimAccountId - The ID of the account entity being read
      userAccount - The attributes being read
      resourceQuery - The ResourceQuery used when reading the account
      responseModel - The response model provided for the read event
      profileId - The ID of the profile from which this event originated
  • Method Details

    • getScimAccountId

      public String getScimAccountId()
      Get the account ID of the account having been read.
      Returns:
      the account ID of the account having been read
    • getUserAccount

      public ResourceAttributes<?> getUserAccount()
      Get the ResourceAttributes that was read on the account.
      Returns:
      the ResourceAttributes that was read on the account
    • getResourceQuery

      public ResourceQuery getResourceQuery()
      Get the ResourceQuery used when retrieving the account.
      Returns:
      the ResourceQuery used when retrieving the account
    • getResponseModel

      public Map<String,Object> getResponseModel()
      Get the response model of the response triggering this event.
      Returns:
      the ResourceQuery used when retrieving the account
    • 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
      Overrides:
      asMap in class ScimEvent
      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.