public interface PreferenceBeanStore
| Modifier and Type | Method and Description |
|---|---|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
load(T emptyPortablePreference,
ParameterizedCommand<T> successCallback,
ParameterizedCommand<Throwable> errorCallback)
Loads all preference bean properties.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
load(T emptyPortablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
ParameterizedCommand<T> successCallback,
ParameterizedCommand<Throwable> errorCallback)
Loads all preference bean properties, following the passed scope resolution strategy.
|
void |
save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preferences passed.
|
void |
save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScope scope,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preferences passed, following the passed scope resolution strategy.
|
void |
save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preferences passed, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
save(T portablePreference,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preference data.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
save(T portablePreference,
PreferenceScope scope,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preference data, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
save(T portablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo,
Command successCallback,
ParameterizedCommand<Throwable> errorCallback)
Saves all preference data, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void load(T emptyPortablePreference, ParameterizedCommand<T> successCallback, ParameterizedCommand<Throwable> errorCallback)
U - Preference bean type.T - Preference bean generated portable type.emptyPortablePreference - Newly created portable instance for the preference bean.successCallback - Callback with a loaded preference bean portable instance as a parameter.errorCallback - Error callback that returns the exception that occurred (if any).<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void load(T emptyPortablePreference, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, ParameterizedCommand<T> successCallback, ParameterizedCommand<Throwable> errorCallback)
U - Preference bean type.T - Preference bean generated portable type.emptyPortablePreference - Newly created portable instance for the preference bean.scopeResolutionStrategyInfo - Custom scope resolution strategy to follow.successCallback - Callback with a loaded preference bean portable instance as a parameter.errorCallback - Error callback that returns the exception that occurred (if any).<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void save(T portablePreference, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
U - Preference bean type.T - Preference bean generated portable type.portablePreference - Preference instance to be saved.successCallback - Success callback that indicates that the preference was saved.errorCallback - Error callback that returns the exception that occurred (if any).<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void save(T portablePreference, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
U - Preference bean type.T - Preference bean generated portable type.portablePreference - Preference instance to be saved.scopeResolutionStrategyInfo - Custom scope resolution strategy to follow.successCallback - Success callback that indicates that the preference was saved.errorCallback - Error callback that returns the exception that occurred (if any).<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void save(T portablePreference, PreferenceScope scope, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
U - Preference bean type.T - Preference bean generated portable type.portablePreference - Preference instance to be saved.scope - Custom scope inside which the preference should be saved.successCallback - Success callback that indicates that the preference was saved.errorCallback - Error callback that returns the exception that occurred (if any).void save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
portablePreferences - Preference instances to be saved.successCallback - Success callback that indicates that the preference was saved.errorCallback - Error callback that returns the exception that occurred (if any).void save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
portablePreferences - Preference instances to be saved.scopeResolutionStrategyInfo - Custom scope resolution strategy to follow.successCallback - Success callback that indicates that the preference was saved.errorCallback - Error callback that returns the exception that occurred (if any).void save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences, PreferenceScope scope, Command successCallback, ParameterizedCommand<Throwable> errorCallback)
portablePreferences - Preference instances to be saved.scope - Custom scope inside which the preference should be saved.successCallback - Success callback that indicates that the preference was saved.errorCallback - Error callback that returns the exception that occurred (if any).Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.