Package org.oa4mp.client.api.storage
Class FSAssetStore
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<Asset>
-
- org.oa4mp.client.api.storage.FSAssetStore
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<Asset>,Map<edu.uiuc.ncsa.security.core.Identifier,Asset>,AssetStore
public class FSAssetStore extends edu.uiuc.ncsa.security.storage.FileStore<Asset> implements AssetStore
Created by Jeff Gaynor
on 1/28/13 at 1:14 PM
-
-
Constructor Summary
Constructors Constructor Description FSAssetStore(File file, edu.uiuc.ncsa.security.core.IdentifiableProvider idp, edu.uiuc.ncsa.security.storage.data.MapConverter cp, boolean removeEmptyFiles, boolean removeFailedFiles)FSAssetStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter converter, boolean removeEmptyFiles, boolean removeFailedFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Assetget(String identifier)Simplifying calls.AssetgetByToken(edu.uiuc.ncsa.security.core.Identifier token)Part of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.List<Asset>getMostRecent(int n, List<String> attributes)voidputByToken(Asset asset)voidrealSave(boolean checkExists, Asset t)voidsave(String identifier, Asset identifiable)-
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, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, 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
-
-
-
-
Constructor Detail
-
FSAssetStore
public FSAssetStore(File file, edu.uiuc.ncsa.security.core.IdentifiableProvider idp, edu.uiuc.ncsa.security.storage.data.MapConverter cp, boolean removeEmptyFiles, boolean removeFailedFiles)
-
-
Method Detail
-
get
public Asset get(String identifier)
Description copied from interface:AssetStoreSimplifying calls. These should simply convert the string to an identifier.- Specified by:
getin interfaceAssetStore- Returns:
-
save
public void save(String identifier, Asset identifiable)
- Specified by:
savein interfaceAssetStore
-
realSave
public void realSave(boolean checkExists, Asset t)- Overrides:
realSavein classedu.uiuc.ncsa.security.storage.FileStore<Asset>
-
getByToken
public Asset getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Description copied from interface:AssetStorePart of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.- Specified by:
getByTokenin interfaceAssetStore- Returns:
-
putByToken
public void putByToken(Asset asset)
- Specified by:
putByTokenin interfaceAssetStore
-
-