Class AccountReadGraphQLEvent
Object
se.curity.identityserver.sdk.data.events.graphql.AccountReadGraphQLEvent
- All Implemented Interfaces:
SerializableAsMap,Event,GraphQLEvent,UserManagementGraphQLEvent
@Experimental
public final class AccountReadGraphQLEvent
extends Object
implements UserManagementGraphQLEvent
Event fired when one or more accounts are read via the GraphQL interface.
- Since:
- 7.0
-
Constructor Summary
ConstructorsConstructorDescriptionAccountReadGraphQLEvent(String authenticatedSubject, Collection<AccountAttributes> readAccounts) -
Method Summary
-
Constructor Details
-
AccountReadGraphQLEvent
public AccountReadGraphQLEvent(String authenticatedSubject, Collection<AccountAttributes> readAccounts)
-
-
Method Details
-
asMap
Description copied from interface:EventGet a map representation of thisEvent.- Specified by:
asMapin interfaceEvent- Specified by:
asMapin interfaceGraphQLEvent- 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.
-
getAuthenticatedSubject
Description copied from interface:GraphQLEventGet the authenticated subject, i.e. who triggered the event.- Specified by:
getAuthenticatedSubjectin interfaceGraphQLEvent- Returns:
- The subject of whoever triggered the event (client or user)
-
getReadAccounts
Get the accounts that were read.- Returns:
- the account attributes for all the read accounts
-