Class FSClientStore<V extends Client>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore<V>
-
- org.oa4mp.delegation.server.impl.storage.FSClientStore<V>
-
- All Implemented Interfaces:
BaseClientStore<V>
,ClientStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,edu.uiuc.ncsa.security.storage.MonitoredStoreInterface<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public abstract class FSClientStore<V extends Client> extends edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore<V> implements ClientStore<V>
File-based storage for clients.Created by Jeff Gaynor
on 11/3/11 at 3:40 PM
-
-
Constructor Summary
Constructors Modifier Constructor Description FSClientStore(File f, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)
protected
FSClientStore(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 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()
void
realSave(boolean checkExists, V t)
-
Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore
addLastAccessedEventListener, doUpkeep, doUpkeep, fireLastAccessedEvent, get, getLastAccessedEventListeners, getMostRecent, getUpkeepConfiguration, getUuid, hasUpkeepConfiguration, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled, setUpkeepConfiguration, updateHook
-
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore
checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, getAll, getIndexDirectory, getIndexEntry, getItemFile, getItemFile, getStorageDirectory, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, 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 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
-
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.FileStore<V extends Client>
-
realSave
public void realSave(boolean checkExists, V t)
-
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>
-
-