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 |
---|---|
PreferenceHierarchyElement<?> |
PreferenceBeanServerStore.buildHierarchyStructureForPreference(String identifier,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Builds a tree hierarchy that begins with the root preference bean which identifier was passed and
grows based on their sub-preferences.
|
default void |
BasePreference.load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy)
Loads the preference content recursively through its properties.
|
default void |
BasePreference.load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<T> successCallback,
ParameterizedCommand<Throwable> errorCallback)
Loads the preference content recursively through its properties.
|
default void |
BasePreference.load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<Throwable> errorCallback)
Loads the preference content recursively through its properties.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
PreferenceBeanServerStore.load(T emptyPortablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Loads all preference bean properties, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
PreferenceBeanStore.load(T emptyPortablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
ParameterizedCommand<T> successCallback,
ParameterizedCommand<Throwable> errorCallback)
Loads all preference bean properties, following the passed scope resolution strategy.
|
void |
PreferenceBeanServerStore.save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Saves all preferences passed, following the passed scope resolution strategy.
|
void |
PreferenceBeanStore.save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preferences passed, following the passed scope resolution strategy.
|
default void |
BasePreference.save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy)
Saves the preference content recursively through its properties.
|
default void |
BasePreference.save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
default void |
BasePreference.save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<Throwable> errorCallback)
Saves the preference content recursively through its properties.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
PreferenceBeanServerStore.save(T portablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Saves all preference data, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
PreferenceBeanStore.save(T portablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preference data, following the passed scope resolution strategy.
|
Modifier and Type | Method and Description |
---|---|
void |
PortablePreferenceMockBeanGeneratedImpl.load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy) |
void |
PortablePreferenceMockBeanGeneratedImpl.load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<PortablePreferenceMock> successCallback,
ParameterizedCommand<Throwable> errorCallback) |
void |
PortablePreferenceMockBeanGeneratedImpl.load(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<Throwable> errorCallback) |
void |
PortablePreferenceMockBeanGeneratedImpl.save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy) |
void |
PortablePreferenceMockBeanGeneratedImpl.save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback) |
void |
PortablePreferenceMockBeanGeneratedImpl.save(PreferenceScopeResolutionStrategyInfo customScopeResolutionStrategy,
ParameterizedCommand<Throwable> errorCallback) |
Modifier and Type | Method and Description |
---|---|
PreferenceScopeResolutionStrategyInfo |
DefaultPreferenceScopeResolutionStrategy.getInfo() |
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.