Project

General

Profile

« Previous | Next » 

Revision 561026cd

Added by Andreas Müller almost 12 years ago

add new erms validators

View differences:

.gitattributes
1267 1267
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsVernacularImport.java -text
1268 1268
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsVernacularSourcesImport.java -text
1269 1269
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsAreaImportValidator.java -text
1270
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsDrImportValidator.java -text
1270 1271
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsGeneralImportValidator.java -text
1271 1272
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsImageImportValidator.java -text
1272 1273
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsLinkImportValidator.java -text
1273 1274
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsNoteImportValidator.java -text
1275
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsNoteSourceImportValidator.java -text
1274 1276
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsRankImportValidator.java -text
1275 1277
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsReferenceImportValidator.java -text
1276 1278
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsSourceUsesImportValidator.java -text
1277 1279
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsTaxonImportValidator.java -text
1280
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsVernacularImportValidator.java -text
1278 1281
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsVernacularSourceImportValidator.java -text
1279 1282
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/faunaEuropaea/FaunaEuropaeaAdditionalTaxonDataImport.java -text
1280 1283
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/faunaEuropaea/FaunaEuropaeaAuthorImport.java -text
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsDrImportValidator.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.cdm.io.pesi.erms.validation;
12

  
13
import java.sql.ResultSet;
14
import java.sql.SQLException;
15

  
16
import org.apache.log4j.Logger;
17

  
18

  
19
import eu.etaxonomy.cdm.io.common.IOValidator;
20
import eu.etaxonomy.cdm.io.common.Source;
21
import eu.etaxonomy.cdm.io.pesi.erms.ErmsImportConfigurator;
22
import eu.etaxonomy.cdm.io.pesi.erms.ErmsImportState;
23

  
24
/**
25
 * @author a.mueller
26
 * @created 17.02.2010
27
 * @version 1.0
28
 */
29
public class ErmsDrImportValidator implements IOValidator<ErmsImportState>{
30
	private static final Logger logger = Logger.getLogger(ErmsDrImportValidator.class);
31

  
32
	public boolean validate(ErmsImportState state){
33
		boolean result = true;
34
//		ErmsImportConfigurator config = state.getConfig();
35
		logger.info("Checking for Dr not yet implemented");
36
//		result &= checkTaxonStatus(config);
37
//		result &= checkInactivated(config);
38
		return result;
39
	}
40
	
41

  
42

  
43

  
44
}
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsNoteSourceImportValidator.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.cdm.io.pesi.erms.validation;
12

  
13
import org.apache.log4j.Logger;
14

  
15
import eu.etaxonomy.cdm.io.common.IOValidator;
16
import eu.etaxonomy.cdm.io.pesi.erms.ErmsImportConfigurator;
17
import eu.etaxonomy.cdm.io.pesi.erms.ErmsImportState;
18

  
19
/**
20
 * @author a.mueller
21
 * @created 12.03.2010
22
 * @version 1.0
23
 */
24
public class ErmsNoteSourceImportValidator  implements IOValidator<ErmsImportState>{
25
	private static final Logger logger = Logger.getLogger(ErmsNoteSourceImportValidator.class);
26
	
27
	public boolean validate(ErmsImportState state){
28
		boolean result = true;
29
		ErmsImportConfigurator config = state.getConfig();
30
		logger.info("Checking for note sources not yet implemented");
31

  
32
		return result;
33
	}
34
}
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/validation/ErmsVernacularImportValidator.java
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

  
11
package eu.etaxonomy.cdm.io.pesi.erms.validation;
12

  
13
import org.apache.log4j.Logger;
14

  
15
import eu.etaxonomy.cdm.io.common.IOValidator;
16
import eu.etaxonomy.cdm.io.pesi.erms.ErmsImportConfigurator;
17
import eu.etaxonomy.cdm.io.pesi.erms.ErmsImportState;
18

  
19
/**
20
 * @author a.mueller
21
 * @created 12.03.2010
22
 * @version 1.0
23
 */
24
public class ErmsVernacularImportValidator  implements IOValidator<ErmsImportState>{
25
	private static final Logger logger = Logger.getLogger(ErmsVernacularImportValidator.class);
26
	
27
	public boolean validate(ErmsImportState state){
28
		boolean result = true;
29
		ErmsImportConfigurator config = state.getConfig();
30
		logger.info("Checking for vernaculars not yet implemented");
31

  
32
		return result;
33
	}
34
}

Also available in: Unified diff