Project

General

Profile

« Previous | Next » 

Revision febf715a

Added by Andreas Müller about 5 years ago

adapt app-import to new AccountStore package

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/app/pesi/PesiDestinations.java
1 1
/**
2 2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
11 11

  
12 12
import org.apache.log4j.Logger;
13 13

  
14
import eu.etaxonomy.cdm.common.AccountStore;
14
import eu.etaxonomy.cdm.config.AccountStore;
15 15
import eu.etaxonomy.cdm.io.common.Source;
16 16

  
17 17
/**
......
22 22
public class PesiDestinations {
23 23
	@SuppressWarnings("unused")
24 24
	private static final Logger logger = Logger.getLogger(PesiDestinations.class);
25
	
25

  
26 26
	public static Source pesi_test_local_CDM_EM2PESI(){
27 27
		//	CDM - PESI
28 28
		String dbms = Source.SQL_SERVER_2008;
......
32 32
		String userName =  "pesiexport";// "pesiexport3";
33 33
		return makeSource(dbms, strServer, strDB, port, userName, null);
34 34
	}
35
	
35

  
36 36
	public static Source pesi_test_local_CDM_EM2PESI_tmp(){
37 37
		//	CDM - PESI
38 38
		String dbms = Source.SQL_SERVER_2008;
......
42 42
		String userName = "pesiexport";
43 43
		return makeSource(dbms, strServer, strDB, port, userName, null);
44 44
	}
45
	
45

  
46 46
	public static Source pesi_test_local_CDM_FE2PESI(){
47 47
		//	CDM - PESI
48 48
		String dbms = Source.SQL_SERVER_2008;
......
53 53
		return makeSource(dbms, strServer, strDB, port, userName, null);
54 54
	}
55 55

  
56
	
56

  
57 57
	public static Source pesi_test_local_CDM_IF2PESI(){
58 58
		//	CDM - PESI
59 59
		String dbms = Source.SQL_SERVER_2008;
......
63 63
		String userName = "pesiExportFaunaEu";
64 64
		return makeSource(dbms, strServer, strDB, port, userName, null);
65 65
	}
66
	
66

  
67 67
	public static Source pesi_test_local_CDM_ERMS2PESI(){
68 68
		//	CDM - PESI
69 69
		String dbms = Source.SQL_SERVER_2008;
......
73 73
		String userName = "pesiexport";
74 74
		return makeSource(dbms, strServer, strDB, port, userName, null);
75 75
	}
76
	
77 76

  
78
	
77

  
78

  
79 79
	public static Source pesi_test_bgbm42_CDM_DWH_FaEu(){
80 80
		//	CDM - PESI
81 81
		String dbms = Source.SQL_SERVER_2008;
......
85 85
		String userName = "WebUser";
86 86
		return makeSource(dbms, strServer, strDB, port, userName, null);
87 87
	}
88
	
88

  
89 89
	public static Source pesi_test_bgbm42_PESI_V11(){
90 90
		//	CDM - PESI
91 91
		String dbms = Source.SQL_SERVER_2008;
......
95 95
		String userName = "WebUser";
96 96
		return makeSource(dbms, strServer, strDB, port, userName, null);
97 97
	}
98
	
98

  
99 99
	/**
100 100
	 * Initializes the source.
101 101
	 * @param dbms
......
111 111
		Source source = null;
112 112
		source = new Source(dbms, strServer, strDB);
113 113
		source.setPort(port);
114
			
114

  
115 115
		pwd = AccountStore.readOrStorePassword(dbms, strServer, userName, pwd);
116 116
		source.setUserAndPwd(userName, pwd);
117 117
		// write pwd to account store

Also available in: Unified diff