Class StorageSettings

java.lang.Object
com.codingchili.core.configuration.system.StorageSettings
All Implemented Interfaces:
Configurable, Serializable

public class StorageSettings extends Object implements Configurable
configuration used by storages.
See Also:
Serialized Form
  • Constructor Details

    • StorageSettings

      public StorageSettings()
  • Method Details

    • getPath

      public String getPath()
      Description copied from interface: Configurable
      Get the path of a loaded configuration file.
      Specified by:
      getPath in interface Configurable
      Returns:
      the directory path to the configuration file.
    • getMaxResults

      public Integer getMaxResults()
      Returns:
      the max number of results that should be returned for queries. This is a recommendation only, should not be applied for enumeration queries.
    • setMaxResults

      public void setMaxResults(Integer maxResults)
      Parameters:
      maxResults - sets the recommended number of results to return from queries.
    • getStorage

      public HashMap<String,​RemoteStorage> getStorage()
      Returns:
      the configuration of a remote storage.
    • setStorage

      public void setStorage(HashMap<String,​RemoteStorage> storage)
      Parameters:
      storage - a set of configurations mapped with plugins to set.
    • add

      public StorageSettings add(RemoteStorage config, Class plugin)
      Parameters:
      config - the remote configuration to add
      plugin - the plugin as a string that the configuration applies to
      Returns:
      fluent
    • getSettingsForPlugin

      public RemoteStorage getSettingsForPlugin(Class<?> plugin)
      Parameters:
      plugin - the plugin to get the configuration for
      Returns:
      the configuration associated with the given plugin
    • getMinFeedbackChars

      public Integer getMinFeedbackChars()
      Returns:
      the minimum number of characters that must be provided in order to query for auto-completion. This is a recommendation only.
    • setMinFeedbackChars

      public void setMinFeedbackChars(Integer minFeedbackChars)
      Parameters:
      minFeedbackChars - set the recommendation minimum number of characters that is required before returning results for auto-completion.