Пример #1
0
 Topic storeTopic(TopicModel model, ClientState clientState, Directives directives) {
   setDefaults(model);
   dms.storage.createTopic(model);
   associateWithTopicType(model.getId(), model.getTypeUri());
   //
   AttachedTopic topic = new AttachedTopic(model, dms);
   topic.storeValue(clientState, directives);
   //
   return topic;
 }
Пример #2
0
 /** Low-level method. Used for bootstrapping. */
 void _createTopic(TopicModel model) {
   // Note: low-level (storage) call used here ### explain
   dms.storage.createTopic(model);
   dms.storage.setTopicValue(model.getId(), model.getSimpleValue());
 }