| Package | Description |
|---|---|
| org.uberfire.ext.preferences.shared | |
| org.uberfire.ext.preferences.shared.impl |
| Modifier and Type | Method and Description |
|---|---|
PreferenceScopeResolutionStrategyInfo |
PreferenceStore.getDefaultScopeResolutionStrategyInfo()
Provides a portable instance that has the scope resolution strategy order and the default scope
for preference persistence.
|
PreferenceScopeResolutionStrategyInfo |
PreferenceScopeResolutionStrategy.getInfo()
Defines the order of scopes that will be used when a preference value is searched, as well
the scope where a preference will be persisted if none is provided.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
PreferenceStore.all(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Retrieves all defined preferences.
|
Map<String,PreferenceScopedValue<Object>> |
PreferenceStore.allScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Retrieves all defined preferences.
|
boolean |
PreferenceStorage.exists(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key)
Checks if a given preference key is defined in any scope of the provided hierarchy.
|
<T> T |
PreferenceStore.get(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key)
Retrieves a preference value from the first scope of the scopeResolutionStrategy order that
has the preference defined.
|
<T> T |
PreferenceStore.get(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key,
T defaultValue)
Retrieves a preference value from the first scope of the scopeResolutionStrategy order that
has the preference defined.
|
<T> PreferenceScopedValue<T> |
PreferenceStore.getScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key)
Retrieves a scoped preference value from the first scope of the scopeResolutionStrategy order that
has the preference defined.
|
<T> PreferenceScopedValue<T> |
PreferenceStore.getScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key,
T defaultValue)
Retrieves a scoped preference value from the first scope of the scopeResolutionStrategy order that
has the preference defined.
|
<T> void |
PreferenceStore.put(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Map<String,T> valueByKey)
Stores several preferences inside the default scope (see
defaultScope. |
<T> void |
PreferenceStore.put(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key,
T value)
Stores a preference inside the default scope (see
defaultScope. |
<T> void |
PreferenceStore.putIfAbsent(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Map<String,T> valueByKey)
Stores several preferences inside the default scope (see
defaultScope,
if they are not already defined in that scope. |
<T> void |
PreferenceStore.putIfAbsent(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key,
T value)
Stores a preference inside the default scope (see
defaultScope,
if it is not already defined in that scope. |
<T> T |
PreferenceStorage.read(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key)
Tries to read a preference value from a scope hierarchy.
|
<T> PreferenceScopedValue<T> |
PreferenceStorage.readWithScope(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
String key)
Tries to read a preference value from a scope hierarchy.
|
Map<String,Object> |
PreferenceStore.search(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Collection<String> keys)
Retrieves several preferences, which keys were passed.
|
Map<String,PreferenceScopedValue<Object>> |
PreferenceStore.searchScoped(PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Collection<String> keys)
Retrieves several scoped preferences, which keys were passed.
|
| Modifier and Type | Method and Description |
|---|---|
PreferenceScopeResolutionStrategyInfo |
DefaultPreferenceScopeResolutionStrategy.getInfo() |
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.