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:
ClientApprovalStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,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.MapConverter
getMapConverter()
List<V>
getMostRecent(int n, List<String> attributes)
int
getPendingCount()
int
getUnapprovedCount()
Get the number of approvals that are as yet unapproved.edu.uiuc.ncsa.security.core.XMLConverter<V>
getXMLConverter()
boolean
isApproved(edu.uiuc.ncsa.security.core.Identifier identifier)
Returns true if the client with the given identifier has been approved, false otherwise.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, 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
-
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)
Description copied from interface:ClientApprovalStore
Returns true if the client with the given identifier has been approved, false otherwise. Not that this returns false even in the case that there is no such client.- Specified by:
isApproved
in interfaceClientApprovalStore<V extends ClientApproval>
- Returns:
-
getUnapprovedCount
public int getUnapprovedCount()
Description copied from interface:ClientApprovalStore
Get the number of approvals that are as yet unapproved.- Specified by:
getUnapprovedCount
in interfaceClientApprovalStore<V extends ClientApproval>
- Returns:
-
getPendingCount
public int getPendingCount()
- Specified by:
getPendingCount
in interfaceClientApprovalStore<V extends ClientApproval>
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<V> getXMLConverter()
- Specified by:
getXMLConverter
in interfaceedu.uiuc.ncsa.security.core.Store<V extends ClientApproval>
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter getMapConverter()
- Specified by:
getMapConverter
in interfaceClientApprovalStore<V extends ClientApproval>
- Overrides:
getMapConverter
in classedu.uiuc.ncsa.security.storage.MemoryStore<V extends ClientApproval>
-
statusSearch
public List<edu.uiuc.ncsa.security.core.Identifier> statusSearch(String status)
- Specified by:
statusSearch
in interfaceClientApprovalStore<V extends ClientApproval>
-
-