org.keycloak.models.mongo.keycloak.entities

## Class MongoRealmEntity

- java.lang.Object
- - org.keycloak.models.entities.AbstractIdentifiableEntity
  - - org.keycloak.models.entities.RealmEntity
    - - org.keycloak.models.mongo.keycloak.entities.MongoRealmEntity

- All Implemented Interfaces:
    MongoEntity, MongoIdentifiableEntity

      @MongoCollection(collectionName="realms")
      @MongoIndex(fields="name",
                  unique=true)
      public class MongoRealmEntity
      extends RealmEntity
      implements MongoIdentifiableEntity

  Author:
    Marek Posolda

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MongoRealmEntity()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `afterRemove(MongoStoreInvocationContext context)` Lifecycle callback, which is called after removal of this object from Mongo.

    - ### Methods inherited from class org.keycloak.models.entities.RealmEntity

      `getAccessCodeLifespan, getAccessCodeLifespanUserAction, getAccessTokenLifespan, getAccountTheme, getAdminAppId, getAdminTheme, getBrowserSecurityHeaders, getDefaultRoles, getEmailTheme, getEventsExpiration, getEventsListeners, getFailureFactor, getLoginTheme, getMaxDeltaTimeSeconds, getMaxFailureWaitSeconds, getMinimumQuickLoginWaitSeconds, getName, getNotBefore, getPasswordPolicy, getPrivateKeyPem, getPublicKeyPem, getQuickLoginCheckMilliSeconds, getRequiredCredentials, getSmtpConfig, getSocialConfig, getSslRequired, getSsoSessionIdleTimeout, getSsoSessionMaxLifespan, getUserFederationProviders, getWaitIncrementSeconds, isBruteForceProtected, isEnabled, isEventsEnabled, isPasswordCredentialGrantAllowed, isRegistrationAllowed, isRememberMe, isResetPasswordAllowed, isSocial, isUpdateProfileOnInitialSocialLogin, isVerifyEmail, setAccessCodeLifespan, setAccessCodeLifespanUserAction, setAccessTokenLifespan, setAccountTheme, setAdminAppId, setAdminTheme, setBrowserSecurityHeaders, setBruteForceProtected, setDefaultRoles, setEmailTheme, setEnabled, setEventsEnabled, setEventsExpiration, setEventsListeners, setFailureFactor, setLoginTheme, setMaxDeltaTimeSeconds, setMaxFailureWaitSeconds, setMinimumQuickLoginWaitSeconds, setName, setNotBefore, setPasswordCredentialGrantAllowed, setPasswordPolicy, setPrivateKeyPem, setPublicKeyPem, setQuickLoginCheckMilliSeconds, setRegistrationAllowed, setRememberMe, setRequiredCredentials, setResetPasswordAllowed, setSmtpConfig, setSocial, setSocialConfig, setSslRequired, setSsoSessionIdleTimeout, setSsoSessionMaxLifespan, setUpdateProfileOnInitialSocialLogin, setUserFederationProviders, setVerifyEmail, setWaitIncrementSeconds`

    - ### Methods inherited from class org.keycloak.models.entities.AbstractIdentifiableEntity

      `equals, getId, hashCode, setId, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.keycloak.connections.mongo.api.MongoIdentifiableEntity

      `getId, setId`

- - ### Constructor Detail

    - #### MongoRealmEntity

          public MongoRealmEntity()

  - ### Method Detail

    - #### afterRemove

          public void afterRemove(MongoStoreInvocationContext context)

      Description copied from interface: `MongoIdentifiableEntity`
      Lifecycle callback, which is called after removal of this object from Mongo. It may be useful for triggering removal of wired objects.
      Specified by:
        `afterRemove` in interface `MongoIdentifiableEntity`

Copyright © 2015. All Rights Reserved.