bugfixes and new features for ferns
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / common / ICdmIO.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.cdm.io.common;
11
12
13 /**
14 * @author a.mueller
15 * @created 20.06.2008
16 * @version 1.0
17 */
18
19 public interface ICdmIO<STATE extends IoStateBase> {
20
21 final String USER_STORE = "person";
22 final String PERSON_STORE = "person";
23 final String TEAM_STORE = "team";
24 final String REFERENCE_STORE = "reference";
25 final String NOMREF_STORE = "nomRef";
26 final String REF_DETAIL_STORE = "refDetail";
27 final String NOMREF_DETAIL_STORE = "nomRefDetail";
28 final String TAXONNAME_STORE = "taxonName";
29 final String TAXON_STORE = "taxon";
30 final String FEATURE_STORE = "feature";
31 final String SPECIMEN_STORE = "specimen";
32
33 public boolean check(STATE state);
34
35 // public boolean invoke(T config, Map<String, MapWrapper<? extends CdmBase>> stores);
36
37 public abstract boolean invoke(STATE state);
38
39 // public boolean invoke(IoState<T> state);
40
41 public void updateProgress(STATE state, String message);
42
43 public void updateProgress(STATE state, String message, int worked);
44
45 public void warnProgress(STATE state, String message, Throwable e);
46
47 }