Project

General

Profile

« Previous | Next » 

Revision 37bd2647

Added by Katja Luther about 12 years ago

fixes in PESI-Export

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiExportState.java
10 10
package eu.etaxonomy.cdm.io.pesi.out;
11 11

  
12 12
import java.util.ArrayList;
13
import java.util.HashMap;
13 14
import java.util.List;
15
import java.util.Map;
16
import java.util.UUID;
14 17

  
15 18
import org.apache.log4j.Logger;
19
import org.springframework.beans.factory.annotation.Autowired;
16 20

  
21
import eu.etaxonomy.cdm.api.service.ITermService;
17 22
import eu.etaxonomy.cdm.io.common.DbExportStateBase;
18 23
import eu.etaxonomy.cdm.model.common.CdmBase;
19 24
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
25
import eu.etaxonomy.cdm.model.common.MarkerType;
26
import eu.etaxonomy.cdm.model.common.TermVocabulary;
20 27

  
21 28
/**
22 29
 * The export state class.
......
35 42
	private IdentifiableEntity<?> currentFromObject;
36 43
	private IdentifiableEntity<?> currentTaxon;
37 44
	
45
	private Map<UUID, MarkerType> markerTypeMap = new HashMap<UUID, MarkerType>();
46
	public static final UUID uuidUserDefinedMarkerTypeVocabulary = UUID.fromString("5f02a261-fd7d-4fce-bbe4-21472de8cd51");
47
	
48
	@Autowired
49
	//@Qualifier("termService")
50
	private ITermService termService;
51

  
38 52

  
39 53
	/**
40 54
	 * @param config
......
67 81
		return (Integer)getCurrentIO().getDbId(cdmBase, this);
68 82
	}
69 83
	
84
	private ITermService getTermService(){
85
		return this.termService;
86
	}
87
	
70 88
	/**
71 89
	 * Returns whether the given Source object was processed before or not.
72 90
	 * @param
......
128 146
		this.currentTaxon = currentTaxon;
129 147
	}
130 148

  
149
	public void putMarkerType(MarkerType markerType) {
150
		
151
		markerTypeMap.put(markerType.getUuid(), markerType);
152
		
153
	}
154

  
155

  
156
	public MarkerType getMarkerType(UUID uuid){
157
		return markerTypeMap.get(uuid);
158
	}
159

  
160

  
161

  
131 162

  
132 163
}

Also available in: Unified diff