Class VOMemoryStore<V extends VirtualOrganization>
- 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.delegation.common.monitored.storage.OLDMonitoredMemoryStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.vi.VOMemoryStore<V>
-
- All Implemented Interfaces:
VOStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,edu.uiuc.ncsa.security.storage.ListeningStoreInterface<V>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public class VOMemoryStore<V extends VirtualOrganization> extends MonitoredMemoryStore<V> implements VOStore<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 VOMemoryStore(VOProvider<V> identifiableProvider, VOConverter<V> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
protected void
clearIndices()
V
findByPath(String component)
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()
void
register(V value)
V
remove(Object key)
protected void
removeIndex(V value)
void
save(V value)
void
update(V value)
protected void
updateIndices(V v)
-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.storage.monitored.MonitoredMemoryStore
addLastAccessedEventListener, fireLastAccessedEvent, get, getLastAccessedEventListeners, getUuid, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled
-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, realSave, remove, search, search, search, size
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, 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
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
VOMemoryStore
public VOMemoryStore(VOProvider<V> identifiableProvider, VOConverter<V> converter)
-
-
Method Detail
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<V> getXMLConverter()
- Specified by:
getXMLConverter
in interfaceedu.uiuc.ncsa.security.core.Store<V extends VirtualOrganization>
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()
- Specified by:
getMapConverter
in interfaceVOStore<V extends VirtualOrganization>
- Overrides:
getMapConverter
in classedu.uiuc.ncsa.security.storage.MemoryStore<V extends VirtualOrganization>
-
findByPath
public V findByPath(String component)
- Specified by:
findByPath
in interfaceVOStore<V extends VirtualOrganization>
-
updateIndices
protected void updateIndices(V v)
-
removeIndex
protected void removeIndex(V value)
-
register
public void register(V value)
- Specified by:
register
in interfaceedu.uiuc.ncsa.security.core.Store<V extends VirtualOrganization>
- Overrides:
register
in classedu.uiuc.ncsa.security.storage.MemoryStore<V extends VirtualOrganization>
-
save
public void save(V value)
- Specified by:
save
in interfaceedu.uiuc.ncsa.security.core.Store<V extends VirtualOrganization>
- Overrides:
save
in classedu.uiuc.ncsa.security.storage.MemoryStore<V extends VirtualOrganization>
-
update
public void update(V value)
- Specified by:
update
in interfaceedu.uiuc.ncsa.security.core.Store<V extends VirtualOrganization>
- Overrides:
update
in classedu.uiuc.ncsa.security.storage.MemoryStore<V extends VirtualOrganization>
-
clear
public void clear()
- Specified by:
clear
in interfaceMap<edu.uiuc.ncsa.security.core.Identifier,V extends VirtualOrganization>
- Overrides:
clear
in classHashMap<edu.uiuc.ncsa.security.core.Identifier,V extends VirtualOrganization>
-
clearIndices
protected void clearIndices()
-
remove
public V remove(Object key)
- Specified by:
remove
in interfaceMap<edu.uiuc.ncsa.security.core.Identifier,V extends VirtualOrganization>
- Overrides:
remove
in classHashMap<edu.uiuc.ncsa.security.core.Identifier,V extends VirtualOrganization>
-
getMostRecent
public List<V> getMostRecent(int n, List<String> attributes)
- Specified by:
getMostRecent
in interfaceedu.uiuc.ncsa.security.core.Store<V extends VirtualOrganization>
- Overrides:
getMostRecent
in classMonitoredMemoryStore<V extends VirtualOrganization>
-
-