public interface PreferenceBeanServerStore extends PreferenceBeanStore
Modifier and Type | Method and Description |
---|---|
PreferenceHierarchyElement<?> |
buildHierarchyStructureForPreference(String identifier)
Builds a tree hierarchy that begins with the root preference bean which identifier was passed and
grows based on their sub-preferences.
|
PreferenceHierarchyElement<?> |
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.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
load(T emptyPortablePreference)
Loads all preference bean properties.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
load(T emptyPortablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Loads all preference bean properties, following the passed scope resolution strategy.
|
void |
save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences)
Saves all preferences passed.
|
void |
save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScope scope)
Saves all preferences passed, following the passed scope resolution strategy.
|
void |
save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Saves all preferences passed, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
save(T portablePreference)
Saves all preference data.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
save(T portablePreference,
PreferenceScope scope)
Saves all preference data, inside the passed scope.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> |
save(T portablePreference,
PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
Saves all preference data, following the passed scope resolution strategy.
|
<U extends BasePreference<U>,T extends BasePreferencePortable<U>> T load(T emptyPortablePreference)
U
- Preference bean type.T
- Preference bean generated portable type.emptyPortablePreference
- Newly created portable instance for the preference bean.<U extends BasePreference<U>,T extends BasePreferencePortable<U>> T load(T emptyPortablePreference, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
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.<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void save(T portablePreference)
U
- Preference bean type.T
- Preference bean generated portable type.portablePreference
- Preference instance to be saved.<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void save(T portablePreference, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
U
- Preference bean type.T
- Preference bean generated portable type.portablePreference
- Preference instance to be saved.scopeResolutionStrategyInfo
- Custom scope resolution strategy to follow.<U extends BasePreference<U>,T extends BasePreferencePortable<U>> void save(T portablePreference, PreferenceScope scope)
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.void save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences)
portablePreferences
- Preference instances to be saved.void save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
portablePreferences
- Preference instances to be saved.scopeResolutionStrategyInfo
- Custom scope resolution strategy to follow.void save(Collection<BasePreferencePortable<? extends BasePreference<?>>> portablePreferences, PreferenceScope scope)
portablePreferences
- Preference instances to be saved.scope
- Custom scope resolution strategy to follow.PreferenceHierarchyElement<?> buildHierarchyStructureForPreference(String identifier)
identifier
- Root preference identifier. Must not be null.PreferenceHierarchyElement<?> buildHierarchyStructureForPreference(String identifier, PreferenceScopeResolutionStrategyInfo scopeResolutionStrategyInfo)
identifier
- Root preference identifier. Must not be null.scopeResolutionStrategyInfo
- Custom scope resolution strategy to follow.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.