bugfix for compilation errors in "import" after refactoring of TaxonServiceConfigurator
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / app / common / CdmImportSources.java
index 7d89e30f3acc82dc237699074fd12f8712b56d18..32ce7c8c4e618948a9474edf300fa598d7267c7f 100644 (file)
@@ -9,7 +9,12 @@
 */\r
 package eu.etaxonomy.cdm.app.common;\r
 \r
+import java.net.URI;\r
+import java.net.URL;\r
+\r
 import org.apache.log4j.Logger;\r
+\r
+import eu.etaxonomy.cdm.app.tcs.TcsSources;\r
 import eu.etaxonomy.cdm.common.AccountStore;\r
 import eu.etaxonomy.cdm.io.common.Source;\r
 \r
@@ -28,7 +33,7 @@ public class CdmImportSources {
                String dbms = Source.ACCESS;\r
                String strServer = null;\r
                //String strDB = "fernsTest";\r
-               String strDB = "C:\\localCopy\\Data\\eflora\\africa\\checklist_flore_afrique_centrale_corr.mdb";\r
+               String strDB = "C:\\localCopy\\Data\\eflora\\africa\\checklist\\checklist_flore_afrique_centrale_corr.mdb";\r
                int port = 1433;\r
                String userName = "";\r
                return  makeSource(dbms, strServer, strDB, port, userName, null);\r
@@ -40,26 +45,13 @@ public class CdmImportSources {
                String dbms = Source.ACCESS;\r
                String strServer = null;\r
                //String strDB = "fernsTest";\r
-               String strDB = "C:\\localCopy\\Data\\eflora\\africa\\Synopsis_Database_corrected.mdb";\r
-               int port = 1433;\r
-               String userName = "";\r
-               return  makeSource(dbms, strServer, strDB, port, userName, null);\r
-       }\r
-\r
-       public static Source AFRICA_FERNS_ACCESS_OLD(){\r
-               //      \r
-               String dbms = Source.ACCESS;\r
-               String strServer = null;\r
-               //String strDB = "fernsTest";\r
-               String strDB = "C:\\localCopy\\Data\\eflora\\africa\\Mail_2010_05_05\\test.mdb";\r
+               String strDB = "C:\\localCopy\\Data\\eflora\\africa\\ferns\\Synopsis_Database_corrected.mdb";\r
                int port = 1433;\r
                String userName = "";\r
                return  makeSource(dbms, strServer, strDB, port, userName, null);\r
        }\r
-\r
        \r
        public static Source GLOBIS(){\r
-               //      BerlinModel - Pesi-ERMS\r
                String dbms = Source.SQL_SERVER_2005;\r
                String strServer = "LENOVO-T61";\r
                String strDB = "globis";\r
@@ -69,7 +61,6 @@ public class CdmImportSources {
        }\r
 \r
        public static Source GLOBIS_ODBC(){\r
-               //      BerlinModel - Pesi-ERMS\r
                String dbms = Source.ODDBC;\r
                String strServer = "LENOVO-T61";\r
                String strDB = "globis";\r
@@ -78,6 +69,23 @@ public class CdmImportSources {
                return  makeSource(dbms, strServer, strDB, port, userName, null);\r
        }\r
        \r
+       public static Source GLOBIS_MDB(){\r
+               String dbms = Source.ACCESS;\r
+               String strServer = null;\r
+               String strDB = "C:\\localCopy\\Data\\globis\\globis.mdb";\r
+               int port = -1;\r
+               String userName = "";\r
+               return  makeSource(dbms, strServer, strDB, port, userName, null);\r
+       }\r
+       \r
+       \r
+       public static URI SYNTHESYS_SPECIMEN(){\r
+               //              tcsXmlTest.xml\r
+               URL url = new TcsSources().getClass().getResource("/specimen/SynthesysSpecimenExample.xls");\r
+               String sourceUrl = url.toString();\r
+               URI uri = URI.create(sourceUrl);\r
+               return uri;     \r
+       }\r
        \r
        /**\r
         * Initializes the source.\r