|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the extending interface for method chaining.@NotFinalAPI public interface SupportsClientProperties<E>
Interfaces extending this interface support persistence for a properties map (string to string) by namespace.
The map from theclientProperties(String)
can be changed freely unless otherwise noted in the extending interface.
When the object extending this interface is saved with the object-specific save method, this map is also saved.
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
clientProperties(java.lang.String namespace)
Returns a client properties map that can be changed freely and is saved when the object of the extending interface is saved. |
java.lang.String |
clientProperty(java.lang.String namespace,
java.lang.String key)
Returns the client property for the namespace and key, or null if the namespace does not exist or the key does not exist in the namespace. |
java.util.Set<java.lang.String> |
usedNamespaces()
Returns the set of all the namespaces used in this object. |
E |
withClientProperty(java.lang.String namespace,
java.lang.String key,
java.lang.String value)
Adds the given key-value pair to the given namespace, returning "this" for method chaining. |
Method Detail |
---|
java.util.Map<java.lang.String,java.lang.String> clientProperties(java.lang.String namespace)
namespace
- the namespace of the properties.
java.util.Set<java.lang.String> usedNamespaces()
E withClientProperty(java.lang.String namespace, java.lang.String key, java.lang.String value)
namespace
- the namespace.key
- the key.value
- the value.
java.lang.String clientProperty(java.lang.String namespace, java.lang.String key)
namespace
- the namespace.key
- the key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |