org.keycloak.connections.mongo.api.context

## Interface MongoStoreInvocationContext

- All Known Implementing Classes:
    SimpleMongoStoreInvocationContext, TransactionMongoStoreInvocationContext

      public interface MongoStoreInvocationContext

  Context, which provides callback methods to be invoked by MongoStore
  Author:
    Marek Posolda

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addCreatedEntity(MongoIdentifiableEntity entity)`
    `void` | `addLoadedEntity(MongoIdentifiableEntity entity)`
    `void` | `addRemovedEntity(MongoIdentifiableEntity entity)`
    `void` | `addUpdateTask(MongoIdentifiableEntity entityToUpdate, MongoTask task)`
    `void` | `beforeDBSearch(Class<? extends MongoIdentifiableEntity> entityType)`
    `void` | `begin()`
    `void` | `commit()`
    `<T extends MongoIdentifiableEntity> T` | `getLoadedEntity(Class<T> type, String id)`
    `MongoStore` | `getMongoStore()`
    `void` | `rollback()`

- - ### Method Detail

    - #### addCreatedEntity

          void addCreatedEntity(MongoIdentifiableEntity entity)

    - #### addLoadedEntity

          void addLoadedEntity(MongoIdentifiableEntity entity)

    - #### getLoadedEntity

          <T extends MongoIdentifiableEntity> T getLoadedEntity(Class<T> type,
                                                              String id)

    - #### addUpdateTask

          void addUpdateTask(MongoIdentifiableEntity entityToUpdate,
                           MongoTask task)

    - #### addRemovedEntity

          void addRemovedEntity(MongoIdentifiableEntity entity)

    - #### beforeDBSearch

          void beforeDBSearch(Class<? extends MongoIdentifiableEntity> entityType)

    - #### begin

          void begin()

    - #### commit

          void commit()

    - #### rollback

          void rollback()

    - #### getMongoStore

          MongoStore getMongoStore()

Copyright © 2014. All Rights Reserved.