Revision 1c39686b
Added by Andreas Müller about 5 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/location/ReferenceSystem.java | ||
---|---|---|
23 | 23 |
import org.apache.log4j.Logger; |
24 | 24 |
import org.hibernate.envers.Audited; |
25 | 25 |
|
26 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
|
27 |
import eu.etaxonomy.cdm.model.common.TermType;
|
|
28 |
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
|
26 |
import eu.etaxonomy.cdm.model.term.DefinedTermBase;
|
|
27 |
import eu.etaxonomy.cdm.model.term.TermType;
|
|
28 |
import eu.etaxonomy.cdm.model.term.TermVocabulary;
|
|
29 | 29 |
|
30 | 30 |
/** |
31 | 31 |
* Reference systems for coordinates also according to OGC (Open Geographical |
32 | 32 |
* Consortium) The list should be extensible at runtime through configuration. |
33 | 33 |
* This needs to be investigated. |
34 |
* |
|
34 | 35 |
* @author m.doering |
35 |
* @version 1.0 |
|
36 | 36 |
* @since 08-Nov-2007 13:06:49 |
37 | 37 |
*/ |
38 | 38 |
@XmlAccessorType(XmlAccessType.FIELD) |
... | ... | |
40 | 40 |
@XmlRootElement(name = "ReferenceSystem") |
41 | 41 |
@Entity |
42 | 42 |
//@Indexed disabled to reduce clutter in indexes, since this type is not used by any search |
43 |
//@Indexed(index = "eu.etaxonomy.cdm.model.common.DefinedTermBase")
|
|
43 |
//@Indexed(index = "eu.etaxonomy.cdm.model.term.DefinedTermBase")
|
|
44 | 44 |
@Audited |
45 | 45 |
public class ReferenceSystem extends DefinedTermBase<ReferenceSystem> { |
46 | 46 |
private static final long serialVersionUID = -9060720949197749047L; |
... | ... | |
88 | 88 |
|
89 | 89 |
// ************************************* MTEHODS ***************************************************/ |
90 | 90 |
|
91 |
/* (non-Javadoc) |
|
92 |
* @see eu.etaxonomy.cdm.model.common.DefinedTermBase#resetTerms() |
|
93 |
*/ |
|
94 | 91 |
@Override |
95 | 92 |
public void resetTerms(){ |
96 | 93 |
termMap = null; |
97 | 94 |
} |
98 | 95 |
|
99 |
|
|
100 |
|
|
101 | 96 |
protected static ReferenceSystem getTermByUuid(UUID uuid){ |
102 | 97 |
if (termMap == null || termMap.isEmpty()){ |
103 | 98 |
return getTermByClassAndUUID(ReferenceSystem.class, uuid); |
... | ... | |
124 | 119 |
|
125 | 120 |
@Override |
126 | 121 |
protected void setDefaultTerms(TermVocabulary<ReferenceSystem> termVocabulary){ |
127 |
termMap = new HashMap<UUID, ReferenceSystem>();
|
|
122 |
termMap = new HashMap<>(); |
|
128 | 123 |
for (ReferenceSystem term : termVocabulary.getTerms()){ |
129 | 124 |
termMap.put(term.getUuid(), term); |
130 | 125 |
} |
Also available in: Unified diff
ref #8162 adapt cdmlip to new term package structure