* @return true if reindexing succeeded
*/
private boolean updateKnowledgeElementsIndex(final Study aStudy) {
- // boolean isOk = false;
- // try {
- // IndexService lucin = getIndex();
- //
- // for (Iterator<Scenario> i = aStudy.getScenariiList().iterator(); i
- // .hasNext();) {
- // Scenario scene = i.next();
- // for (Iterator<KnowledgeElement> j = scene
- // .getAllKnowledgeElements().iterator(); j.hasNext();) {
- // KnowledgeElement kelm = j.next();
- // lucin.update(kelm);
- // }
- // }
- // isOk = true;
- // } catch (Exception error) {
- // LOG.error("Unable to re-index Knowledge Elements, reason:",
- // error);
- // }
- // return isOk;
+// boolean isOk = false;
+// try {
+// IndexService lucin = getIndex();
+// for(Scenario scenario : aStudy.getScenariiList()) {
+// for (KnowledgeElement element : scenario.getAllKnowledgeElements()) {
+// lucin.update(element);
+// }
+// }
+// isOk = true;
+// } catch (Exception error) {
+// LOG.error("Unable to re-index Knowledge Elements, reason:",
+// error);
+// }
+// return isOk;
return true;
}
page.editscenarioproperties
</result>
</action>
- <action name="init-edit-readers" class="studyPropertiesAction"
+ <action name="init-edit-readers" class="studyPropertiesAction"
method="initEditReaders">
<result name="success" type="tiles">
page.editstudyproperties
</action>
<action name="setKnowledge" class="editKnowledgeElementAction"
method="setKnowledge">
- <result name="success" type="tiles">
- page.displaystudy
- </result>
+ <result name="success" type="redirectAction">
+ study/open-study
+ </result>
</action>
<action name="remove-knowledge"
class="editKnowledgeElementAction" method="deleteKnowledge">