Salome HOME
Refactoring continues: UserService is created instead of UserDirectory. Database...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / dal / bo / som / Publication.java
index c869da1c22d36d54f8900a7350b99586a671ce79..6dafc733cd1b74f0ba1e2f0866825d5a514e380c 100644 (file)
@@ -17,23 +17,12 @@ package org.splat.dal.bo.som;
  * @copyright OPEN CASCADE 2012
  */
 
-import java.io.FileNotFoundException;
 import java.util.ArrayList;
-import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
 
-import org.hibernate.Session;
 import org.splat.dal.bo.kernel.Persistent;
 import org.splat.dal.bo.kernel.Relation;
-import org.splat.dal.bo.kernel.User;
-import org.splat.dal.dao.som.Database;
-import org.splat.kernel.InvalidPropertyException;
-import org.splat.kernel.NotApplicableException;
-import org.splat.manox.Reader;
-import org.splat.manox.Toolbox;
-import org.splat.som.DocumentRights;
-import org.splat.som.Revision;
 import org.splat.som.Step;
 
 
@@ -93,21 +82,6 @@ public class Publication extends Persistent {
       else            return mydoc.addRelation( new UsesRelation(mydoc, to) );
     }
 
-/**
- * Undo the out-date operation.
- * 
- * @return true if the acceptance succeeds
- * @see    #outdate()
- * @see    DocumentRights#canAccept()
- */
-    public boolean actualize () {
-//  ---------------------------
-      if (!this.isOutdated()) return false;
-      isnew = 'Y';
-      Database.getSession().update(this);
-      return true;
-    }
-
 /**
  * Returns either the Study Scenario or the Study itself to which this publication belongs, depending on the Study Step into
  * which the referenced document has been published.<br/>
@@ -199,26 +173,7 @@ public class Publication extends Persistent {
        public void setIsnew(char isnew) {
                this.isnew = isnew;
        }
-/**
- * Out-dates this publication and recursively all publications using this one.
- * Typically, a publication is out-dated when modifying a document to which it depends.
- * 
- * @see #isOutdated()
- * @see #getProgressState()
- * @see #actualize()
- */
-    public void outdate () {
-//  ----------------------
-      if (this.isOutdated()) return;
-
-      List<Publication> relist = this.getRelations(UsedByRelation.class);
-      for (Iterator<Publication> i = relist.iterator(); i.hasNext(); ) {
-       i.next().outdate();
-      }
-      isnew = 'O';
-      Database.getSession().update(this);
-    }
-
+       
 /**
  * Returns the document version referenced by this Publication.
  */