Project

General

Profile

« Previous | Next » 

Revision edeb0e69

Added by Andreas Müller over 5 years ago

remove Cyprus user import

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/cyprus/CyprusImportConfigurator.java
22 22
import eu.etaxonomy.cdm.model.reference.Reference;
23 23
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
24 24

  
25

  
26 25
/**
27 26
 * @author a.mueller
28 27
 * @since 20.03.2008
29
 * @version 1.0
30 28
 */
31 29
public class CyprusImportConfigurator extends ExcelImportConfiguratorBase {
32 30
    private static final long serialVersionUID = 5590553979984931651L;
......
45 43

  
46 44
	public static CyprusImportConfigurator NewInstance(URI source, ICdmDataSource destination){
47 45
		return new CyprusImportConfigurator(source, destination);
48
}
49

  
50

  
46
	}
51 47

  
52 48
	@Override
53 49
    protected void makeIoClassList(){
54 50
		ioClassList = new Class[]{
55
				CyprusUserImport.class,
56 51
				CyprusExcelImport.class ,
57 52
				CyprusDistributionImport.class ,
58 53

  
59 54
		};
60 55
	}
61 56

  
62

  
63
	/* (non-Javadoc)
64
	 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
65
	 */
66 57
	@Override
67 58
    public ImportStateBase getNewState() {
68 59
		return new CyprusImportState(this);
69 60
	}
70 61

  
71

  
72

  
73 62
	private CyprusImportConfigurator(URI source, ICdmDataSource destination) {
74 63
	   super(source, destination, defaultTransformer);
75 64
	   setNomenclaturalCode(NomenclaturalCode.ICNAFP);
......
77 66
	   setDestination(destination);
78 67
	}
79 68

  
80

  
81 69
	@Override
82 70
    public URI getSource() {
83 71
		return super.getSource();
......
87 75
		super.setSource(source);
88 76
	}
89 77

  
90
	/* (non-Javadoc)
91
	 * @see eu.etaxonomy.cdm.io.tcsrdf.IImportConfigurator#getSourceReference()
92
	 */
93 78
	@Override
94 79
    public Reference getSourceReference() {
95 80
		if (sourceReference == null){
......
101 86
		return sourceReference;
102 87
	}
103 88

  
104
	/* (non-Javadoc)
105
	 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getSourceNameString()
106
	 */
107 89
	@Override
108 90
    public String getSourceNameString() {
109 91
		return getSource().toString();
110 92
	}
111 93

  
112

  
113 94
	public void setUuidCyprusReference(UUID uuidCyprusReference) {
114 95
		this.uuidCyprusReference = uuidCyprusReference;
115 96
	}
116 97

  
117

  
118 98
	public UUID getUuidCyprusReference() {
119 99
		return uuidCyprusReference;
120 100
	}
121 101

  
122

  
123 102
	public void setCyprusReferenceTitle(String cyprusReferenceTitle) {
124 103
		this.cyprusReferenceTitle = cyprusReferenceTitle;
125 104
	}
126 105

  
127

  
128 106
	public String getCyprusReferenceTitle() {
129 107
		return cyprusReferenceTitle;
130 108
	}
131 109

  
132

  
133

  
134 110
	public void setDoDistribution(boolean doDistribution) {
135 111
		this.doDistribution = doDistribution;
136 112
	}
......
139 115
		return this.doDistribution;
140 116
	}
141 117

  
142

  
143 118
	public void setDoTaxa(boolean isDoTaxa) {
144 119
		this.isDoTaxa = isDoTaxa;
145 120
	}
......
148 123
		return isDoTaxa;
149 124
	}
150 125

  
151

  
152

  
153 126
}
app-import/src/main/java/eu/etaxonomy/cdm/io/cyprus/CyprusUserImport.java
1
/**
2
 * Copyright (C) 2007 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

  
10
package eu.etaxonomy.cdm.io.cyprus;
11

  
12
import org.apache.log4j.Logger;
13
import org.springframework.stereotype.Component;
14

  
15
import eu.etaxonomy.cdm.io.common.CdmImportBase;
16

  
17
/**
18
 * @author a.babadshanjan
19
 * @since 08.01.2009
20
 */
21

  
22
@Component
23
public class CyprusUserImport extends CdmImportBase<CyprusImportConfigurator, CyprusImportState> {
24
    private static final long serialVersionUID = 3941622961913569851L;
25
    private static final Logger logger = Logger.getLogger(CyprusUserImport.class);
26

  
27
	@Override
28
	protected boolean isIgnore(CyprusImportState state) {
29
		return ! state.getConfig().isDoTaxa();
30
	}
31

  
32
	@Override
33
	protected boolean doCheck(CyprusImportState state) {
34
		logger.warn("DoCheck not yet implemented for CyprusExcelImport");
35
		return true;
36
	}
37

  
38

  
39
	@Override
40
	protected void doInvoke(CyprusImportState state) {
41
		this.getAuthenticationManager();
42

  
43
		return;
44
	}
45

  
46
}

Also available in: Unified diff