Class AdminEventBuilder
- java.lang.Object
-
- org.keycloak.services.resources.admin.AdminEventBuilder
-
public class AdminEventBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection)
-
Method Summary
-
-
-
Constructor Detail
-
AdminEventBuilder
public AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection)
-
-
Method Detail
-
clone
public AdminEventBuilder clone(KeycloakSession session)
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
public AdminEventBuilder realm(RealmModel realm)
-
realm
public AdminEventBuilder realm(String realmId)
-
refreshRealmEventsConfig
public AdminEventBuilder refreshRealmEventsConfig(KeycloakSession session)
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
public AdminEventBuilder operation(OperationType operationType)
-
resource
public AdminEventBuilder resource(ResourceType resourceType)
-
resource
public AdminEventBuilder resource(String resourceType)
Setter for custom resource types with values different fromResourceType
.
-
authRealm
public AdminEventBuilder authRealm(RealmModel realm)
-
authClient
public AdminEventBuilder authClient(ClientModel client)
-
authUser
public AdminEventBuilder authUser(UserModel user)
-
authIpAddress
public AdminEventBuilder authIpAddress(String ipAddress)
-
resourcePath
public AdminEventBuilder resourcePath(String... pathElements)
-
resourcePath
public AdminEventBuilder resourcePath(javax.ws.rs.core.UriInfo uriInfo)
-
resourcePath
public AdminEventBuilder resourcePath(javax.ws.rs.core.UriInfo uriInfo, String id)
-
representation
public AdminEventBuilder representation(Object value)
-
getEvent
public AdminEvent getEvent()
-
success
public void success()
-
-