Class MapResourceServerStore
- java.lang.Object
- 
- org.keycloak.models.map.authorization.MapResourceServerStore
 
- 
- All Implemented Interfaces:
- ResourceServerStore
 
 public class MapResourceServerStore extends Object implements ResourceServerStore 
- 
- 
Constructor SummaryConstructors Constructor Description MapResourceServerStore(MapStorage<MapResourceServerEntity,ResourceServer> resourceServerStore, AuthorizationProvider provider)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceServercreate(ClientModel client)Creates aResourceServerinstance backed by this persistent storage implementation.voiddelete(ClientModel client)Removes aResourceServerinstance, with the given client from the persistent storage.ResourceServerfindByClient(ClientModel client)Returns aResourceServerinstance based on a client.ResourceServerfindById(RealmModel realm, String id)Returns aResourceServerinstance based on its identifier.voidpreRemove(RealmModel realm)
 
- 
- 
- 
Constructor Detail- 
MapResourceServerStorepublic MapResourceServerStore(MapStorage<MapResourceServerEntity,ResourceServer> resourceServerStore, AuthorizationProvider provider) 
 
- 
 - 
Method Detail- 
createpublic ResourceServer create(ClientModel client) Description copied from interface:ResourceServerStoreCreates a ResourceServerinstance backed by this persistent storage implementation.- Specified by:
- createin interface- ResourceServerStore
- Parameters:
- client- the client acting as a resource server. Cannot be- null.
- Returns:
- an instance backed by the underlying storage implementation
 
 - 
deletepublic void delete(ClientModel client) Description copied from interface:ResourceServerStoreRemoves aResourceServerinstance, with the given client from the persistent storage.- Specified by:
- deletein interface- ResourceServerStore
- Parameters:
- client- the client acting as a resource server. Cannot be- null.
 
 - 
findByIdpublic ResourceServer findById(RealmModel realm, String id) Description copied from interface:ResourceServerStoreReturns aResourceServerinstance based on its identifier.- Specified by:
- findByIdin interface- ResourceServerStore
- Parameters:
- realm- the realm. Cannot be- null.
- id- the identifier of an existing resource server instance
- Returns:
- the resource server instance with the given identifier or null if no instance was found
 
 - 
findByClientpublic ResourceServer findByClient(ClientModel client) Description copied from interface:ResourceServerStoreReturns aResourceServerinstance based on a client.- Specified by:
- findByClientin interface- ResourceServerStore
- Parameters:
- client- the client acting as a resource server. Cannot be- null.
- Returns:
- the resource server instance or null if no instance was found
 
 - 
preRemovepublic void preRemove(RealmModel realm) 
 
- 
 
-