|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SettingService
Stores and removes a value associated with a key in JCR.
| Method Summary | |
|---|---|
SettingValue<?> |
get(Context context,
Scope scope,
String key)
Gets values associated with a specified composite key (context, scope, key) in the database. |
void |
remove(Context context)
Removes all values associated with a specified context from the database. |
void |
remove(Context context,
Scope scope)
Removes all values associated with a specified context and scope from the database. |
void |
remove(Context context,
Scope scope,
String key)
Removes a value associated with a specified composite key. |
void |
set(Context context,
Scope scope,
String key,
SettingValue<?> value)
Sets a value with the key that is composed by context, scope, key. |
| Method Detail |
|---|
void set(Context context,
Scope scope,
String key,
SettingValue<?> value)
context - The context with which the specified value is associated.scope - The scope with which the specified value is associated.key - The key with which the specified value is associated.value - The value associated with the specified key.
void remove(Context context,
Scope scope,
String key)
context - The context with which the specified value is associated.scope - The scope with which the specified value is associated.key - The key with which the specified value is associated.
void remove(Context context,
Scope scope)
context - The context with which the specified value is associated.
The context type must be USER and context, and Id must not be "null".scope - The scope with which the specified value is associated. The
scope.id must not be "null".void remove(Context context)
context - The context with which the specified value is associated.
The context type must be USER and context, and Id must not be "null".
SettingValue<?> get(Context context,
Scope scope,
String key)
context - The context with which the specified value is associated.
The context type must be USER and context and Id must not be "null".scope - The scope with which the specified value is associated. The
scope.id must not be "null".key - The key with which the specified value is associated.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||