Package org.oa4mp.server.api.util
Class ClientApprovalMemoryStore<V extends ClientApproval>
- 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.api.util.ClientApprovalMemoryStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>,Serializable,Cloneable,Map<edu.uiuc.ncsa.security.core.Identifier,V>,ClientApprovalStore<V>
public class ClientApprovalMemoryStore<V extends ClientApproval> extends edu.uiuc.ncsa.security.storage.MemoryStore<V> implements ClientApprovalStore<V>
Created by Jeff Gaynor
on 7/2/18 at 2:01 PM- 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 ClientApprovalMemoryStore(edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> vIdentifiableProvider, ClientApproverConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.uiuc.ncsa.security.storage.data.MapConvertergetMapConverter()List<V>getMostRecent(int n, List<String> attributes)intgetPendingCount()intgetUnapprovedCount()edu.uiuc.ncsa.security.core.XMLConverter<V>getXMLConverter()booleanisApproved(edu.uiuc.ncsa.security.core.Identifier identifier)List<edu.uiuc.ncsa.security.core.Identifier>statusSearch(String status)-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, realSave, register, remove, removeByID, save, search, search, search, search, size, update, 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
-
ClientApprovalMemoryStore
public ClientApprovalMemoryStore(edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> vIdentifiableProvider, ClientApproverConverter converter)
-
-
Method Detail
-
isApproved
public boolean isApproved(edu.uiuc.ncsa.security.core.Identifier identifier)
- Specified by:
isApprovedin interfaceClientApprovalStore<V extends ClientApproval>
-
getUnapprovedCount
public int getUnapprovedCount()
- Specified by:
getUnapprovedCountin interfaceClientApprovalStore<V extends ClientApproval>
-
getPendingCount
public int getPendingCount()
- Specified by:
getPendingCountin interfaceClientApprovalStore<V extends ClientApproval>
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<V> getXMLConverter()
- Specified by:
getXMLConverterin interfaceedu.uiuc.ncsa.security.core.Store<V extends ClientApproval>
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter getMapConverter()
- Specified by:
getMapConverterin interfaceClientApprovalStore<V extends ClientApproval>- Overrides:
getMapConverterin classedu.uiuc.ncsa.security.storage.MemoryStore<V extends ClientApproval>
-
statusSearch
public List<edu.uiuc.ncsa.security.core.Identifier> statusSearch(String status)
- Specified by:
statusSearchin interfaceClientApprovalStore<V extends ClientApproval>
-
-