public class UserSettings
extends sirius.kernel.settings.ExtendedSettings
ExtendedSettings wrapper by a boilerplate method to quickly check for a permission given in the
settings.| Constructor and Description |
|---|
UserSettings(com.typesafe.config.Config config)
Creates a new wrapper for the given config.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasPermissionOfSetting(String key)
Determines if the current user has the permission given in the setting with the given key.
|
getDefault, getExtension, getExtensionspublic UserSettings(com.typesafe.config.Config config)
config - the config to wrappublic boolean hasPermissionOfSetting(String key)
key - the key used to lookup the permission to check forCopyright © 2018. All rights reserved.