Class JSONFileStore<V extends edu.uiuc.ncsa.security.util.json.JSONEntry>

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Store<V>, edu.uiuc.ncsa.security.util.json.JSONStore<V>, Map<edu.uiuc.ncsa.security.core.Identifier,​V>

    public class JSONFileStore<V extends edu.uiuc.ncsa.security.util.json.JSONEntry>
    extends edu.uiuc.ncsa.security.storage.FileStore<V>
    implements edu.uiuc.ncsa.security.util.json.JSONStore<V>

    Created by Jeff Gaynor
    on 2/20/19 at 10:13 AM

    • 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
      JSONFileStore​(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter, boolean removeEmptyFiles)  
    • Constructor Detail

      • JSONFileStore

        public JSONFileStore​(File storeDirectory,
                             File indexDirectory,
                             edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider,
                             edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter,
                             boolean removeEmptyFiles)
    • Method Detail

      • getMostRecent

        public List<V> getMostRecent​(int n,
                                     List<String> attributes)
        Specified by:
        getMostRecent in interface edu.uiuc.ncsa.security.core.Store<V extends edu.uiuc.ncsa.security.util.json.JSONEntry>
      • realSave

        public void realSave​(boolean checkExists,
                             V t)
        Overrides:
        realSave in class edu.uiuc.ncsa.security.storage.FileStore<V extends edu.uiuc.ncsa.security.util.json.JSONEntry>