Class AccountUpdatedScimEvent

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

public class AccountUpdatedScimEvent extends ScimEvent implements AuditableEvent
Event fired when an account is updated.
Since:
2.2.0
  • Constructor Details

    • AccountUpdatedScimEvent

      public AccountUpdatedScimEvent(String authenticatedSubject, String scimAccountId, String httpMethod, Map<String,Object> updateMap, ResourceAttributes<?> updatedAccount, @Nullable ResponseModel.MapResponseModel responseModel, String profileId)
      Parameters:
      authenticatedSubject - The subject of whoever was responsible for the update
      scimAccountId - The ID of the SCIM account being updated
      httpMethod - The HTTP method used to update the account (PUT or PATCH)
      updateMap - A map of the attributes sent in for update
      updatedAccount - The ResourceAttributes of the updated account
      responseModel - The response model from the update response
      profileId - The ID of the profile from which this event originated
  • Method Details

    • getScimAccountId

      public String getScimAccountId()
      Get the ID of the account being updated.
      Returns:
      the ID of the account being updated
    • getHttpMethod

      public String getHttpMethod()
      Get the HTTP method used to update the account (PUT or PATCH).
      Returns:
      the HTTP method used to update the account (PUT or PATCH)
    • getUpdateMap

      public Map<String,Object> getUpdateMap()
      Get a map of the attributes sent in for update.
      Returns:
      a map of the attributes sent in for update
    • getUpdatedAccount

      public ResourceAttributes<?> getUpdatedAccount()
      Get the ResourceAttributes of the updated account.
      Returns:
      the ResourceAttributes of the updated account
    • getResponseModel

      public Map<String,Object> getResponseModel()
      Get the response model from the update response.
      Returns:
      the response model from the update response
    • 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 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.