Class AdminClientFS<V extends AdminClient>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- org.oa4mp.server.api.adminClient.admin.AdminClientFS<V>
-
- All Implemented Interfaces:
AdminClientStore<V>
,BaseClientStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public class AdminClientFS<V extends AdminClient> extends edu.uiuc.ncsa.security.storage.FileStore<V> implements AdminClientStore<V>
Created by Jeff Gaynor
on 10/20/16 at 12:51 PM
-
-
Constructor Summary
Constructors Constructor Description AdminClientFS(File directory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles)
AdminClientFS(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter, boolean removeEmptyFiles)
-
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)
void
realSave(boolean checkExists, V t)
-
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore
checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, get, getAll, getIndexEntry, getItemFile, getItemFile, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, register, remove, remove, removeIndexEntry, save, search, search, search, 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 interfaceAdminClientStore<V extends AdminClient>
- Overrides:
getMapConverter
in classedu.uiuc.ncsa.security.storage.FileStore<V extends AdminClient>
-
realSave
public void realSave(boolean checkExists, V t)
- Overrides:
realSave
in classedu.uiuc.ncsa.security.storage.FileStore<V extends AdminClient>
-
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 AdminClient>
- Returns:
-
getByApprover
public List<edu.uiuc.ncsa.security.core.Identifier> getByApprover(String approver, ClientApprovalStore clientApprovalStore)
- Specified by:
getByApprover
in interfaceBaseClientStore<V extends AdminClient>
-
-