org.keycloak.authorization.jpa.store

## Class JPAStoreFactory

- java.lang.Object
- - org.keycloak.authorization.jpa.store.JPAStoreFactory

- All Implemented Interfaces:
    StoreFactory, Provider

      public class JPAStoreFactory
      extends Object
      implements StoreFactory

  Author:
    Pedro Igor

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JPAStoreFactory(javax.persistence.EntityManager entityManager)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `PolicyStore` | `getPolicyStore()` Returns a `PolicyStore`.
    `ResourceServerStore` | `getResourceServerStore()` Returns a `ResourceServerStore`.
    `ResourceStore` | `getResourceStore()` Returns a `ResourceStore`.
    `ScopeStore` | `getScopeStore()` Returns a `ScopeStore`.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JPAStoreFactory

          public JPAStoreFactory(javax.persistence.EntityManager entityManager)

  - ### Method Detail

    - #### getPolicyStore

          public PolicyStore getPolicyStore()

      Description copied from interface: `StoreFactory`
      Returns a `PolicyStore`.
      Specified by:
        `getPolicyStore` in interface `StoreFactory`
      Returns:
        the policy store

    - #### getResourceServerStore

          public ResourceServerStore getResourceServerStore()

      Description copied from interface: `StoreFactory`
      Returns a `ResourceServerStore`.
      Specified by:
        `getResourceServerStore` in interface `StoreFactory`
      Returns:
        the resource server store

    - #### getResourceStore

          public ResourceStore getResourceStore()

      Description copied from interface: `StoreFactory`
      Returns a `ResourceStore`.
      Specified by:
        `getResourceStore` in interface `StoreFactory`
      Returns:
        the resource store

    - #### getScopeStore

          public ScopeStore getScopeStore()

      Description copied from interface: `StoreFactory`
      Returns a `ScopeStore`.
      Specified by:
        `getScopeStore` in interface `StoreFactory`
      Returns:
        the scope store

    - #### close

          public void close()

      Specified by:
        `close` in interface `Provider`

Copyright © 2016 JBoss by Red Hat. All rights reserved.