Class FileMapStorageProviderFactory
- java.lang.Object
- 
- org.keycloak.models.map.storage.file.FileMapStorageProviderFactory
 
- 
- All Implemented Interfaces:
- AmphibianProviderFactory<MapStorageProvider>,- ComponentFactory<MapStorageProvider,MapStorageProvider>,- MapStorageProviderFactory,- ConfiguredProvider,- EnvironmentDependentProviderFactory,- ProviderFactory<MapStorageProvider>
 
 public class FileMapStorageProviderFactory extends Object implements AmphibianProviderFactory<MapStorageProvider>, MapStorageProviderFactory, EnvironmentDependentProviderFactory AMapStorageProviderFactorythat creates file-basedMapStorageProviders.- Author:
- Stefan Guilhen
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.MapStorageProviderFactoryMapStorageProviderFactory.Flag
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringPROVIDER_IDprotected static Map<Class<?>,Function<?,String[]>>UNIQUE_HUMAN_READABLE_NAME_FIELD
 - 
Constructor SummaryConstructors Constructor Description FileMapStorageProviderFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MapStorageProvidercreate(KeycloakSession session)Function<String,Path>getDataDirectoryFunc(String areaName)StringgetHelpText()StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.booleanisSupported()voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initialized- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.component.AmphibianProviderFactoryclose, create, getConfigProperties, onUpdate, preRemove
 - 
Methods inherited from interface org.keycloak.component.ComponentFactorygetCommonProviderConfigProperties, getTypeMetadata, onCreate, validateConfiguration
 - 
Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig
 - 
Methods inherited from interface org.keycloak.provider.EnvironmentDependentProviderFactoryisSupported
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Method Detail- 
createpublic MapStorageProvider create(KeycloakSession session) - Specified by:
- createin interface- AmphibianProviderFactory<MapStorageProvider>
- Specified by:
- createin interface- ComponentFactory<MapStorageProvider,MapStorageProvider>
- Specified by:
- createin interface- ProviderFactory<MapStorageProvider>
 
 - 
getHelpTextpublic String getHelpText() - Specified by:
- getHelpTextin interface- ConfiguredProvider
 
 - 
isSupportedpublic boolean isSupported() - Specified by:
- isSupportedin interface- EnvironmentDependentProviderFactory
- Returns:
- trueif the provider is supported and should be available,- falseotherwise
 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<MapStorageProvider>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<MapStorageProvider>
 
 - 
getIdpublic String getId() - Specified by:
- getIdin interface- ProviderFactory<MapStorageProvider>
 
 
- 
 
-