1
|
/**
|
2
|
* Copyright (C) 2008 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*/
|
6
|
|
7
|
package eu.etaxonomy.cdm.io.common;
|
8
|
|
9
|
import eu.etaxonomy.cdm.api.application.CdmApplicationController;
|
10
|
import eu.etaxonomy.cdm.database.DbSchemaValidation;
|
11
|
|
12
|
|
13
|
/**
|
14
|
* @author a.babadshanjan
|
15
|
* @created 13.11.2008
|
16
|
*/
|
17
|
public interface IIoConfigurator {
|
18
|
|
19
|
/**
|
20
|
* A String representation of the used source may it be a source to be imported (e.g. "BerlinModel Cichorieae Database")
|
21
|
* or a source to be exported (e.g. "CDM Cichorieae Database")
|
22
|
* @return String representing the source for the io
|
23
|
*/
|
24
|
public String getSourceNameString();
|
25
|
|
26
|
|
27
|
/**
|
28
|
* A String representation of the destination may it be an import destination and therefore a CDM (e.g. CDM Cichorieae Database)
|
29
|
* or an export destination (e.g. CDM XML)
|
30
|
* @return
|
31
|
*/
|
32
|
public String getDestinationNameString();
|
33
|
|
34
|
|
35
|
/**
|
36
|
* Returns the CdmApplicationController
|
37
|
* @return
|
38
|
*/
|
39
|
public CdmApplicationController getCdmAppController();
|
40
|
|
41
|
|
42
|
/**
|
43
|
* Sets the CdmApplicationController
|
44
|
* @param cdmApp the cdmApp to set
|
45
|
*/
|
46
|
public void setCdmAppController(CdmApplicationController cdmApp);
|
47
|
|
48
|
/**
|
49
|
* Get the way how the CDM schema is validated
|
50
|
* @see eu.etaxonomy.cdm.database.DbSchemaValidation
|
51
|
* @return
|
52
|
*/
|
53
|
public DbSchemaValidation getDbSchemaValidation();
|
54
|
|
55
|
/**
|
56
|
* Get the way how the CDM schema is validated
|
57
|
* For exports values that delete the source (CREATE, CREATE_DROP) are not allowed and may throw an
|
58
|
* Exception in the further run
|
59
|
* @see eu.etaxonomy.cdm.database.DbSchemaValidation
|
60
|
* @param dbSchemaValidation
|
61
|
*/
|
62
|
public void setDbSchemaValidation(DbSchemaValidation dbSchemaValidation);
|
63
|
|
64
|
|
65
|
}
|