]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Make private/public operation the study remain the knowledge state.
authormka <mka@opencascade.com>
Thu, 4 Apr 2013 13:36:26 +0000 (13:36 +0000)
committermka <mka@opencascade.com>
Thu, 4 Apr 2013 13:36:26 +0000 (13:36 +0000)
Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java
Workspace/Siman/src/struts.xml

index 29a27d4cb891da5898b86c1dc75839d19f51a888..4660ca75898c9be4f58134a98fc780e07401e95f 100644 (file)
@@ -761,25 +761,20 @@ public class StudyServiceImpl implements StudyService {
         * @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;
        }
 
index 965f780801b7668b2f33e1edd4c0dd50fd4fefc1..a663ed5e7493dc891aba5eefcb525c762a6b8f09 100644 (file)
                                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">