Class TXMemoryStore<V extends TXRecord>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<edu.uiuc.ncsa.security.core.Identifier,V>
-
- edu.uiuc.ncsa.security.storage.MemoryStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.tx.TXMemoryStore<V>
-
- All Implemented Interfaces:
TXStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public class TXMemoryStore<V extends TXRecord> extends edu.uiuc.ncsa.security.storage.MemoryStore<V> implements TXStore<V>
Created by Jeff Gaynor
on 12/14/20 at 10:37 AM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
edu.uiuc.ncsa.security.storage.MemoryStore.MSInitializer
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description TXMemoryStore(TXRecordProvider<V> identifiableProvider, TXRecordConverter<V> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<V>
getByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)
Get a list of all records for a given parent.int
getCountByParent(edu.uiuc.ncsa.security.core.Identifier parentID)
edu.uiuc.ncsa.security.storage.data.MapConverter<V>
getMapConverter()
List<V>
getMostRecent(int n, List<String> attributes)
edu.uiuc.ncsa.security.core.XMLConverter<V>
getXMLConverter()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, realSave, register, remove, save, search, search, search, size, update
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
TXMemoryStore
public TXMemoryStore(TXRecordProvider<V> identifiableProvider, TXRecordConverter<V> converter)
-
-
Method Detail
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<V> getXMLConverter()
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()
-
getByParentID
public List<V> getByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)
Description copied from interface:TXStore
Get a list of all records for a given parent.- Specified by:
getByParentID
in interfaceTXStore<V extends TXRecord>
- Returns:
-
getCountByParent
public int getCountByParent(edu.uiuc.ncsa.security.core.Identifier parentID)
- Specified by:
getCountByParent
in interfaceTXStore<V extends TXRecord>
-
-