2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.app
.common
;
12 import eu
.etaxonomy
.cdm
.common
.AccountStore
;
13 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
16 * @author a.babadshanjan
20 public class ImportUtils
{
23 * Initializes the source.
32 public static Source
makeSource(String dbms
, String strServer
, String strDB
, int port
, String userName
, String pwd
){
33 //establish connection
35 source
= new Source(dbms
, strServer
, strDB
);
38 pwd
= AccountStore
.readOrStorePassword(dbms
, strServer
, userName
, pwd
);
39 source
.setUserAndPwd(userName
, pwd
);
40 // write pwd to account store