edu.uiuc.ncsa.myproxy.oa4mp.client.storage
Class FSAssetStore

java.lang.Object
  extended by edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
      extended by edu.uiuc.ncsa.security.storage.FileStore<Asset>
          extended by edu.uiuc.ncsa.myproxy.oa4mp.client.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


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class edu.uiuc.ncsa.security.storage.FileStore
indexDirectory, storageDirectory
 
Fields inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore
CHARSET, converter, DIGEST_ALGORITHM, identifiableProvider, initializer
 
Constructor Summary
FSAssetStore(File storeDirectory, File indexDirectory, javax.inject.Provider identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
           
FSAssetStore(File file, javax.inject.Provider idp, edu.uiuc.ncsa.security.storage.data.MapConverter cp)
           
 
Method Summary
 Asset get(String identifier)
          Simplifying calls.
 void save(String identifier, Asset identifiable)
           
 
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore
clear, containsKey, containsValue, createIndexEntry, delete, entrySet, get, getIndexEntry, getInitializer, getItemFile, getItemFile, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, remove, removeIndexEntry, save, size, toString, update, values
 
Methods inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore
create, createIndexEntry, getCreatedItems, hashString, hexEncode, isEmpty, loadStream, objectDeserialize, put, put, serializeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, register, save, update
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

FSAssetStore

public FSAssetStore(File file,
                    javax.inject.Provider idp,
                    edu.uiuc.ncsa.security.storage.data.MapConverter cp)

FSAssetStore

public FSAssetStore(File storeDirectory,
                    File indexDirectory,
                    javax.inject.Provider identifiableProvider,
                    edu.uiuc.ncsa.security.storage.data.MapConverter converter)
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 interface AssetStore
Returns:

save

public void save(String identifier,
                 Asset identifiable)
Specified by:
save in interface AssetStore


Copyright © 2013. All Rights Reserved.