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:
AssetStore
,edu.uiuc.ncsa.security.core.Store<Asset>
,Map<edu.uiuc.ncsa.security.core.Identifier,Asset>
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)
FSAssetStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter converter, boolean removeEmptyFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Asset
get(String identifier)
Simplifying calls.Asset
getByToken(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)
void
putByToken(Asset asset)
void
realSave(boolean checkExists, Asset t)
void
save(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, getIndexEntry, getItemFile, getItemFile, getMapConverter, 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
-
-
-
-
Constructor Detail
-
FSAssetStore
public FSAssetStore(File file, edu.uiuc.ncsa.security.core.IdentifiableProvider idp, edu.uiuc.ncsa.security.storage.data.MapConverter cp, boolean removeEmptyFiles)
-
-
Method Detail
-
get
public Asset get(String identifier)
Description copied from interface:AssetStore
Simplifying calls. These should simply convert the string to an identifier.- Specified by:
get
in interfaceAssetStore
- Returns:
-
save
public void save(String identifier, Asset identifiable)
- Specified by:
save
in interfaceAssetStore
-
realSave
public void realSave(boolean checkExists, Asset t)
- Overrides:
realSave
in classedu.uiuc.ncsa.security.storage.FileStore<Asset>
-
getByToken
public Asset getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Description copied from interface:AssetStore
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.- Specified by:
getByToken
in interfaceAssetStore
- Returns:
-
putByToken
public void putByToken(Asset asset)
- Specified by:
putByToken
in interfaceAssetStore
-
-