Interface PreferencesStore
- All Known Implementing Classes:
PreferencesStoreImpl
public interface PreferencesStore
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteKeys(Node node, Set<String> keys, @Nullable Principal principal) Removes all settings of the given keys from the given node.voiddeleteNode(Node node, boolean subNodes, @Nullable Principal principal) Deletes all preferences entries for the given node using the given or current principal and current business unit.voiddeleteValue(Node node, String key, String value) Removes all settings of the given key value combination from the given node regardless of the principalloadPreferences(Node node, @Nullable Principal principal) Loads the preferences map from the store for the given node.loadValues(Node node, Iterable<String> keys, @Nullable Principal principal) Loads a single values from the given or current users settings associated to the current buseiness unit.voidsavePreferences(Node node, @Nullable Principal principal, Map<String, String> values, Set<String> removeKeys) Persists the new values for the given node.
-
Method Details
-
savePreferences
void savePreferences(Node node, @Nullable @Nullable Principal principal, Map<String, String> values, Set<String> removeKeys) Persists the new values for the given node. The keys in the set removeKeys get removed from the store. It is assumed that no key in the removeKeys set has a mapping in the new values map. The keyset of the map and the removedKeys are always considered disjoint. -
loadPreferences
-
loadValues
-
deleteNode
-
deleteKeys
-
deleteValue
-