Package org.keycloak.events.admin
Class AdminEvent
java.lang.Object
org.keycloak.events.admin.AdminEvent
- Author:
- Stian Thorgersen
-
Constructor Summary
-
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 ifoperationType
isCREATE
orUPDATE
.Returns the path of the resource.Returns the type of the affectedResourceType
for thisAdminEvent
, e.g.Returns the type as string.long
getTime()
Returns the time of the eventvoid
setAuthDetails
(AuthDetails authDetails) void
void
void
setOperationType
(OperationType operationType) void
setRealmId
(String realmId) void
setRepresentation
(String representation) void
setResourcePath
(String resourcePath) void
setResourceType
(ResourceType resourceType) void
setResourceTypeAsString
(String resourceType) Setter for custom resource types with values different fromResourceType
.void
setTime
(long time)
-
Constructor Details
-
AdminEvent
public AdminEvent() -
AdminEvent
-
-
Method Details
-
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
-
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 ifoperationType
isCREATE
orUPDATE
. 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 fromResourceType
are possible. In this casegetResourceType()
returnsCUSTOM
.- Returns:
-
setResourceTypeAsString
Setter for custom resource types with values different fromResourceType
.
-