Class FileMapStorageProvider
java.lang.Object
org.keycloak.models.map.storage.file.FileMapStorageProvider
- All Implemented Interfaces:
MapStorageProvider,Provider
File-based
MapStorageProvider implementation.- Author:
- Stefan Guilhen
-
Constructor Summary
ConstructorsConstructorDescriptionFileMapStorageProvider(KeycloakSession session, FileMapStorageProviderFactory factory, int factoryId) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<V extends AbstractEntity,M>
MapStorage<V,M> getMapStorage(Class<M> modelType, MapStorageProviderFactory.Flag... flags) Returns a key-value storage implementation for the given types.
-
Constructor Details
-
FileMapStorageProvider
public FileMapStorageProvider(KeycloakSession session, FileMapStorageProviderFactory factory, int factoryId)
-
-
Method Details
-
getMapStorage
public <V extends AbstractEntity,M> MapStorage<V,M> getMapStorage(Class<M> modelType, MapStorageProviderFactory.Flag... flags) Description copied from interface:MapStorageProviderReturns a key-value storage implementation for the given types.- Specified by:
getMapStoragein interfaceMapStorageProvider- Type Parameters:
V- type of the valueM- type of the corresponding model (e.g.UserModel)- Parameters:
modelType- Model typeflags- Flags of the returned storage. Best effort, flags may be not honored by underlying implementation- Returns:
-
close
public void close()
-