Class ClientMemoryStore<V extends Client>
- 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>
-
- edu.uiuc.ncsa.security.storage.monitored.MonitoredMemoryStore<V>
-
- org.oa4mp.delegation.server.impl.storage.ClientMemoryStore<V>
-
- All Implemented Interfaces:
BaseClientStore<V>
,ClientStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,edu.uiuc.ncsa.security.storage.MonitoredStoreInterface<V>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public class ClientMemoryStore<V extends Client> extends edu.uiuc.ncsa.security.storage.monitored.MonitoredMemoryStore<V> implements ClientStore<V>
Abstract class that gets the inheritance and generics right.Created by Jeff Gaynor
on 1/18/12 at 11:12 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 ClientMemoryStore(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> vIdentifiableProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<edu.uiuc.ncsa.security.core.Identifier>
getByApprover(String approver, ClientApprovalStore clientApprovalStore)
List<edu.uiuc.ncsa.security.core.Identifier>
getByStatus(String status, ClientApprovalStore clientApprovalStore)
Retrieve all clients of a given type from the approval store for the given status.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
save(V value)
-
Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.MonitoredMemoryStore
addLastAccessedEventListener, doUpkeep, doUpkeep, fireLastAccessedEvent, get, getLastAccessedEventListeners, getUpkeepConfiguration, getUuid, hasUpkeepConfiguration, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled, setUpkeepConfiguration, updateHook
-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, realSave, register, remove, search, search, search, size, update
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, 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
-
ClientMemoryStore
public ClientMemoryStore(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> vIdentifiableProvider)
-
-
Method Detail
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<V> getXMLConverter()
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()
- Specified by:
getMapConverter
in interfaceClientStore<V extends Client>
- Overrides:
getMapConverter
in classedu.uiuc.ncsa.security.storage.MemoryStore<V extends Client>
-
save
public void save(V value)
-
getByStatus
public List<edu.uiuc.ncsa.security.core.Identifier> getByStatus(String status, ClientApprovalStore clientApprovalStore)
Description copied from interface:BaseClientStore
Retrieve all clients of a given type from the approval store for the given status.- Specified by:
getByStatus
in interfaceBaseClientStore<V extends Client>
- Returns:
-
getByApprover
public List<edu.uiuc.ncsa.security.core.Identifier> getByApprover(String approver, ClientApprovalStore clientApprovalStore)
- Specified by:
getByApprover
in interfaceBaseClientStore<V extends Client>
-
-