public interface ViewConfigurationModel
Config topics can be accessed by their type URI. A view config can contain only one config topic with a certain type URI.
Modifier and Type | Method and Description |
---|---|
void |
addConfigTopic(TopicModel configTopic)
Adds a config topic to this view config.
|
TopicModel |
getConfigTopic(String configTypeUri) |
Iterable<? extends TopicModel> |
getConfigTopics() |
Object |
getConfigValue(String configTypeUri,
String childTypeUri)
Lookup a view config value.
|
org.codehaus.jettison.json.JSONArray |
toJSONArray() |
void |
updateConfigTopic(TopicModel configTopic) |
Iterable<? extends TopicModel> getConfigTopics()
TopicModel getConfigTopic(String configTypeUri)
null
if there is none.void addConfigTopic(TopicModel configTopic)
RuntimeException
- if this view config already contains a config topic with the same type URI.void updateConfigTopic(TopicModel configTopic)
Object getConfigValue(String configTypeUri, String childTypeUri)
Compare to client-side counterpart: function get_view_config() in webclient.js
configTypeUri
- The type URI of the config topic, e.g. "dm4.webclient.view_config"childTypeUri
- The child type URI of the config value to lookup, e.g. "dm4.webclient.icon"null
if no value is setorg.codehaus.jettison.json.JSONArray toJSONArray()
Copyright © 2017. All Rights Reserved.