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 |
---|---|
private void |
_addConfigTopic(TopicModelImpl configTopic) |
private void |
_setConfigValue(String configTypeUri,
ChildTopicsModel childs) |
Topic |
addConfigTopic(TopicModel configTopic)
Adds a config topic to this view config.
|
Topic |
getConfigTopic(String configTypeUri) |
Iterable<Topic> |
getConfigTopics() |
ViewConfigurationModel |
getModel() |
ViewConfiguration |
setConfigValue(String configTypeUri,
String childTypeUri,
Object value)
Sets a single value of a certain config topic.
|
ViewConfiguration |
setConfigValueRef(String configTypeUri,
String childTypeUri,
Object topicIdOrUri) |
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 ViewConfiguration setConfigValue(String configTypeUri, String childTypeUri, Object value)
ViewConfiguration
setConfigValue
in interface ViewConfiguration
configTypeUri
- The type URI of the config topic, e.g. "dmx.webclient.view_config"childTypeUri
- The child type URI of the config value to set, e.g. "dmx.webclient.icon"value
- The config value (String, Integer, Long, Double, or Boolean)public ViewConfiguration setConfigValueRef(String configTypeUri, String childTypeUri, Object topicIdOrUri)
setConfigValueRef
in interface ViewConfiguration
public ViewConfigurationModel getModel()
getModel
in interface ViewConfiguration
private void _setConfigValue(String configTypeUri, ChildTopicsModel childs)
private void _addConfigTopic(TopicModelImpl configTopic)
Copyright © 2018. All Rights Reserved.