public class ViewConfigurationModel extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,TopicModel> |
viewConfig
Key: config topic type URI
|
Constructor and Description |
---|
ViewConfigurationModel() |
ViewConfigurationModel(org.codehaus.jettison.json.JSONObject configurable) |
ViewConfigurationModel(List<TopicModel> configTopics) |
Modifier and Type | Method and Description |
---|---|
void |
addConfigTopic(TopicModel configTopic) |
private TopicModel |
getConfigTopic(String configTypeUri) |
Iterable<TopicModel> |
getConfigTopics() |
Object |
getSetting(String configTypeUri,
String settingUri)
FIXME: to be dropped.
|
void |
toJSON(org.codehaus.jettison.json.JSONObject configurable) |
String |
toString() |
void |
updateConfigTopic(TopicModel configTopic) |
private Map<String,TopicModel> viewConfig
public ViewConfigurationModel()
public ViewConfigurationModel(List<TopicModel> configTopics)
public ViewConfigurationModel(org.codehaus.jettison.json.JSONObject configurable)
configurable
- A topic type, an association type, or an association definition.
### FIXME: the sole JSONArray should be passedpublic Iterable<TopicModel> getConfigTopics()
public void addConfigTopic(TopicModel configTopic)
public void updateConfigTopic(TopicModel configTopic)
public Object getSetting(String configTypeUri, String settingUri)
Read out a view configuration setting.
Compare to client-side counterpart: function get_view_config() in webclient.js
configTypeUri
- The type URI of the configuration topic, e.g. "dm4.webclient.view_config"settingUri
- The setting URI, e.g. "dm4.webclient.icon"null
if there is no such settingpublic void toJSON(org.codehaus.jettison.json.JSONObject configurable)
private TopicModel getConfigTopic(String configTypeUri)
Copyright © 2015. All Rights Reserved.