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:

app-import/src/main/java/eu/etaxonomy/cdm/app/berlinModelImport/BerlinModelDestinations.java
1 1

  
2 2
/**
3 3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
4
* European Distributed Institute of Taxonomy
5 5
* http://www.e-taxonomy.eu
6
* 
6
*
7 7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8 8
* See LICENSE.TXT at the top of this package for the full license terms.
9 9
*/
......
12 12

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

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

  
18 18

  
19 19
public class BerlinModelDestinations {
20 20
	@SuppressWarnings("unused")
21 21
	private static final Logger logger = Logger.getLogger(BerlinModelDestinations.class);
22
	
22

  
23 23
	public static Source El_Salvador_Andreas(){
24 24
		//	BerlinModel - El_Salvador
25 25
		String dbms = Source.SQL_SERVER_2005;
......
29 29
		String userName = "salvadorExport";
30 30
		return  makeSource(dbms, strServer, strDB, port, userName, null);
31 31
	}
32
	
32

  
33 33
	/**
34 34
	 * Initializes the source.
35 35
	 * @param dbms
......
45 45
		Source source = null;
46 46
		source = new Source(dbms, strServer, strDB);
47 47
		source.setPort(port);
48
			
48

  
49 49
		pwd = AccountStore.readOrStorePassword(dbms, strServer, userName, pwd);
50 50
		source.setUserAndPwd(userName, pwd);
51 51
		// write pwd to account store

Also available in: Unified diff