#5223 Replace service methods with similar entity calls
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / editor / CdmEntitySessionInput.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.editor;
11
12 import java.util.List;
13 import java.util.Map;
14
15 import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
16 import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
17 import eu.etaxonomy.taxeditor.store.CdmStore;
18
19 /**
20 * @author cmathew
21 * @date 5 Feb 2015
22 *
23 */
24 public abstract class CdmEntitySessionInput implements ICdmEntitySessionEnabled {
25
26 private final ICdmEntitySession cdmEntitySession;
27
28 public CdmEntitySessionInput() {
29 cdmEntitySession = CdmStore.getCurrentSessionManager().newSession(this, true);
30 }
31
32 @Override
33 public ICdmEntitySession getCdmEntitySession() {
34 return cdmEntitySession;
35 }
36
37 public void bind() {
38 cdmEntitySession.bind();
39 }
40
41 public void dispose() {
42 cdmEntitySession.dispose();
43 }
44
45 public abstract void merge();
46
47
48 /* (non-Javadoc)
49 * @see eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled#getPropertyPathsMap()
50 */
51 @Override
52 public Map<Object, List<String>> getPropertyPathsMap() {
53 // TODO Auto-generated method stub
54 return null;
55 }
56
57 }