Class 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

    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.security.storage.FileStore

        indexDirectory, storageDirectory
      • Fields inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore

        converter, identifiableProvider, initializer
      • Fields inherited from interface edu.uiuc.ncsa.security.core.Store

        VERSION_TAG
    • 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)  
    • Constructor Detail

      • FSAssetStore

        public FSAssetStore​(File file,
                            edu.uiuc.ncsa.security.core.IdentifiableProvider idp,
                            edu.uiuc.ncsa.security.storage.data.MapConverter cp,
                            boolean removeEmptyFiles)
      • FSAssetStore

        public FSAssetStore​(File storeDirectory,
                            File indexDirectory,
                            edu.uiuc.ncsa.security.core.IdentifiableProvider identifiableProvider,
                            edu.uiuc.ncsa.security.storage.data.MapConverter converter,
                            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 interface AssetStore
        Returns:
      • realSave

        public void realSave​(boolean checkExists,
                             Asset t)
        Overrides:
        realSave in class edu.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 interface AssetStore
        Returns:
      • getMostRecent

        public List<Asset> getMostRecent​(int n,
                                         List<String> attributes)
        Specified by:
        getMostRecent in interface edu.uiuc.ncsa.security.core.Store<Asset>