Package org.keycloak.events.admin
Class AdminEvent
- java.lang.Object
- 
- org.keycloak.events.admin.AdminEvent
 
- 
 public class AdminEvent extends Object - Author:
- Stian Thorgersen
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAdminEvent.SearchableFields
 - 
Constructor SummaryConstructors Constructor Description AdminEvent()AdminEvent(AdminEvent toCopy)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthDetailsgetAuthDetails()Returns authentication detailsStringgetError()If the event was unsuccessful returns the error message.StringgetId()Returns the UUID of the event.OperationTypegetOperationType()Returns the type of the operationStringgetRealmId()Returns the id of the realmStringgetRepresentation()Returns the updated JSON representation ifoperationTypeisCREATEorUPDATE.StringgetResourcePath()Returns the path of the resource.ResourceTypegetResourceType()Returns the type of the affectedResourceTypefor thisAdminEvent, e.g.StringgetResourceTypeAsString()Returns the type as string.longgetTime()Returns the time of the eventvoidsetAuthDetails(AuthDetails authDetails)voidsetError(String error)voidsetId(String id)voidsetOperationType(OperationType operationType)voidsetRealmId(String realmId)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 Detail- 
AdminEventpublic AdminEvent() 
 - 
AdminEventpublic AdminEvent(AdminEvent toCopy) 
 
- 
 - 
Method Detail- 
getIdpublic String getId() Returns the UUID of the event.- Returns:
 
 - 
setIdpublic void setId(String id) 
 - 
getTimepublic long getTime() Returns the time of the event- Returns:
- time in millis
 
 - 
setTimepublic void setTime(long time) 
 - 
getRealmIdpublic String getRealmId() Returns the id of the realm- Returns:
 
 - 
setRealmIdpublic void setRealmId(String realmId) 
 - 
getAuthDetailspublic AuthDetails getAuthDetails() Returns authentication details- Returns:
 
 - 
setAuthDetailspublic void setAuthDetails(AuthDetails authDetails) 
 - 
getOperationTypepublic OperationType getOperationType() Returns the type of the operation- Returns:
 
 - 
setOperationTypepublic void setOperationType(OperationType operationType) 
 - 
getResourcePathpublic String 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:
 
 - 
setResourcePathpublic void setResourcePath(String resourcePath) 
 - 
getRepresentationpublic String getRepresentation() Returns the updated JSON representation ifoperationTypeisCREATEorUPDATE. Otherwise returnsnull.- Returns:
 
 - 
setRepresentationpublic void setRepresentation(String representation) 
 - 
getErrorpublic String getError() If the event was unsuccessful returns the error message. Otherwise returnsnull.- Returns:
 
 - 
setErrorpublic void setError(String error) 
 - 
getResourceTypepublic ResourceType getResourceType() - Returns:
 
 - 
setResourceTypepublic void setResourceType(ResourceType resourceType) 
 - 
getResourceTypeAsStringpublic String getResourceTypeAsString() Returns the type as string. Custom resource types with values different fromResourceTypeare possible. In this casegetResourceType()returnsCUSTOM.- Returns:
 
 - 
setResourceTypeAsStringpublic void setResourceTypeAsString(String resourceType) Setter for custom resource types with values different fromResourceType.
 
- 
 
-