Class FSTransactionStore<V extends BasicTransaction>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- org.oa4mp.delegation.common.storage.transactions.FSTransactionStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
,TransactionStore<V>
public abstract class FSTransactionStore<V extends BasicTransaction> extends edu.uiuc.ncsa.security.storage.FileStore<V> implements TransactionStore<V>
Implementation of a transaction store backed by the file system.Created by Jeff Gaynor
on Apr 28, 2010 at 3:01:10 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected TokenForge
tokenForge
-
Fields inherited from class edu.uiuc.ncsa.security.storage.FileStore
indexDirectory, storageDirectory
-
-
Constructor Summary
Constructors Modifier Constructor Description FSTransactionStore(File file, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, TokenForge tokenForge, edu.uiuc.ncsa.security.storage.data.MapConverter<V> mp, boolean removeEmptyFiles, boolean removeFailedFiles)
protected
FSTransactionStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, TokenForge tokenForge, edu.uiuc.ncsa.security.storage.data.MapConverter<V> mp, boolean removeEmptyFiles, boolean removeFailedFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get(AccessToken accessToken)
V
get(AuthorizationGrant authorizationGrant)
V
get(Verifier verifier)
edu.uiuc.ncsa.security.storage.data.MapConverter
getMapConverter()
V
realRemove(V thingie)
void
realSave(boolean checkExists, V t)
Add code to store index references to the transaction by access token, verifier and authorization grant.-
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, register, remove, remove, removeByID, 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
-
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, getAll, getMostRecent, getXMLConverter, register, remove, removeByID, save, search, search, search, size, update
-
Methods inherited from interface org.oa4mp.delegation.common.storage.TransactionStore
getByProxyID
-
-
-
-
Field Detail
-
tokenForge
protected TokenForge tokenForge
-
-
Constructor Detail
-
FSTransactionStore
protected FSTransactionStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, TokenForge tokenForge, edu.uiuc.ncsa.security.storage.data.MapConverter<V> mp, boolean removeEmptyFiles, boolean removeFailedFiles)
-
FSTransactionStore
public FSTransactionStore(File file, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, TokenForge tokenForge, edu.uiuc.ncsa.security.storage.data.MapConverter<V> mp, boolean removeEmptyFiles, boolean removeFailedFiles)
-
-
Method Detail
-
realSave
public void realSave(boolean checkExists, V t)
Add code to store index references to the transaction by access token, verifier and authorization grant.- Overrides:
realSave
in classedu.uiuc.ncsa.security.storage.FileStore<V extends BasicTransaction>
- Parameters:
checkExists
-t
-
-
realRemove
public V realRemove(V thingie)
- Overrides:
realRemove
in classedu.uiuc.ncsa.security.storage.FileStore<V extends BasicTransaction>
-
get
public V get(AuthorizationGrant authorizationGrant)
- Specified by:
get
in interfaceTransactionStore<V extends BasicTransaction>
-
get
public V get(AccessToken accessToken)
- Specified by:
get
in interfaceTransactionStore<V extends BasicTransaction>
-
get
public V get(Verifier verifier)
- Specified by:
get
in interfaceTransactionStore<V extends BasicTransaction>
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter getMapConverter()
- Specified by:
getMapConverter
in interfaceTransactionStore<V extends BasicTransaction>
- Overrides:
getMapConverter
in classedu.uiuc.ncsa.security.storage.FileStore<V extends BasicTransaction>
-
-