Class StorageSettings
java.lang.Object
com.codingchili.core.configuration.system.StorageSettings
- All Implemented Interfaces:
Configurable
,Serializable
configuration used by storages.
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd(RemoteStorage config, Class plugin)
getPath()
Get the path of a loaded configuration file.getSettingsForPlugin(Class<?> plugin)
void
setMaxResults(Integer maxResults)
void
setMinFeedbackChars(Integer minFeedbackChars)
void
setStorage(HashMap<String,RemoteStorage> storage)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.codingchili.core.configuration.Configurable
save, serialize, setPath
-
Constructor Details
-
StorageSettings
public StorageSettings()
-
-
Method Details
-
getPath
Description copied from interface:Configurable
Get the path of a loaded configuration file.- Specified by:
getPath
in interfaceConfigurable
- Returns:
- the directory path to the configuration file.
-
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
- Parameters:
maxResults
- sets the recommended number of results to return from queries.
-
getStorage
- Returns:
- the configuration of a remote storage.
-
setStorage
- Parameters:
storage
- a set of configurations mapped with plugins to set.
-
add
- Parameters:
config
- the remote configuration to addplugin
- the plugin as a string that the configuration applies to- Returns:
- fluent
-
getSettingsForPlugin
- Parameters:
plugin
- the plugin to get the configuration for- Returns:
- the configuration associated with the given plugin
-
getMinFeedbackChars
- Returns:
- the minimum number of characters that must be provided in order to query for auto-completion. This is a recommendation only.
-
setMinFeedbackChars
- Parameters:
minFeedbackChars
- set the recommendation minimum number of characters that is required before returning results for auto-completion.
-