org.keycloak.models

## Interface KeycloakSession

- All Superinterfaces:
    Provider
  All Known Implementing Classes:
    JpaKeycloakSession, MongoKeycloakSession

      public interface KeycloakSession
      extends Provider

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `RealmModel` | `createRealm(String name)`
    `RealmModel` | `createRealm(String id, String name)`
    `RealmModel` | `getRealm(String id)`
    `RealmModel` | `getRealmByName(String name)`
    `List<RealmModel>` | `getRealms()`
    `KeycloakTransaction` | `getTransaction()`
    `void` | `removeAllData()`
    `boolean` | `removeRealm(String id)`

- - ### Method Detail

    - #### getTransaction

          KeycloakTransaction getTransaction()

    - #### createRealm

          RealmModel createRealm(String name)

    - #### createRealm

          RealmModel createRealm(String id,
                               String name)

    - #### getRealm

          RealmModel getRealm(String id)

    - #### getRealmByName

          RealmModel getRealmByName(String name)

    - #### getRealms

          List<RealmModel> getRealms()

    - #### removeRealm

          boolean removeRealm(String id)

    - #### removeAllData

          void removeAllData()

    - #### close

          void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2014. All Rights Reserved.