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/common/ImportUtils.java
1 1
/**
2 2
* Copyright (C) 2007 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
*/
9 9

  
10 10
package eu.etaxonomy.cdm.app.common;
11 11

  
12
import java.util.regex.Matcher;
13
import java.util.regex.Pattern;
14

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

  
18 15

  
......
22 19
 *
23 20
 */
24 21
public class ImportUtils {
25
	
22

  
26 23
	/**
27 24
	 * Initializes the source.
28 25
	 * @param dbms
......
38 35
		Source source = null;
39 36
		source = new Source(dbms, strServer, strDB);
40 37
		source.setPort(port);
41
			
38

  
42 39
		pwd = AccountStore.readOrStorePassword(dbms, strServer, userName, pwd);
43 40
		source.setUserAndPwd(userName, pwd);
44 41
		// write pwd to account store
45 42
		return source;
46 43
	}
47
	
48
	
49
	
50
	
44

  
45

  
46

  
47

  
51 48

  
52 49
}

Also available in: Unified diff