Class TXFileStore<V extends TXRecord>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.tx.TXFileStore<V>
-
-
Constructor Summary
Constructors Constructor Description TXFileStore(File directory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)TXFileStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter, boolean removeEmptyFiles, boolean removeFailedFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<V>getByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)Get a list of all records for a given parent.intgetCountByParent(edu.uiuc.ncsa.security.core.Identifier parentID)List<edu.uiuc.ncsa.security.core.Identifier>getIDsByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)edu.uiuc.ncsa.security.storage.data.MapConverter<V>getMapConverter()List<V>getMostRecent(int n, List<String> attributes)-
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, getStorageDirectory, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, remove, remove, removeByID, removeIndexEntry, save, search, search, search, search, setIndexDirectory, setStorageDirectory, size, size, toString, update, 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()
-
getByParentID
public List<V> getByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)
Description copied from interface:TXStoreGet a list of all records for a given parent.- Specified by:
getByParentIDin interfaceTXStore<V extends TXRecord>- Returns:
-
getIDsByParentID
public List<edu.uiuc.ncsa.security.core.Identifier> getIDsByParentID(edu.uiuc.ncsa.security.core.Identifier parentID)
- Specified by:
getIDsByParentIDin interfaceTXStore<V extends TXRecord>
-
getCountByParent
public int getCountByParent(edu.uiuc.ncsa.security.core.Identifier parentID)
- Specified by:
getCountByParentin interfaceTXStore<V extends TXRecord>
-
-