2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.editor
;
11 import java
.util
.List
;
14 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
15 import eu
.etaxonomy
.taxeditor
.session
.ICdmEntitySession
;
16 import eu
.etaxonomy
.taxeditor
.session
.ICdmEntitySessionEnabled
;
17 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 public abstract class CdmEntitySessionInput
<T
extends CdmBase
> implements ICdmEntitySessionEnabled
<T
> {
25 private ICdmEntitySession cdmEntitySession
;
27 public CdmEntitySessionInput(boolean init
) {
33 protected void initSession() {
34 cdmEntitySession
= CdmStore
.getCurrentSessionManager().newSession(this, true);
38 public ICdmEntitySession
getCdmEntitySession() {
39 return cdmEntitySession
;
43 if(cdmEntitySession
!=null){
44 cdmEntitySession
.bind();
51 public void dispose() {
52 if (cdmEntitySession
!= null){
53 cdmEntitySession
.dispose();
55 cdmEntitySession
= null;
59 public abstract void merge();
62 public Map
<Object
, List
<String
>> getPropertyPathsMap() {
63 // TODO Auto-generated method stub