Project

General

Profile

« Previous | Next » 

Revision 02741e89

Added by Andreas Müller about 4 years ago

ref #8934 changes to FoG status import

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/app/common/CdmDestinations.java
147 147
		return makeDestination(dbType, cdmServer, cdmDB, -1, cdmUserName, null);
148 148
	}
149 149

  
150
    public static ICdmDataSource cdm_local_greece(){
151
        DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
152
        String cdmServer = "127.0.0.1";
153
        String cdmDB = "cdm_test_greece";
154
        String cdmUserName = "edit";
155
        return makeDestination(dbType, cdmServer, cdmDB, -1, cdmUserName, null);
156
    }
157

  
150 158
    public static ICdmDataSource cdm_local_test_bogota(){
151 159
        DatabaseTypeEnum dbType = DatabaseTypeEnum.MySQL;
152 160
        String cdmServer = "127.0.0.1";
app-import/src/main/java/eu/etaxonomy/cdm/app/greece/GreeceStatusUpdaterActivator.java
30 30
 * @since 08.12.2017
31 31
 */
32 32
public class GreeceStatusUpdaterActivator {
33
	
33

  
34 34
    @SuppressWarnings("unused")
35 35
    private static final Logger logger = Logger.getLogger(GreeceStatusUpdaterActivator.class);
36 36

  
37
    static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
38
//  static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql_test();
37
//    static final ICdmDataSource cdmDestination = CdmDestinations.localH2();
38
  static final ICdmDataSource cdmDestination = CdmDestinations.cdm_local_greece();
39 39
//    static final ICdmDataSource cdmDestination = CdmDestinations.cdm_production_greece_checklist();
40 40

  
41 41
    private static final UUID sourceUuid = UUID.fromString("7f898cf8-5eef-4321-ba17-64983cf7ea26");
42
    private static final String fileName = "xxx.xlsx";
42
    private static final String fileName = "FoG_new_fields_14.03.2020_sent.xls";
43 43

  
44 44

  
45 45
    //check - import
......
59 59
        CdmDefaultImport<GreeceStatusUpdaterConfigurator> myImport = new CdmDefaultImport<>();
60 60
        ImportResult result = myImport.invoke(config);
61 61
        System.out.println(result.createReport());
62

  
63 62
    }
64 63

  
65 64
    private URI greekChecklist(){
......
70 69
        Reference result = ReferenceFactory.newDatabase();
71 70
        result.setTitle(fileName);
72 71
        result.setUuid(sourceUuid);
73

  
74 72
        return result;
75 73
    }
76 74

  
......
79 77
        me.doImport(cdmDestination);
80 78
        System.exit(0);
81 79
    }
82
}
80
}

Also available in: Unified diff