Class AdminEventBuilder
- java.lang.Object
- 
- org.keycloak.services.resources.admin.AdminEventBuilder
 
- 
 public class AdminEventBuilder extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static org.jboss.logging.Loggerlogger
 - 
Constructor SummaryConstructors Constructor Description AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
AdminEventBuilderpublic AdminEventBuilder(RealmModel realm, AdminAuth auth, KeycloakSession session, ClientConnection clientConnection) 
 
- 
 - 
Method Detail- 
clonepublic AdminEventBuilder clone(KeycloakSession session) 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 the- AdminEventBuildershould be bound to.
- Returns:
- a new instance of AdminEventBuilder
 
 - 
realmpublic AdminEventBuilder realm(RealmModel realm) 
 - 
realmpublic AdminEventBuilder realm(String realmId) 
 - 
refreshRealmEventsConfigpublic 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
 
 - 
operationpublic AdminEventBuilder operation(OperationType operationType) 
 - 
resourcepublic AdminEventBuilder resource(ResourceType resourceType) 
 - 
resourcepublic AdminEventBuilder resource(String resourceType) Setter for custom resource types with values different fromResourceType.
 - 
authRealmpublic AdminEventBuilder authRealm(RealmModel realm) 
 - 
authClientpublic AdminEventBuilder authClient(ClientModel client) 
 - 
authUserpublic AdminEventBuilder authUser(UserModel user) 
 - 
authIpAddresspublic AdminEventBuilder authIpAddress(String ipAddress) 
 - 
resourcePathpublic AdminEventBuilder resourcePath(String... pathElements) 
 - 
resourcePathpublic AdminEventBuilder resourcePath(javax.ws.rs.core.UriInfo uriInfo) 
 - 
resourcePathpublic AdminEventBuilder resourcePath(javax.ws.rs.core.UriInfo uriInfo, String id) 
 - 
representationpublic AdminEventBuilder representation(Object value) 
 - 
getEventpublic AdminEvent getEvent() 
 - 
successpublic void success() 
 
- 
 
-