Salome HOME
Default document types mappings are moved from application settings (my.xml) to proje...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / StepServiceImpl.java
index fbbcb088fca0ec6e905b45abfa80cfbd0a7f97ff..281d57c341852330b919b6402c32cbeb2208f630 100644 (file)
@@ -24,7 +24,6 @@ import org.splat.dal.bo.som.KnowledgeElement;
 import org.splat.dal.bo.som.Publication;
 import org.splat.dal.bo.som.Scenario;
 import org.splat.dal.bo.som.SimulationContext;
-import org.splat.dal.bo.som.Study;
 import org.splat.dal.bo.som.UsedByRelation;
 import org.splat.dal.bo.som.UsesRelation;
 import org.splat.dal.bo.som.VersionsRelation;
@@ -378,7 +377,9 @@ public class StepServiceImpl implements StepService {
                newdoc.addRelation(aRel);
                
                // Update of usedby relations, if exist
-               List<Relation> relist = previous.getRelations(UsedByRelation.class);
+/* RKV: Consider the new version as not used by old dependent documents. 
+ * So these documents must be marked as outdated then.
+               List<Relation> relist = previous.getRelations(UsedByRelation.class);
                Study scope = aStep.getOwnerStudy();
                for (Iterator<Relation> i = relist.iterator(); i.hasNext();) {
                        UsedByRelation relation = (UsedByRelation) i.next();
@@ -389,6 +390,7 @@ public class StepServiceImpl implements StepService {
                                relation.moveTo(newdoc);
                        }
                }
+*/
                return new Publication(newdoc, aStep.getOwner());
        }