Package org.keycloak.events.admin
Class AdminEvent
java.lang.Object
org.keycloak.events.admin.AdminEvent
- Author:
- Stian Thorgersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns authentication detailsgetError()If the event was unsuccessful returns the error message.getId()Returns the UUID of the event.Returns the type of the operationReturns the id of the realmReturns the updated JSON representation ifoperationTypeisCREATEorUPDATE.Returns the path of the resource.Returns the type of the affectedResourceTypefor thisAdminEvent, e.g.Returns the type as string.longgetTime()Returns the time of the eventvoidsetAuthDetails(AuthDetails authDetails) voidsetDetails(Map<String, String> details) voidvoidvoidsetOperationType(OperationType operationType) voidsetRealmId(String realmId) voidsetRealmName(String realmName) voidsetRepresentation(String representation) voidsetResourcePath(String resourcePath) voidsetResourceType(ResourceType resourceType) voidsetResourceTypeAsString(String resourceType) Setter for custom resource types with values different fromResourceType.voidsetTime(long time)
-
Constructor Details
-
AdminEvent
public AdminEvent() -
AdminEvent
-
-
Method Details
-
getResourceId
-
getId
Returns the UUID of the event.- Returns:
-
setId
-
getTime
public long getTime()Returns the time of the event- Returns:
- time in millis
-
setTime
public void setTime(long time) -
getRealmId
Returns the id of the realm- Returns:
-
setRealmId
-
getRealmName
- Returns:
- the name of the realm
-
setRealmName
-
getAuthDetails
Returns authentication details- Returns:
-
setAuthDetails
-
getOperationType
Returns the type of the operation- Returns:
-
setOperationType
-
getResourcePath
Returns the path of the resource. For example:- realms - realm list
- realms/master - master realm
- realms/clients/00d4b16f-f1f9-4e73-8366-d76b18f3e0e1 - client within the master realm
- Returns:
-
setResourcePath
-
getRepresentation
Returns the updated JSON representation ifoperationTypeisCREATEorUPDATE. Otherwise returnsnull.- Returns:
-
setRepresentation
-
getError
If the event was unsuccessful returns the error message. Otherwise returnsnull.- Returns:
-
setError
-
getResourceType
- Returns:
-
setResourceType
-
getResourceTypeAsString
Returns the type as string. Custom resource types with values different fromResourceTypeare possible. In this casegetResourceType()returnsCUSTOM.- Returns:
-
setResourceTypeAsString
Setter for custom resource types with values different fromResourceType. -
getDetails
-
setDetails
-