class ViewConfigurationImpl extends Object implements ViewConfiguration
PersistenceLayer
.Modifier and Type | Field and Description |
---|---|
private RoleModel |
configurable
A role that points to the object this view configuration applies to.
|
private ModelFactoryImpl |
mf |
private ViewConfigurationModelImpl |
model
The underlying model.
|
private PersistenceLayer |
pl |
Constructor and Description |
---|
ViewConfigurationImpl(RoleModel configurable,
ViewConfigurationModelImpl model,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
void |
_addConfigTopic(TopicModelImpl configTopic) |
Topic |
addConfigTopic(TopicModel configTopic)
Adds a config topic to this view config.
|
Topic |
getConfigTopic(String configTypeUri) |
Iterable<Topic> |
getConfigTopics() |
ViewConfigurationModel |
getModel() |
void |
setConfigValue(String configTypeUri,
String childTypeUri,
Object value)
Sets a single value of a certain config topic.
|
private ViewConfigurationModelImpl model
private RoleModel configurable
private PersistenceLayer pl
private ModelFactoryImpl mf
ViewConfigurationImpl(RoleModel configurable, ViewConfigurationModelImpl model, PersistenceLayer pl)
public Iterable<Topic> getConfigTopics()
getConfigTopics
in interface ViewConfiguration
public Topic getConfigTopic(String configTypeUri)
getConfigTopic
in interface ViewConfiguration
null
if there is none.public Topic addConfigTopic(TopicModel configTopic)
ViewConfiguration
addConfigTopic
in interface ViewConfiguration
public void setConfigValue(String configTypeUri, String childTypeUri, Object value)
ViewConfiguration
setConfigValue
in interface ViewConfiguration
configTypeUri
- The type URI of the config topic, e.g. "dm4.webclient.view_config"childTypeUri
- The child type URI of the config value to set, e.g. "dm4.webclient.icon"value
- The config value (String, Integer, Long, Double, or Boolean)public ViewConfigurationModel getModel()
getModel
in interface ViewConfiguration
public void _addConfigTopic(TopicModelImpl configTopic)
Copyright © 2018. All Rights Reserved.