Project

General

Profile

Download (2.78 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 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
package eu.etaxonomy.cdm.database.update.v35_36;
11

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

    
15
import org.apache.log4j.Logger;
16

    
17
import eu.etaxonomy.cdm.database.update.ITermUpdater;
18
import eu.etaxonomy.cdm.database.update.ITermUpdaterStep;
19
import eu.etaxonomy.cdm.database.update.TermUpdaterBase;
20
import eu.etaxonomy.cdm.database.update.v34_35.TermUpdater_34_35;
21
import eu.etaxonomy.cdm.database.update.v36_40.TermUpdater_36_40;
22

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

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

    
35
// *************************** FACTORY **************************************/
36

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

    
41
// *************************** CONSTRUCTOR ***********************************/
42

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

    
47

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

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

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

    
70
		return list;
71
	}
72

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

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

    
83
}
(2-2/2)