Revision 5f289246
Added by Andreas Müller over 12 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/BerlinModelSources.java | ||
---|---|---|
20 | 20 |
@SuppressWarnings("unused") |
21 | 21 |
private static final Logger logger = Logger.getLogger(BerlinModelSources.class); |
22 | 22 |
|
23 |
|
|
24 |
|
|
25 |
public static Source PESI3_euroMed(){ |
|
26 |
// BerlinModel - Euro+Med |
|
27 |
String dbms = Source.SQL_SERVER_2008; |
|
28 |
String strServer = "PESIIMPORT3"; |
|
29 |
String strDB = "EuroPlusMed_01"; |
|
30 |
int port = 1433; |
|
31 |
String userName = "pesiexport"; |
|
32 |
return makeSource(dbms, strServer, strDB, port, userName, null); |
|
33 |
} |
|
34 |
|
|
35 |
public static Source iopi(){ |
|
36 |
// BerlinModel - Euro+Med |
|
37 |
String dbms = Source.SQL_SERVER_2008; |
|
38 |
String strServer = "BGBM17"; |
|
39 |
String strDB = "IOPIBM"; |
|
40 |
int port = 1433; |
|
41 |
String userName = "WebUser"; |
|
42 |
return makeSource(dbms, strServer, strDB, port, userName, null); |
|
43 |
} |
|
44 |
|
|
23 | 45 |
public static Source euroMed(){ |
24 | 46 |
// BerlinModel - Euro+Med |
25 | 47 |
String dbms = Source.SQL_SERVER_2005; |
... | ... | |
30 | 52 |
return makeSource(dbms, strServer, strDB, port, userName, null); |
31 | 53 |
} |
32 | 54 |
|
55 |
public static Source mcl(){ |
|
56 |
// BerlinModel - Euro+Med |
|
57 |
String dbms = Source.SQL_SERVER_2008; |
|
58 |
String strServer = "BGBM42"; |
|
59 |
String strDB = "MCL"; |
|
60 |
int port = 1433; |
|
61 |
String userName = "WebUser"; |
|
62 |
return makeSource(dbms, strServer, strDB, port, userName, null); |
|
63 |
} |
|
64 |
|
|
33 | 65 |
public static Source Campanulaceae(){ |
34 | 66 |
// BerlinModel - Campanulaceae |
35 | 67 |
String dbms = Source.SQL_SERVER_2005; |
app-import/src/main/java/eu/etaxonomy/cdm/app/vibrant/EuroMedActivator.java | ||
---|---|---|
17 | 17 |
import org.apache.log4j.Logger; |
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.cdm.api.application.ICdmApplicationConfiguration; |
20 |
import eu.etaxonomy.cdm.app.common.BerlinModelSources; |
|
20 |
import eu.etaxonomy.cdm.app.berlinModelImport.BerlinModelSources; |
|
21 |
import eu.etaxonomy.cdm.app.berlinModelImport.TreeCreator; |
|
21 | 22 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
22 |
import eu.etaxonomy.cdm.app.common.TreeCreator; |
|
23 | 23 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
24 | 24 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
25 | 25 |
import eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelImportConfigurator; |
... | ... | |
28 | 28 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator.DO_REFERENCES; |
29 | 29 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator.EDITOR; |
30 | 30 |
import eu.etaxonomy.cdm.io.common.Source; |
31 |
import eu.etaxonomy.cdm.io.pesi.out.PesiTransformer; |
|
32 | 31 |
import eu.etaxonomy.cdm.model.common.ExtensionType; |
33 | 32 |
import eu.etaxonomy.cdm.model.description.Feature; |
34 | 33 |
import eu.etaxonomy.cdm.model.description.FeatureNode; |
... | ... | |
64 | 63 |
static final UUID classificationUuid = UUID.fromString("5e05ebc5-6075-45ff-81df-4cefafafa4a3"); |
65 | 64 |
static final boolean useSingleClassification = true; |
66 | 65 |
|
66 |
//from PESI-transformer |
|
67 |
static UUID uuidSourceRefEuroMed = UUID.fromString("0603a84a-f024-4454-ab92-9e2ac0139126"); |
|
68 |
|
|
67 | 69 |
static final UUID featureTreeUuid = UUID.fromString("eff345e7-0619-4ec3-955d-997c1fafffc3"); |
68 | 70 |
static final Object[] featureKeyList = new Integer[]{1, 31, 4, 98, 41}; |
69 | 71 |
|
... | ... | |
185 | 187 |
config.setDoTypes(doTypes); |
186 | 188 |
config.setDoNameFacts(doNameFacts); |
187 | 189 |
config.setUseClassification(useClassification); |
188 |
config.setSourceRefUuid(PesiTransformer.uuidSourceRefEuroMed);
|
|
190 |
config.setSourceRefUuid(uuidSourceRefEuroMed); |
|
189 | 191 |
|
190 | 192 |
config.setDoTaxa(doTaxa); |
191 | 193 |
config.setDoRelTaxa(doRelTaxa); |
app-import/src/main/java/eu/etaxonomy/cdm/app/vibrant/IopiActivator.java | ||
---|---|---|
15 | 15 |
|
16 | 16 |
import org.apache.log4j.Logger; |
17 | 17 |
|
18 |
import eu.etaxonomy.cdm.app.common.BerlinModelSources;
|
|
18 |
import eu.etaxonomy.cdm.app.berlinModelImport.BerlinModelSources;
|
|
19 | 19 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
20 | 20 |
import eu.etaxonomy.cdm.database.DatabaseTypeEnum; |
21 | 21 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
app-import/src/main/java/eu/etaxonomy/cdm/app/vibrant/MclActivator.java | ||
---|---|---|
16 | 16 |
|
17 | 17 |
import org.apache.log4j.Logger; |
18 | 18 |
|
19 |
import eu.etaxonomy.cdm.app.common.BerlinModelSources;
|
|
19 |
import eu.etaxonomy.cdm.app.berlinModelImport.BerlinModelSources;
|
|
20 | 20 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
21 | 21 |
import eu.etaxonomy.cdm.database.DatabaseTypeEnum; |
22 | 22 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
app-import/src/main/java/eu/etaxonomy/cdm/app/vibrant/VibrantActivator.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import org.apache.log4j.Logger; |
13 | 13 |
|
14 |
import eu.etaxonomy.cdm.app.common.BerlinModelSources;
|
|
14 |
import eu.etaxonomy.cdm.app.berlinModelImport.BerlinModelSources;
|
|
15 | 15 |
import eu.etaxonomy.cdm.app.common.CdmDestinations; |
16 | 16 |
import eu.etaxonomy.cdm.database.DatabaseTypeEnum; |
17 | 17 |
import eu.etaxonomy.cdm.database.DbSchemaValidation; |
Also available in: Unified diff
update app-import activators, independent from PESI now