Class FileMapStorage<V extends AbstractEntity & UpdatableEntity,M>
- java.lang.Object
- 
- org.keycloak.models.map.storage.chm.ConcurrentHashMapStorage<String,V,M>
- 
- org.keycloak.models.map.storage.file.FileMapStorage<V,M>
 
 
- 
- All Implemented Interfaces:
- KeycloakTransaction,- HasRealmId,- MapStorage<V,M>
 
 public class FileMapStorage<V extends AbstractEntity & UpdatableEntity,M> extends ConcurrentHashMapStorage<String,V,M> MapStorageimplementation used with the file map storage.- Author:
- Stefan Guilhen
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageConcurrentHashMapStorage.MapTaskWithValue
 
- 
 - 
Field Summary- 
Fields inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageactive, cloner, fieldPredicates, keyConverter, map, realmIdEntityField, rollback, tasks
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()static <V extends AbstractEntity & UpdatableEntity,M>
 FileMapStorage<V,M>newInstance(Class<V> entityClass, Function<String,Path> dataDirectoryFunc, Function<V,String[]> suggestedPath, boolean isExpirableEntity)VregisterEntityForChanges(V origEntity)Returns a deep clone of an entity.booleanremoveIfExists(Path path)voidrollback()voidtouch(Path path)- 
Methods inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageaddTask, begin, create, delete, delete, exists, getCount, getRealmId, getRollbackOnly, isActive, read, read, setRealmId, setRollbackOnly, updateIfChanged
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.MapStorageexists
 
- 
 
- 
- 
- 
Method Detail- 
newInstancepublic static <V extends AbstractEntity & UpdatableEntity,M> FileMapStorage<V,M> newInstance(Class<V> entityClass, Function<String,Path> dataDirectoryFunc, Function<V,String[]> suggestedPath, boolean isExpirableEntity) 
 - 
rollbackpublic void rollback() - Specified by:
- rollbackin interface- KeycloakTransaction
- Overrides:
- rollbackin class- ConcurrentHashMapStorage<String,V extends AbstractEntity & UpdatableEntity,M>
 
 - 
commitpublic void commit() - Specified by:
- commitin interface- KeycloakTransaction
- Overrides:
- commitin class- ConcurrentHashMapStorage<String,V extends AbstractEntity & UpdatableEntity,M>
 
 - 
touchpublic void touch(Path path) throws IOException - Throws:
- IOException
 
 - 
removeIfExistspublic boolean removeIfExists(Path path) 
 - 
registerEntityForChangespublic V registerEntityForChanges(V origEntity) Description copied from class:ConcurrentHashMapStorageReturns a deep clone of an entity. If the clone is already in the transaction, returns this one.Usually used before giving an entity from a source back to the caller, to prevent changing it directly in the data store, but to keep transactional properties. - Overrides:
- registerEntityForChangesin class- ConcurrentHashMapStorage<String,V extends AbstractEntity & UpdatableEntity,M>
- Parameters:
- origEntity- Original entity
- Returns:
 
 
- 
 
-