Ticket #522 (closed Enhancement: fixed)
Core API: fetch a DeepaMehtaObject's childs selectively
Reported by: | jri | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.2 |
Component: | DeepaMehta Standard Distribution | Version: | 4.1.2 |
Keywords: | Cc: | dgf, Malte | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-core |
Description
In conjunction with implementing a ViewmodelCustomizer? (see #505):
When a topicmap is fetched from the DB the developer might want fetch certain (or all) childs of the (or some) topics contained in the topicmap, e.g. fetching a Note's body text. By default no childs are fetched, only the topic's value (= Title in case of Note topics) is contained in the topicmap send to the client.
Objective of this ticket is equipping the DeepaMehtaObject? API with a fetchChild(typeUri) (and possibly fetchAllChilds()) method. So the developer of a ViewmodelCustomizer? can call it on the topic passed to the enrichViewProperties() hook (which possibly should be renamed enrichTopic then).
Change History
comment:2 Changed 11 years ago by Jörg Richter
Core: extend DeepaMehtaObject? API (#522, #505).
The DeepaMehtaObject? base interface specifies a new method:
void loadChildTopics(String childTypeUri)
It loads the object's childs specified by its type URI.
If the childs are loaded already nothing is performed.
Can be used for both, "one" and "many"-valued childs.
This method is of interest for Viewmodel Customizer implementers (see #505).
See #522.
comment:3 Changed 11 years ago by Jörg Richter
Core: extend DeepaMehtaObject? API (#522, #505).
The DeepaMehtaObject? base interface specifies a new method:
void loadChildTopics(String childTypeUri)
It loads the object's childs specified by its type URI.
If the childs are loaded already nothing is performed.
Can be used for both, "one" and "many"-valued childs.
This method is of interest for Viewmodel Customizer implementers (see #505).
See #522.
comment:4 Changed 11 years ago by jri
- Status changed from accepted to closed
- Resolution set to fixed
comment:5 Changed 11 years ago by jri
- Status changed from closed to reopened
- Cc ziegi removed
- Resolution fixed deleted
A parameter less form, which load *all* child topics (according to the type definition) should be added as well.
void loadChildTopics()
This need originates from the NotiZEN application.
comment:6 Changed 11 years ago by Jörg Richter
- Status changed from reopened to closed
- Resolution set to fixed
Core API: add loadChildTopics() method (#522).
The DeepaMehtaObject? base interface specifies a new method:
void loadChildTopics()
It loads all the object's child topics.
Close #522.