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.v36_40;
|
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.v35_36.TermUpdater_35_36;
|
21
|
|
22
|
/**
|
23
|
* @author a.mueller
|
24
|
* @date 16.04.2016
|
25
|
*
|
26
|
*/
|
27
|
public class TermUpdater_36_40 extends TermUpdaterBase {
|
28
|
@SuppressWarnings("unused")
|
29
|
private static final Logger logger = Logger.getLogger(TermUpdater_36_40.class);
|
30
|
|
31
|
public static final String startTermVersion = "3.6.0.0.201527040000";
|
32
|
private static final String endTermVersion = "4.0.0.0.201604200000";
|
33
|
|
34
|
// *************************** FACTORY **************************************/
|
35
|
|
36
|
public static TermUpdater_36_40 NewInstance(){
|
37
|
return new TermUpdater_36_40(startTermVersion, endTermVersion);
|
38
|
}
|
39
|
|
40
|
// *************************** CONSTRUCTOR ***********************************/
|
41
|
|
42
|
protected TermUpdater_36_40(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 null;
|
75
|
}
|
76
|
|
77
|
@Override
|
78
|
public ITermUpdater getPreviousUpdater() {
|
79
|
return TermUpdater_35_36.NewInstance();
|
80
|
}
|
81
|
|
82
|
}
|