Class FSClientStore<V extends Client>

  • All Implemented Interfaces:
    BaseClientStore<V>, ClientStore<V>, edu.uiuc.ncsa.security.core.Store<V>, edu.uiuc.ncsa.security.storage.MonitoredStoreInterface<V>, Map<edu.uiuc.ncsa.security.core.Identifier,​V>

    public abstract class FSClientStore<V extends Client>
    extends edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore<V>
    implements ClientStore<V>
    File-based storage for clients.

    Created by Jeff Gaynor
    on 11/3/11 at 3:40 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 
      Modifier Constructor Description
        FSClientStore​(File f, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)  
      protected FSClientStore​(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<edu.uiuc.ncsa.security.core.Identifier> getByApprover​(String approver, ClientApprovalStore clientApprovalStore)  
      List<edu.uiuc.ncsa.security.core.Identifier> getByStatus​(String status, ClientApprovalStore clientApprovalStore)
      Retrieve all clients of a given type from the approval store for the given status.
      edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()  
      void realSave​(boolean checkExists, V t)  
      • Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.MonitoredFileStore

        addLastAccessedEventListener, doUpkeep, doUpkeep, fireLastAccessedEvent, get, getLastAccessedEventListeners, getMostRecent, getUpkeepConfiguration, getUuid, hasUpkeepConfiguration, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled, setUpkeepConfiguration, updateHook
      • Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore

        checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, getAll, getIndexDirectory, getIndexEntry, getItemFile, getItemFile, getStorageDirectory, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, register, remove, remove, removeIndexEntry, save, search, search, search, setIndexDirectory, setStorageDirectory, 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 interface edu.uiuc.ncsa.security.core.Store

        create, getAll, getMostRecent, getXMLConverter, register, remove, save, search, search, search, size, update
    • Constructor Detail

      • FSClientStore

        protected FSClientStore​(File storeDirectory,
                                File indexDirectory,
                                edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp,
                                edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp,
                                boolean removeEmptyFiles,
                                boolean removeFailedFiles)
      • FSClientStore

        public FSClientStore​(File f,
                             edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<V> idp,
                             edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp,
                             boolean removeEmptyFiles,
                             boolean removeFailedFiles)
    • Method Detail

      • getMapConverter

        public edu.uiuc.ncsa.security.storage.data.MapConverter<V> getMapConverter()
        Specified by:
        getMapConverter in interface ClientStore<V extends Client>
        Overrides:
        getMapConverter in class edu.uiuc.ncsa.security.storage.FileStore<V extends Client>
      • realSave

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