Package | Description |
---|---|
org.uberfire.preferences.shared | |
org.uberfire.preferences.shared.bean | |
org.uberfire.preferences.shared.impl |
Modifier and Type | Method and Description |
---|---|
PreferenceScope |
PreferenceScope.childScope()
Child scope, a scope inside a scope.
|
PreferenceScope |
PreferenceScopeFactory.cloneScope(PreferenceScope scope)
Clones the passed scope to a new instance.
|
PreferenceScope |
PreferenceScopeFactory.createScope(PreferenceScope... scopes)
Builds a new preference scope, that contains the following ones as child scopes.
|
PreferenceScope |
PreferenceScopeFactory.createScope(String type)
Builds a new preference scope, that does not require a custom key.
|
PreferenceScope |
PreferenceScopeFactory.createScope(String type,
PreferenceScope childScope)
Builds a new preference scope, that does not require a custom key, and has the passed child scope.
|
PreferenceScope |
PreferenceScopeFactory.createScope(String type,
String key)
Builds a new preference scope, that requires a custom key.
|
PreferenceScope |
PreferenceScopeFactory.createScope(String type,
String key,
PreferenceScope childScope)
Builds a new preference scope, that requires a custom key, and has the passed child scope.
|
PreferenceScope |
PreferenceScopeResolver.resolve(String... scopeTypes)
Returns a PreferenceScope that belongs to the resolution strategy hierarchy, based on the passed
types.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
PreferenceStore.all(PreferenceScope scope)
Retrieves all defined preferences from a specific scope.
|
Collection<String> |
PreferenceStorage.allKeys(PreferenceScope scope)
Returns all preference keys defined in a specific scope.
|
PreferenceScope |
PreferenceScopeFactory.cloneScope(PreferenceScope scope)
Clones the passed scope to a new instance.
|
PreferenceScope |
PreferenceScopeFactory.createScope(PreferenceScope... scopes)
Builds a new preference scope, that contains the following ones as child scopes.
|
PreferenceScope |
PreferenceScopeFactory.createScope(String type,
PreferenceScope childScope)
Builds a new preference scope, that does not require a custom key, and has the passed child scope.
|
PreferenceScope |
PreferenceScopeFactory.createScope(String type,
String key,
PreferenceScope childScope)
Builds a new preference scope, that requires a custom key, and has the passed child scope.
|
void |
PreferenceStorage.delete(PreferenceScope scope,
String key)
Deletes a preference, in a specific scope, if it exists.
|
boolean |
PreferenceStorage.exists(PreferenceScope preferenceScope,
String key)
Checks if a given preference key is defined in a certain scope.
|
<T> T |
PreferenceStore.get(PreferenceScope scope,
String key)
Retrieves a preference value from a specific scope.
|
<T> T |
PreferenceStore.get(PreferenceScope scope,
String key,
T defaultValue)
Retrieves a preference value from a specific scope.
|
<T> void |
PreferenceStore.put(PreferenceScope scope,
Map<String,T> valueByKey)
Stores several preferences inside a specific scope.
|
<T> void |
PreferenceStore.put(PreferenceScope scope,
String key,
T value)
Stores a preference inside a specific scope.
|
<T> void |
PreferenceStore.putIfAbsent(PreferenceScope scope,
Map<String,T> valueByKey)
Stores several preferences inside a specific scope, if they are not already defined in that scope.
|
<T> void |
PreferenceStore.putIfAbsent(PreferenceScope scope,
String key,
T value)
Stores a preference inside a specific scope, if it is not already defined in that scope.
|
<T> T |
PreferenceStorage.read(PreferenceScope preferenceScope,
String key)
Tries to read a preference value from a specific scope.
|
void |
PreferenceStore.remove(PreferenceScope scope,
String key)
Removes a preference from a specific scope.
|
Map<String,Object> |
PreferenceStore.search(PreferenceScope scope,
Collection<String> keys)
Retrieves several preferences, which keys were passed, from a specific scope.
|
void |
PreferenceScopeValidator.validate(PreferenceScope scope)
Checks if a scope is valid.
|
void |
PreferenceStorage.write(PreferenceScope scope,
String key,
Object value)
(Over) Writes a preference value related to a preference key, for a specific scope.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
PreferenceStorage.allKeys(List<PreferenceScope> scopes)
Returns all preference keys defined in all passed scopes.
|
void |
PreferenceStore.remove(List<PreferenceScope> scopes,
String key)
Removes a preference from a list of scopes.
|
Modifier and Type | Method and Description |
---|---|
void |
PreferenceBeanServerStore.save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScope scope)
Saves all preferences passed, following the passed scope resolution strategy.
|
void |
PreferenceBeanStore.save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScope scope,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preferences passed, following the passed scope resolution strategy.
|
default void |
BasePreference.save(PreferenceScope customScope)
Saves the preference content recursively through its properties.
|
default void |
BasePreference.save(PreferenceScope customScope,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
BasePreference.save(PreferenceScope customScope,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
PreferenceBeanServerStore.save(T portablePreference,
PreferenceScope scope)
Saves all preference data, inside the passed scope.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
PreferenceBeanStore.save(T portablePreference,
PreferenceScope scope,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preference data, following the passed scope resolution strategy.
|
Modifier and Type | Class and Description |
---|---|
class |
PreferenceScopeImpl
Default portable implementation for a preference scope, containing a type (required), a key (required)
and a child scope (optional).
|
Modifier and Type | Method and Description |
---|---|
PreferenceScope |
PreferenceScopeImpl.childScope() |
PreferenceScope |
PreferenceScopeFactoryImpl.cloneScope(PreferenceScope scope) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(PreferenceScope... scopes) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(String type) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(String type,
PreferenceScope childScope) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(String type,
String key) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(String type,
String key,
PreferenceScope childScope) |
PreferenceScope |
PreferenceScopeResolutionStrategyInfo.defaultScope() |
PreferenceScope |
DefaultPreferenceScopeResolutionStrategy.getDefaultScope(List<PreferenceScope> order) |
PreferenceScope |
PreferenceScopedValue.getScope() |
PreferenceScope |
DefaultPreferenceScopeResolver.resolve(String... scopeTypes) |
Modifier and Type | Method and Description |
---|---|
List<PreferenceScope> |
PreferenceScopeResolutionStrategyInfo.order() |
Modifier and Type | Method and Description |
---|---|
PreferenceScope |
PreferenceScopeFactoryImpl.cloneScope(PreferenceScope scope) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(PreferenceScope... scopes) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(String type,
PreferenceScope childScope) |
PreferenceScope |
PreferenceScopeFactoryImpl.createScope(String type,
String key,
PreferenceScope childScope) |
void |
PreferenceScopeValidatorImpl.validate(PreferenceScope scope) |
Modifier and Type | Method and Description |
---|---|
PreferenceScope |
DefaultPreferenceScopeResolutionStrategy.getDefaultScope(List<PreferenceScope> order) |
Constructor and Description |
---|
PreferenceScopedValue(T value,
PreferenceScope scope) |
PreferenceScopeImpl(String type,
String key,
PreferenceScope childScope) |
PreferenceScopeResolutionStrategyInfo(List<PreferenceScope> order,
PreferenceScope defaultScope) |
Constructor and Description |
---|
DefaultPreferenceScopeResolver(List<PreferenceScope> order) |
PreferenceScopeResolutionStrategyInfo(List<PreferenceScope> order,
PreferenceScope defaultScope) |
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.