Class AdminEventBuilder
java.lang.Object
org.keycloak.services.resources.admin.AdminEventBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AdminEventprotected final AdminAuthprotected final Stringprotected final Map<String,EventListenerProvider> protected static final org.jboss.logging.Loggerprotected final RealmModelprotected final KeycloakSessionprotected EventStoreProvider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, String ipAddress, AdminEvent adminEvent) AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection) -
Method Summary
Modifier and TypeMethodDescriptionprotected AdminEventBuilderaddListeners(KeycloakSession session) authClient(ClientModel client) authIpAddress(String ipAddress) authRealm(RealmModel realm) clone(KeycloakSession session) Create a new instance of theAdminEventBuilderthat is bound to a new session.getEvent()protected StringgetResourcePath(jakarta.ws.rs.core.UriInfo uriInfo) 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) protected voidsend()protected voidvoidsuccess()protected AdminEventBuilderupdateStore(KeycloakSession session)
-
Field Details
-
logger
protected static final org.jboss.logging.Logger logger -
auth
-
ipAddress
-
realm
-
adminEvent
-
listeners
-
session
-
store
-
-
Constructor Details
-
AdminEventBuilder
public AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection) -
AdminEventBuilder
protected AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, String ipAddress, AdminEvent adminEvent)
-
-
Method Details
-
clone
Create a new instance of theAdminEventBuilderthat is bound to a new session. Use this when starting, for example, a nested transaction.- Parameters:
session- new session where theAdminEventBuildershould be bound to.- Returns:
- a new instance of
AdminEventBuilder
-
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
-
updateStore
-
addListeners
-
operation
-
resource
-
resource
Setter for custom resource types with values different fromResourceType. -
authRealm
-
authClient
-
authUser
-
authIpAddress
-
resourcePath
-
resourcePath
-
resourcePath
-
getResourcePath
-
representation
-
stripSecretsFromRepresentation
-
detail
-
getEvent
-
success
public void success() -
send
protected void send()
-