Class FSClientApprovalStore<V extends ClientApproval>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- org.oa4mp.delegation.server.impl.storage.FSClientApprovalStore<V>
-
- All Implemented Interfaces:
ClientApprovalStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public abstract class FSClientApprovalStore<V extends ClientApproval> extends edu.uiuc.ncsa.security.storage.FileStore<V> implements ClientApprovalStore<V>
A store for client approvals.Created by Jeff Gaynor
on 11/3/11 at 3:43 PM
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FSClientApprovalStore(File file, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)
protected
FSClientApprovalStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore
checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, get, getAll, getIndexDirectory, getIndexEntry, getItemFile, getItemFile, getMapConverter, getStorageDirectory, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, remove, remove, removeIndexEntry, save, search, search, search, setIndexDirectory, setStorageDirectory, size, size, toString, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore
createIndexEntry, getCreatedItems, hashString, isEmpty, loadStream, put, put
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.uiuc.ncsa.oa4mp.delegation.server.storage.ClientApprovalStore
getMapConverter, statusSearch
-
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
-
-
-
-
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>
- Overrides:
getXMLConverter
in classedu.uiuc.ncsa.security.storage.FileStore<V extends ClientApproval>
-
-