Adapt to service layer change
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / editor / CdmEntitySessionInput.java
index 86da9e875ad964fc0d09400a1e8d1d532eda28f5..f05bf4ffb1a11387fc24e529ffcb402fea0c30aa 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /**
 * Copyright (C) 2015 EDIT
 * European Distributed Institute of Taxonomy
@@ -9,6 +8,9 @@
 */
 package eu.etaxonomy.taxeditor.editor;
 
+import java.util.List;
+import java.util.Map;
+
 import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
 import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
 import eu.etaxonomy.taxeditor.store.CdmStore;
@@ -20,9 +22,15 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  */
 public abstract class CdmEntitySessionInput implements ICdmEntitySessionEnabled {
 
-    private final ICdmEntitySession cdmEntitySession;
+    private ICdmEntitySession cdmEntitySession;
+
+    public CdmEntitySessionInput(boolean init) {
+        if(init) {
+            initSession();
+        }
+    }
 
-    public CdmEntitySessionInput() {
+    protected void initSession() {
         cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true);
     }
 
@@ -41,4 +49,14 @@ public abstract class CdmEntitySessionInput implements ICdmEntitySessionEnabled
 
     public abstract void merge();
 
+
+    /* (non-Javadoc)
+     * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getPropertyPathsMap()
+     */
+    @Override
+    public Map<Object, List<String>> getPropertyPathsMap() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+
 }