Project

General

Profile

Revision 767ce19d

ID767ce19d9383c066153ff8534983bc320547c896
Parent 15d27f3d
Child 4e785924

Added by Andreas Müller 6 months ago

cleanup

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/caryophyllales/CaryophyllalesTcsXmlActivator.java
24 24
import eu.etaxonomy.cdm.io.tcsxml.in.TcsXmlImportConfigurator;
25 25

  
26 26
/**
27
 * @author a.mueller
28
 * @since 20.06.2008
27
 * @author k.luther
28
 * @since 2014
29 29
 */
30 30
public class CaryophyllalesTcsXmlActivator {
31 31
	private static final Logger logger = Logger.getLogger(CaryophyllalesTcsXmlActivator.class);
......
57 57
	static final boolean doTaxa = true;
58 58
	static final boolean doRelTaxa = true;
59 59

  
60

  
61

  
62 60
	private void doImport(){
63 61
		System.out.println("Start import from Tcs("+ tcsSource.toString() + ") ...");
64 62

  
......
86 84
			tcsImportConfigurator.setDoGetMissingNames(doGetMissingNames);
87 85

  
88 86
			// invoke import
89
			CdmDefaultImport<TcsXmlImportConfigurator> tcsImport = new CdmDefaultImport<TcsXmlImportConfigurator>();
87
			CdmDefaultImport<TcsXmlImportConfigurator> tcsImport = new CdmDefaultImport<>();
90 88
			//new Test().invoke(tcsImportConfigurator);
91 89
			tcsImport.invoke(tcsImportConfigurator);
92 90

  
93

  
94

  
95 91
//			IReferenceService refService = tcsImport.getCdmAppController().getReferenceService();
96 92
//			IBook book = ReferenceFactory.newBook();
97 93
//			book.setDatePublished(TimePeriod.NewInstance(1945).setEndDay(12).setEndMonth(4));
......
106 102
		} catch (URISyntaxException e) {
107 103
			e.printStackTrace();
108 104
		}
109

  
110 105
	}
111 106

  
112
	/**
113
	 * @param args
114
	 */
115 107
	public static void main(String[] args) {
116 108
		CaryophyllalesTcsXmlActivator me = new CaryophyllalesTcsXmlActivator();
117 109
		me.doImport();
118 110
	}
119

  
120 111
}
app-import/src/main/java/eu/etaxonomy/cdm/app/caryophyllales/CdmLightExportActivator.java
30 30
/**
31 31
 * @author k.luther
32 32
 * @since 24.03.2017
33
 *
34 33
 */
35 34
public class CdmLightExportActivator {
36 35
private static final ICdmDataSource cdmSource = CdmDestinations.cdm_local_caryophyllales_nepenthaceae();
app-import/src/main/java/eu/etaxonomy/cdm/app/caryophyllales/DeleteNonReferencedReferences.java
1
/**
2
* Copyright (C) 2017 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
*/
1 9
package eu.etaxonomy.cdm.app.caryophyllales;
2 10

  
3

  
4 11
import org.apache.log4j.Logger;
5 12

  
6 13
import eu.etaxonomy.cdm.app.common.CdmDestinations;
......
10 17
import eu.etaxonomy.cdm.io.common.ImportResult;
11 18
import eu.etaxonomy.cdm.io.operation.config.DeleteNonReferencedReferencesConfigurator;
12 19

  
13

  
20
/**
21
 * @author k.luther
22
 * @since 2015
23
 */
14 24
public class DeleteNonReferencedReferences {
15 25

  
16 26
		@SuppressWarnings("unused")
app-import/src/main/java/eu/etaxonomy/cdm/app/common/CdmDestinations.java
510 510
	public static ICdmDataSource cdm_local_caryo(){
511 511
		DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
512 512
		String cdmServer = "127.0.0.1";
513
		String cdmDB = "cdm_local_caryophyllales";
514
		String cdmUserName = "root";
513
		String cdmDB = "cdm_caryo_spp";
514
		String cdmUserName = "edit";
515 515
		return makeDestination(dbType, cdmServer, cdmDB, -1, cdmUserName, null);
516 516
	}
517 517

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)