Revision 38556872
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/UseObjectStore.java | ||
---|---|---|
43 | 43 |
private static Feature useSummaryFeature; |
44 | 44 |
private static Feature useRecordFeature; |
45 | 45 |
|
46 |
|
|
47 | 46 |
public static void reset() { |
48 | 47 |
isInitialized = false; |
49 | 48 |
useMarkerType = null; |
... | ... | |
144 | 143 |
conversation.close(); |
145 | 144 |
} |
146 | 145 |
|
147 |
|
|
148 | 146 |
private static void createHumanGroupVocabulary(IProgressMonitor monitor,ConversationHolder conversation) { |
149 | 147 |
TermVocabulary<DefinedTerm> humanGroupVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidHumanGroupVocabulary); |
150 | 148 |
if (humanGroupVocabulary == null){ |
... | ... | |
172 | 170 |
} |
173 | 171 |
} |
174 | 172 |
|
175 |
|
|
176 | 173 |
private static void createPlantVocabulary(IProgressMonitor monitor, ConversationHolder conversation) { |
177 | 174 |
TermVocabulary<DefinedTerm> plantPartVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidPlantPartVocabulary); |
178 | 175 |
if (plantPartVocabulary == null){ |
... | ... | |
195 | 192 |
} |
196 | 193 |
} |
197 | 194 |
|
198 |
|
|
199 | 195 |
private static void createCountryVocabulary(IProgressMonitor monitor, ConversationHolder conversation) { |
200 | 196 |
TermVocabulary<DefinedTerm> countryVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidCountryVocabulary); |
201 | 197 |
if (countryVocabulary == null){ |
... | ... | |
218 | 214 |
} |
219 | 215 |
} |
220 | 216 |
|
221 |
|
|
222 | 217 |
private static void createStateVocabulary(IProgressMonitor monitor, ConversationHolder conversation) { |
223 | 218 |
TermVocabulary<State> stateVocabulary = CdmStore.getService(IVocabularyService.class).find(UsageTermCollection.uuidUseCategoryVocabulary); |
224 | 219 |
if (stateVocabulary == null){ |
... | ... | |
246 | 241 |
} |
247 | 242 |
} |
248 | 243 |
|
249 |
|
|
250 | 244 |
private static void createUseMarkerType(ConversationHolder conversation) { |
251 | 245 |
useMarkerType = (MarkerType) CdmStore.getService(ITermService.class).find(UsageTermCollection.uuidUseMarkerType); |
252 | 246 |
if (useMarkerType == null){ |
... | ... | |
258 | 252 |
conversation.commit(true); |
259 | 253 |
} |
260 | 254 |
} |
261 |
|
|
262 |
|
|
263 |
} |
|
255 |
} |
Also available in: Unified diff
cleanup