Class AdminEventBuilder
java.lang.Object
org.keycloak.services.resources.admin.AdminEventBuilder
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAdminEventBuilder
(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection) -
Method Summary
Modifier and TypeMethodDescriptionauthClient
(ClientModel client) authIpAddress
(String ipAddress) authRealm
(RealmModel realm) clone
(KeycloakSession session) Create a new instance of theAdminEventBuilder
that is bound to a new session.getEvent()
operation
(OperationType operationType) realm
(RealmModel realm) refreshRealmEventsConfig
(KeycloakSession session) Refreshes the builder assuming that the realm event information has changed.representation
(Object value) Setter for custom resource types with values different fromResourceType
.resource
(ResourceType resourceType) resourcePath
(jakarta.ws.rs.core.UriInfo uriInfo) resourcePath
(jakarta.ws.rs.core.UriInfo uriInfo, String id) resourcePath
(String... pathElements) void
success()
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Details
-
AdminEventBuilder
public AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection)
-
-
Method Details
-
clone
Create a new instance of theAdminEventBuilder
that is bound to a new session. Use this when starting, for example, a nested transaction.- Parameters:
session
- new session where theAdminEventBuilder
should be bound to.- Returns:
- a new instance of
AdminEventBuilder
-
realm
-
realm
-
refreshRealmEventsConfig
Refreshes the builder assuming that the realm event information has changed. Thought to be used when the updateRealmEventsConfig has modified the events configuration. Now the store and the listeners are updated to have previous and new setup.- Parameters:
session
- The session- Returns:
- The same builder
-
operation
-
resource
-
resource
Setter for custom resource types with values different fromResourceType
. -
authRealm
-
authClient
-
authUser
-
authIpAddress
-
resourcePath
-
resourcePath
-
resourcePath
-
representation
-
getEvent
-
success
public void success()
-