Project

General

Profile

Download (2.77 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.v35_36;
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.v34_35.TermUpdater_34_35;
20
import eu.etaxonomy.cdm.database.update.v36_40.TermUpdater_36_40;
21

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

    
31
	public static final String endTermVersion = "3.6.0.0.201527040000";
32
	private static final String startTermVersion = "3.5.0.0.201531030000";
33

    
34
// *************************** FACTORY **************************************/
35

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

    
40
// *************************** CONSTRUCTOR ***********************************/
41

    
42
	protected TermUpdater_35_36(String startTermVersion, String endTermVersion) {
43
		super(startTermVersion, endTermVersion);
44
	}
45

    
46

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

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

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

    
69
		return list;
70
	}
71

    
72
	@Override
73
	public ITermUpdater getNextUpdater() {
74
		return TermUpdater_36_40.NewInstance();
75
	}
76

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

    
82
}
(2-2/2)