Salome HOME
Fixed: adding a knowledge element (but there is still a double addition), opening...
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / DocumentService.java
index d2b2218aab2b2e206dcabf9dc882f878c8b45001..a956b69b1e3991080b04cbce751c969dad27827c 100644 (file)
@@ -7,12 +7,34 @@
  * @version        $Revision$
  *****************************************************************************/
 
-package org.splat.service; 
+package org.splat.service;
+
+import org.splat.dal.bo.som.Document;
+import org.splat.dal.bo.som.Publication;
+import org.splat.dal.bo.som.Document.Properties;
+import org.splat.kernel.InvalidPropertyException;
+import org.splat.kernel.MissedPropertyException;
+import org.splat.kernel.NotApplicableException;
+import org.splat.som.Step;
 
 /**
  * @author RKV
- *
+ * 
  */
 public interface DocumentService {
 
+       /**
+        * Defines this document.
+        * 
+        * @param dprop
+        *            the properties of the document
+        * 
+        * @see Step#createDocument(Properties)
+        * @see #isUndefined()
+        */
+       public void initialize(Document aDoc, Properties dprop)
+                       throws MissedPropertyException, InvalidPropertyException,
+                       NotApplicableException;
+
+       public void generateDocumentId(Document aDoc, Properties dprop);
 }