Project

General

Profile

Download (2.68 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.database.update.v40_41;
10

    
11
import java.util.ArrayList;
12
import java.util.List;
13

    
14
import org.apache.log4j.Logger;
15

    
16
import eu.etaxonomy.cdm.database.update.ITermUpdater;
17
import eu.etaxonomy.cdm.database.update.ITermUpdaterStep;
18
import eu.etaxonomy.cdm.database.update.TermUpdaterBase;
19
import eu.etaxonomy.cdm.database.update.v36_40.TermUpdater_36_40;
20

    
21
/**
22
 * @author a.mueller
23
 * @date 16.04.2016
24
 *
25
 */
26
public class TermUpdater_40_41 extends TermUpdaterBase {
27
	@SuppressWarnings("unused")
28
	private static final Logger logger = Logger.getLogger(TermUpdater_40_41.class);
29

    
30
	private static final String endTermVersion = "4.1.0.0.201607300000";
31
	private static final String startTermVersion = "4.0.0.0.201604200000";
32

    
33
// *************************** FACTORY **************************************/
34

    
35
	public static TermUpdater_40_41 NewInstance(){
36
		return new TermUpdater_40_41(startTermVersion, endTermVersion);
37
	}
38

    
39
// *************************** CONSTRUCTOR ***********************************/
40

    
41
	protected TermUpdater_40_41(String startTermVersion, String endTermVersion) {
42
		super(startTermVersion, endTermVersion);
43
	}
44

    
45

    
46
	@Override
47
	protected List<ITermUpdaterStep> getUpdaterList() {
48
		List<ITermUpdaterStep> list = new ArrayList<ITermUpdaterStep>();
49

    
50
//		// proles, #2793
51
//		UUID uuidTerm = UUID.fromString("8810d1ba-6a34-4ae3-a355-919ccd1cd1a5");
52
//		String description = "Rank ''Proles''. Note: This rank is not compliant with the current nomenclatural codes";
53
//		String label = "Proles";
54
//		String abbrev = "prol.";
55
//		String dtype = Rank.class.getSimpleName();
56
//		boolean isOrdered = true;
57
//		UUID uuidVocabulary = UUID.fromString("ef0d1ce1-26e3-4e83-b47b-ca74eed40b1b");
58
//		UUID uuidAfterTerm = UUID.fromString("bff22f84-553a-4429-a4e7-c4b3796c3a18");
59
//		UUID uuidLang = Language.uuidEnglish;
60
//		RankClass rankClass = RankClass.Infraspecific;
61
//		String stepName = "Add 'proles' rank to ranks";
62
//		TermType termType = TermType.Rank;
63
//		list.add( SingleTermUpdater.NewInstance(stepName, termType, uuidTerm, abbrev, description, label, abbrev, dtype, uuidVocabulary, uuidLang, isOrdered, uuidAfterTerm).setRankClass(rankClass));
64

    
65
		//there are some more new vocabularies, but we trust that the term initializer will
66
		//initialize and persist them correctly
67

    
68
		return list;
69
	}
70

    
71
	@Override
72
	public ITermUpdater getNextUpdater() {
73
		return null;
74
	}
75

    
76
	@Override
77
	public ITermUpdater getPreviousUpdater() {
78
		return TermUpdater_36_40.NewInstance();
79
	}
80

    
81
}
(4-4/4)