1
|
/**
|
2
|
* Copyright (C) 2017 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
|
package eu.etaxonomy.cdm.api.utility;
|
10
|
|
11
|
import java.io.IOException;
|
12
|
import java.util.Collection;
|
13
|
import java.util.List;
|
14
|
import java.util.Map;
|
15
|
import java.util.Set;
|
16
|
import java.util.UUID;
|
17
|
|
18
|
import org.hibernate.LockOptions;
|
19
|
import org.hibernate.Session;
|
20
|
import org.hibernate.criterion.Criterion;
|
21
|
import org.hibernate.envers.query.criteria.AuditCriterion;
|
22
|
import org.hibernate.search.spatial.impl.Rectangle;
|
23
|
import org.junit.Assert;
|
24
|
import org.junit.Ignore;
|
25
|
import org.junit.Test;
|
26
|
|
27
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
28
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacadeNotSupportedException;
|
29
|
import eu.etaxonomy.cdm.api.service.DeleteResult;
|
30
|
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
|
31
|
import eu.etaxonomy.cdm.api.service.UpdateResult;
|
32
|
import eu.etaxonomy.cdm.api.service.config.DeleteConfiguratorBase;
|
33
|
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
|
34
|
import eu.etaxonomy.cdm.api.service.config.SpecimenDeleteConfigurator;
|
35
|
import eu.etaxonomy.cdm.api.service.dto.FieldUnitDTO;
|
36
|
import eu.etaxonomy.cdm.api.service.dto.IdentifiedEntityDTO;
|
37
|
import eu.etaxonomy.cdm.api.service.dto.MarkedEntityDTO;
|
38
|
import eu.etaxonomy.cdm.api.service.dto.PreservedSpecimenDTO;
|
39
|
import eu.etaxonomy.cdm.api.service.pager.Pager;
|
40
|
import eu.etaxonomy.cdm.api.service.search.LuceneParseException;
|
41
|
import eu.etaxonomy.cdm.api.service.search.SearchResult;
|
42
|
import eu.etaxonomy.cdm.api.service.util.TaxonRelationshipEdge;
|
43
|
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
|
44
|
import eu.etaxonomy.cdm.model.common.Annotation;
|
45
|
import eu.etaxonomy.cdm.model.common.DefinedTerm;
|
46
|
import eu.etaxonomy.cdm.model.common.ICdmBase;
|
47
|
import eu.etaxonomy.cdm.model.common.ISourceable;
|
48
|
import eu.etaxonomy.cdm.model.common.IdentifiableSource;
|
49
|
import eu.etaxonomy.cdm.model.common.LSID;
|
50
|
import eu.etaxonomy.cdm.model.common.Language;
|
51
|
import eu.etaxonomy.cdm.model.common.Marker;
|
52
|
import eu.etaxonomy.cdm.model.common.MarkerType;
|
53
|
import eu.etaxonomy.cdm.model.description.DescriptionBase;
|
54
|
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
|
55
|
import eu.etaxonomy.cdm.model.description.IndividualsAssociation;
|
56
|
import eu.etaxonomy.cdm.model.location.Country;
|
57
|
import eu.etaxonomy.cdm.model.media.Media;
|
58
|
import eu.etaxonomy.cdm.model.media.Rights;
|
59
|
import eu.etaxonomy.cdm.model.molecular.DnaSample;
|
60
|
import eu.etaxonomy.cdm.model.molecular.Sequence;
|
61
|
import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
|
62
|
import eu.etaxonomy.cdm.model.name.TaxonName;
|
63
|
import eu.etaxonomy.cdm.model.occurrence.DerivationEvent;
|
64
|
import eu.etaxonomy.cdm.model.occurrence.DerivedUnit;
|
65
|
import eu.etaxonomy.cdm.model.occurrence.DeterminationEvent;
|
66
|
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
|
67
|
import eu.etaxonomy.cdm.model.occurrence.MediaSpecimen;
|
68
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;
|
69
|
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationType;
|
70
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
71
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
72
|
import eu.etaxonomy.cdm.model.view.AuditEvent;
|
73
|
import eu.etaxonomy.cdm.model.view.AuditEventRecord;
|
74
|
import eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort;
|
75
|
import eu.etaxonomy.cdm.persistence.dto.MergeResult;
|
76
|
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
|
77
|
import eu.etaxonomy.cdm.persistence.query.Grouping;
|
78
|
import eu.etaxonomy.cdm.persistence.query.MatchMode;
|
79
|
import eu.etaxonomy.cdm.persistence.query.OrderHint;
|
80
|
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
|
81
|
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy;
|
82
|
import eu.etaxonomy.cdm.strategy.merge.IMergeStrategy;
|
83
|
|
84
|
/**
|
85
|
*
|
86
|
* @author a.kohlbecker
|
87
|
* @since Jun 23, 2017
|
88
|
*
|
89
|
*/
|
90
|
public class DerivedUnitConverterTest extends Assert {
|
91
|
|
92
|
|
93
|
@Test
|
94
|
@Ignore
|
95
|
public void toMediaSpecimen() throws DerivedUnitConversionException {
|
96
|
DerivedUnit du = DerivedUnit.NewInstance(SpecimenOrObservationType.PreservedSpecimen);
|
97
|
du.setTitleCache("test derived unit", true);
|
98
|
DerivedUnitConverter<MediaSpecimen> duc = new DerivedUnitConverter<MediaSpecimen>(du, new OccurrenceServiceMock());
|
99
|
MediaSpecimen target = duc.convertTo(MediaSpecimen.class, SpecimenOrObservationType.StillImage);
|
100
|
assertNotNull(target);
|
101
|
assertEquals(SpecimenOrObservationType.StillImage, target.getRecordBasis());
|
102
|
assertEquals("test derived unit", target.getTitleCache());
|
103
|
}
|
104
|
|
105
|
@Test
|
106
|
@Ignore
|
107
|
public void toDerivedUnit() throws DerivedUnitConversionException {
|
108
|
|
109
|
MediaSpecimen du = MediaSpecimen.NewInstance(SpecimenOrObservationType.StillImage);
|
110
|
du.setTitleCache("test media specimen", true);
|
111
|
DerivedUnitConverter<DerivedUnit> duc = new DerivedUnitConverter<DerivedUnit>(du, new OccurrenceServiceMock());
|
112
|
DerivedUnit target = duc.convertTo(DerivedUnit.class, SpecimenOrObservationType.PreservedSpecimen);
|
113
|
assertNotNull(target);
|
114
|
assertEquals(SpecimenOrObservationType.PreservedSpecimen, target.getRecordBasis());
|
115
|
assertEquals("test media specimen", target.getTitleCache());
|
116
|
}
|
117
|
|
118
|
class OccurrenceServiceMock implements IOccurrenceService {
|
119
|
|
120
|
/**
|
121
|
* {@inheritDoc}
|
122
|
*/
|
123
|
@Override
|
124
|
public void updateTitleCache() {
|
125
|
|
126
|
|
127
|
}
|
128
|
|
129
|
/**
|
130
|
* {@inheritDoc}
|
131
|
*/
|
132
|
@Override
|
133
|
public void updateTitleCache(Class<? extends SpecimenOrObservationBase> clazz, Integer stepSize,
|
134
|
IIdentifiableEntityCacheStrategy<SpecimenOrObservationBase> cacheStrategy, IProgressMonitor monitor) {
|
135
|
|
136
|
|
137
|
}
|
138
|
|
139
|
/**
|
140
|
* {@inheritDoc}
|
141
|
*/
|
142
|
@Override
|
143
|
public SpecimenOrObservationBase find(LSID lsid) {
|
144
|
|
145
|
return null;
|
146
|
}
|
147
|
|
148
|
/**
|
149
|
* {@inheritDoc}
|
150
|
*/
|
151
|
@Override
|
152
|
public SpecimenOrObservationBase replace(SpecimenOrObservationBase x, SpecimenOrObservationBase y) {
|
153
|
|
154
|
return null;
|
155
|
}
|
156
|
|
157
|
/**
|
158
|
* {@inheritDoc}
|
159
|
*/
|
160
|
@Override
|
161
|
public Pager<IdentifiableSource> getSources(SpecimenOrObservationBase t, Integer pageSize, Integer pageNumber,
|
162
|
List<String> propertyPaths) {
|
163
|
|
164
|
return null;
|
165
|
}
|
166
|
|
167
|
/**
|
168
|
* {@inheritDoc}
|
169
|
*/
|
170
|
@Override
|
171
|
public Pager<Rights> getRights(SpecimenOrObservationBase t, Integer pageSize, Integer pageNumber,
|
172
|
List<String> propertyPaths) {
|
173
|
|
174
|
return null;
|
175
|
}
|
176
|
|
177
|
/**
|
178
|
* {@inheritDoc}
|
179
|
*/
|
180
|
@Override
|
181
|
public String getTitleCache(UUID uuid, boolean refresh) {
|
182
|
|
183
|
return null;
|
184
|
}
|
185
|
|
186
|
/**
|
187
|
* {@inheritDoc}
|
188
|
*/
|
189
|
@Override
|
190
|
public Pager<SpecimenOrObservationBase> findByTitle(Class<? extends SpecimenOrObservationBase> clazz,
|
191
|
String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber,
|
192
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
193
|
|
194
|
return null;
|
195
|
}
|
196
|
|
197
|
/**
|
198
|
* {@inheritDoc}
|
199
|
*/
|
200
|
@Override
|
201
|
public Pager<SpecimenOrObservationBase> findByTitle(
|
202
|
IIdentifiableEntityServiceConfigurator<SpecimenOrObservationBase> configurator) {
|
203
|
|
204
|
return null;
|
205
|
}
|
206
|
|
207
|
/**
|
208
|
* {@inheritDoc}
|
209
|
*/
|
210
|
@Override
|
211
|
public Integer countByTitle(Class<? extends SpecimenOrObservationBase> clazz, String queryString,
|
212
|
MatchMode matchmode, List<Criterion> criteria) {
|
213
|
|
214
|
return null;
|
215
|
}
|
216
|
|
217
|
/**
|
218
|
* {@inheritDoc}
|
219
|
*/
|
220
|
@Override
|
221
|
public Integer countByTitle(IIdentifiableEntityServiceConfigurator<SpecimenOrObservationBase> configurator) {
|
222
|
|
223
|
return null;
|
224
|
}
|
225
|
|
226
|
/**
|
227
|
* {@inheritDoc}
|
228
|
*/
|
229
|
@Override
|
230
|
public List<SpecimenOrObservationBase> listByTitle(Class<? extends SpecimenOrObservationBase> clazz,
|
231
|
String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber,
|
232
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
233
|
|
234
|
return null;
|
235
|
}
|
236
|
|
237
|
/**
|
238
|
* {@inheritDoc}
|
239
|
*/
|
240
|
@Override
|
241
|
public List<SpecimenOrObservationBase> listByReferenceTitle(Class<? extends SpecimenOrObservationBase> clazz,
|
242
|
String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber,
|
243
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
244
|
|
245
|
return null;
|
246
|
}
|
247
|
|
248
|
/**
|
249
|
* {@inheritDoc}
|
250
|
*/
|
251
|
@Override
|
252
|
public int deduplicate(Class<? extends SpecimenOrObservationBase> clazz, IMatchStrategy matchStrategy,
|
253
|
IMergeStrategy mergeStrategy) {
|
254
|
|
255
|
return 0;
|
256
|
}
|
257
|
|
258
|
/**
|
259
|
* {@inheritDoc}
|
260
|
*/
|
261
|
@Override
|
262
|
public Pager<SpecimenOrObservationBase> findTitleCache(Class<? extends SpecimenOrObservationBase> clazz,
|
263
|
String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints,
|
264
|
MatchMode matchMode) {
|
265
|
|
266
|
return null;
|
267
|
}
|
268
|
|
269
|
/**
|
270
|
* {@inheritDoc}
|
271
|
*/
|
272
|
@Override
|
273
|
public ISourceable getSourcedObjectByIdInSource(Class clazz, String idInSource, String idNamespace) {
|
274
|
|
275
|
return null;
|
276
|
}
|
277
|
|
278
|
/**
|
279
|
* {@inheritDoc}
|
280
|
*/
|
281
|
@Override
|
282
|
public <S extends SpecimenOrObservationBase> Pager<IdentifiedEntityDTO<S>> findByIdentifier(Class<S> clazz,
|
283
|
String identifier, DefinedTerm identifierType, MatchMode matchmode, boolean includeCdmEntity,
|
284
|
Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
|
285
|
|
286
|
return null;
|
287
|
}
|
288
|
|
289
|
/**
|
290
|
* {@inheritDoc}
|
291
|
*/
|
292
|
@Override
|
293
|
public <S extends SpecimenOrObservationBase> Pager<MarkedEntityDTO<S>> findByMarker(Class<S> clazz,
|
294
|
MarkerType markerType, Boolean markerValue, boolean includeEntity, Integer pageSize, Integer pageNumber,
|
295
|
List<String> propertyPaths) {
|
296
|
|
297
|
return null;
|
298
|
}
|
299
|
|
300
|
/**
|
301
|
* {@inheritDoc}
|
302
|
*/
|
303
|
@Override
|
304
|
public Pager<Annotation> getAnnotations(SpecimenOrObservationBase annotatedObj, MarkerType status,
|
305
|
Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
306
|
|
307
|
return null;
|
308
|
}
|
309
|
|
310
|
/**
|
311
|
* {@inheritDoc}
|
312
|
*/
|
313
|
@Override
|
314
|
public Pager<Marker> getMarkers(SpecimenOrObservationBase annotatableEntity, Boolean technical,
|
315
|
Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
316
|
|
317
|
return null;
|
318
|
}
|
319
|
|
320
|
/**
|
321
|
* {@inheritDoc}
|
322
|
*/
|
323
|
@Override
|
324
|
public List<Object[]> groupMarkers(Class<? extends SpecimenOrObservationBase> clazz, Boolean technical,
|
325
|
Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
|
326
|
|
327
|
return null;
|
328
|
}
|
329
|
|
330
|
/**
|
331
|
* {@inheritDoc}
|
332
|
*/
|
333
|
@Override
|
334
|
public int countMarkers(Class<? extends SpecimenOrObservationBase> clazz, Boolean technical) {
|
335
|
|
336
|
return 0;
|
337
|
}
|
338
|
|
339
|
/**
|
340
|
* {@inheritDoc}
|
341
|
*/
|
342
|
@Override
|
343
|
public <S extends SpecimenOrObservationBase> List<UuidAndTitleCache<S>> getUuidAndTitleCache(Class<S> clazz,
|
344
|
Integer limit, String pattern) {
|
345
|
|
346
|
return null;
|
347
|
}
|
348
|
|
349
|
/**
|
350
|
* {@inheritDoc}
|
351
|
*/
|
352
|
@Override
|
353
|
public List<UuidAndTitleCache<SpecimenOrObservationBase>> getUuidAndTitleCache(Integer limit, String pattern) {
|
354
|
|
355
|
return null;
|
356
|
}
|
357
|
|
358
|
/**
|
359
|
* {@inheritDoc}
|
360
|
*/
|
361
|
@Override
|
362
|
public Pager<AuditEventRecord<SpecimenOrObservationBase>> pageAuditEvents(SpecimenOrObservationBase t,
|
363
|
Integer pageSize, Integer pageNumber, AuditEventSort sort, List<String> propertyPaths) {
|
364
|
|
365
|
return null;
|
366
|
}
|
367
|
|
368
|
/**
|
369
|
* {@inheritDoc}
|
370
|
*/
|
371
|
@Override
|
372
|
public AuditEventRecord<SpecimenOrObservationBase> getNextAuditEvent(SpecimenOrObservationBase t) {
|
373
|
|
374
|
return null;
|
375
|
}
|
376
|
|
377
|
/**
|
378
|
* {@inheritDoc}
|
379
|
*/
|
380
|
@Override
|
381
|
public AuditEventRecord<SpecimenOrObservationBase> getPreviousAuditEvent(SpecimenOrObservationBase t) {
|
382
|
|
383
|
return null;
|
384
|
}
|
385
|
|
386
|
/**
|
387
|
* {@inheritDoc}
|
388
|
*/
|
389
|
@Override
|
390
|
public Pager<AuditEventRecord<SpecimenOrObservationBase>> pageAuditEvents(
|
391
|
Class<? extends SpecimenOrObservationBase> clazz, AuditEvent from, AuditEvent to,
|
392
|
List<AuditCriterion> criteria, Integer pageSize, Integer pageValue, AuditEventSort sort,
|
393
|
List<String> propertyPaths) {
|
394
|
|
395
|
return null;
|
396
|
}
|
397
|
|
398
|
/**
|
399
|
* {@inheritDoc}
|
400
|
*/
|
401
|
@Override
|
402
|
public DeleteResult isDeletable(UUID object, DeleteConfiguratorBase config) {
|
403
|
|
404
|
return null;
|
405
|
}
|
406
|
|
407
|
/**
|
408
|
* {@inheritDoc}
|
409
|
*/
|
410
|
@Override
|
411
|
public void clear() {
|
412
|
|
413
|
|
414
|
}
|
415
|
|
416
|
/**
|
417
|
* {@inheritDoc}
|
418
|
*/
|
419
|
@Override
|
420
|
public void lock(SpecimenOrObservationBase t, LockOptions lockOptions) {
|
421
|
|
422
|
|
423
|
}
|
424
|
|
425
|
/**
|
426
|
* {@inheritDoc}
|
427
|
*/
|
428
|
@Override
|
429
|
public void refresh(SpecimenOrObservationBase t, LockOptions lockOptions, List<String> propertyPaths) {
|
430
|
|
431
|
|
432
|
}
|
433
|
|
434
|
/**
|
435
|
* {@inheritDoc}
|
436
|
*/
|
437
|
@Override
|
438
|
public int count(Class<? extends SpecimenOrObservationBase> clazz) {
|
439
|
|
440
|
return 0;
|
441
|
}
|
442
|
|
443
|
/**
|
444
|
* {@inheritDoc}
|
445
|
*/
|
446
|
@Override
|
447
|
public DeleteResult delete(UUID persistentObjectUUID) {
|
448
|
|
449
|
return null;
|
450
|
}
|
451
|
|
452
|
/**
|
453
|
* {@inheritDoc}
|
454
|
*/
|
455
|
@Override
|
456
|
public boolean exists(UUID uuid) {
|
457
|
|
458
|
return false;
|
459
|
}
|
460
|
|
461
|
/**
|
462
|
* {@inheritDoc}
|
463
|
*/
|
464
|
@Override
|
465
|
public List<SpecimenOrObservationBase> find(Set<UUID> uuidSet) {
|
466
|
|
467
|
return null;
|
468
|
}
|
469
|
|
470
|
/**
|
471
|
* {@inheritDoc}
|
472
|
*/
|
473
|
@Override
|
474
|
public SpecimenOrObservationBase find(UUID uuid) {
|
475
|
|
476
|
return null;
|
477
|
}
|
478
|
|
479
|
/**
|
480
|
* {@inheritDoc}
|
481
|
*/
|
482
|
@Override
|
483
|
public SpecimenOrObservationBase findWithoutFlush(UUID uuid) {
|
484
|
|
485
|
return null;
|
486
|
}
|
487
|
|
488
|
/**
|
489
|
* {@inheritDoc}
|
490
|
*/
|
491
|
@Override
|
492
|
public SpecimenOrObservationBase find(int id) {
|
493
|
|
494
|
return null;
|
495
|
}
|
496
|
|
497
|
/**
|
498
|
* {@inheritDoc}
|
499
|
*/
|
500
|
@Override
|
501
|
public List<SpecimenOrObservationBase> findById(Set<Integer> idSet) {
|
502
|
|
503
|
return null;
|
504
|
}
|
505
|
|
506
|
/**
|
507
|
* {@inheritDoc}
|
508
|
*/
|
509
|
@Override
|
510
|
public Session getSession() {
|
511
|
|
512
|
return null;
|
513
|
}
|
514
|
|
515
|
/**
|
516
|
* {@inheritDoc}
|
517
|
*/
|
518
|
@Override
|
519
|
public List<Object[]> group(Class<? extends SpecimenOrObservationBase> clazz, Integer limit, Integer start,
|
520
|
List<Grouping> groups, List<String> propertyPaths) {
|
521
|
|
522
|
return null;
|
523
|
}
|
524
|
|
525
|
/**
|
526
|
* {@inheritDoc}
|
527
|
*/
|
528
|
@Override
|
529
|
public <S extends SpecimenOrObservationBase> List<S> list(Class<S> type, Integer limit, Integer start,
|
530
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
531
|
|
532
|
return null;
|
533
|
}
|
534
|
|
535
|
/**
|
536
|
* {@inheritDoc}
|
537
|
*/
|
538
|
@Override
|
539
|
public SpecimenOrObservationBase load(UUID uuid) {
|
540
|
|
541
|
return null;
|
542
|
}
|
543
|
|
544
|
/**
|
545
|
* {@inheritDoc}
|
546
|
*/
|
547
|
@Override
|
548
|
public SpecimenOrObservationBase load(int id, List<String> propertyPaths) {
|
549
|
|
550
|
return null;
|
551
|
}
|
552
|
|
553
|
/**
|
554
|
* {@inheritDoc}
|
555
|
*/
|
556
|
@Override
|
557
|
public SpecimenOrObservationBase load(UUID uuid, List<String> propertyPaths) {
|
558
|
|
559
|
return null;
|
560
|
}
|
561
|
|
562
|
/**
|
563
|
* {@inheritDoc}
|
564
|
*/
|
565
|
@Override
|
566
|
public List<SpecimenOrObservationBase> load(List<UUID> uuids, List<String> propertyPaths) {
|
567
|
|
568
|
return null;
|
569
|
}
|
570
|
|
571
|
/**
|
572
|
* {@inheritDoc}
|
573
|
*/
|
574
|
@Override
|
575
|
public SpecimenOrObservationBase merge(SpecimenOrObservationBase transientObject) {
|
576
|
|
577
|
return null;
|
578
|
}
|
579
|
|
580
|
/**
|
581
|
* {@inheritDoc}
|
582
|
*/
|
583
|
@Override
|
584
|
public <S extends SpecimenOrObservationBase> Pager<S> page(Class<S> type, Integer pageSize, Integer pageNumber,
|
585
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
586
|
|
587
|
return null;
|
588
|
}
|
589
|
|
590
|
/**
|
591
|
* {@inheritDoc}
|
592
|
*/
|
593
|
@Override
|
594
|
public UUID refresh(SpecimenOrObservationBase persistentObject) {
|
595
|
|
596
|
return null;
|
597
|
}
|
598
|
|
599
|
/**
|
600
|
* {@inheritDoc}
|
601
|
*/
|
602
|
@Override
|
603
|
public List<SpecimenOrObservationBase> rows(String tableName, int limit, int start) {
|
604
|
|
605
|
return null;
|
606
|
}
|
607
|
|
608
|
/**
|
609
|
* {@inheritDoc}
|
610
|
*/
|
611
|
@Override
|
612
|
public Map<UUID, SpecimenOrObservationBase> save(Collection<SpecimenOrObservationBase> newInstances) {
|
613
|
|
614
|
return null;
|
615
|
}
|
616
|
|
617
|
/**
|
618
|
* {@inheritDoc}
|
619
|
*/
|
620
|
@Override
|
621
|
public SpecimenOrObservationBase save(SpecimenOrObservationBase newInstance) {
|
622
|
|
623
|
return null;
|
624
|
}
|
625
|
|
626
|
/**
|
627
|
* {@inheritDoc}
|
628
|
*/
|
629
|
@Override
|
630
|
public UUID saveOrUpdate(SpecimenOrObservationBase transientObject) {
|
631
|
|
632
|
return null;
|
633
|
}
|
634
|
|
635
|
/**
|
636
|
* {@inheritDoc}
|
637
|
*/
|
638
|
@Override
|
639
|
public Map<UUID, SpecimenOrObservationBase> saveOrUpdate(
|
640
|
Collection<SpecimenOrObservationBase> transientObjects) {
|
641
|
|
642
|
return null;
|
643
|
}
|
644
|
|
645
|
/**
|
646
|
* {@inheritDoc}
|
647
|
*/
|
648
|
@Override
|
649
|
public UUID update(SpecimenOrObservationBase transientObject) {
|
650
|
|
651
|
return null;
|
652
|
}
|
653
|
|
654
|
/**
|
655
|
* {@inheritDoc}
|
656
|
*/
|
657
|
@Override
|
658
|
public SpecimenOrObservationBase loadWithUpdate(UUID uuid) {
|
659
|
|
660
|
return null;
|
661
|
}
|
662
|
|
663
|
/**
|
664
|
* {@inheritDoc}
|
665
|
*/
|
666
|
@Override
|
667
|
public List<SpecimenOrObservationBase> list(SpecimenOrObservationBase example, Set<String> includeProperties,
|
668
|
Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
669
|
|
670
|
return null;
|
671
|
}
|
672
|
|
673
|
/**
|
674
|
* {@inheritDoc}
|
675
|
*/
|
676
|
@Override
|
677
|
public DeleteResult delete(SpecimenOrObservationBase persistentObject) {
|
678
|
|
679
|
return null;
|
680
|
}
|
681
|
|
682
|
/**
|
683
|
* {@inheritDoc}
|
684
|
*/
|
685
|
@Override
|
686
|
public DeleteResult delete(Collection<UUID> persistentObjectUUIDs) {
|
687
|
|
688
|
return null;
|
689
|
}
|
690
|
|
691
|
/**
|
692
|
* {@inheritDoc}
|
693
|
*/
|
694
|
@Override
|
695
|
public List<SpecimenOrObservationBase> merge(List<SpecimenOrObservationBase> detachedObjects) {
|
696
|
|
697
|
return null;
|
698
|
}
|
699
|
|
700
|
/**
|
701
|
* {@inheritDoc}
|
702
|
*/
|
703
|
@Override
|
704
|
public List<SpecimenOrObservationBase> loadByIds(List<Integer> idSet, List<String> propertyPaths) {
|
705
|
|
706
|
return null;
|
707
|
}
|
708
|
|
709
|
/**
|
710
|
* {@inheritDoc}
|
711
|
*/
|
712
|
@Override
|
713
|
public List<MergeResult<SpecimenOrObservationBase>> merge(List<SpecimenOrObservationBase> detachedObjects,
|
714
|
boolean returnTransientEntity) {
|
715
|
|
716
|
return null;
|
717
|
}
|
718
|
|
719
|
/**
|
720
|
* {@inheritDoc}
|
721
|
*/
|
722
|
@Override
|
723
|
public MergeResult<SpecimenOrObservationBase> merge(SpecimenOrObservationBase newInstance,
|
724
|
boolean returnTransientEntity) {
|
725
|
|
726
|
return null;
|
727
|
}
|
728
|
|
729
|
/**
|
730
|
* {@inheritDoc}
|
731
|
*/
|
732
|
@Override
|
733
|
public Country getCountryByIso(String iso639) {
|
734
|
|
735
|
return null;
|
736
|
}
|
737
|
|
738
|
/**
|
739
|
* {@inheritDoc}
|
740
|
*/
|
741
|
@Override
|
742
|
public List<Country> getCountryByName(String name) {
|
743
|
|
744
|
return null;
|
745
|
}
|
746
|
|
747
|
/**
|
748
|
* {@inheritDoc}
|
749
|
*/
|
750
|
@Override
|
751
|
public Pager<SpecimenOrObservationBase> list(Class<? extends SpecimenOrObservationBase> type,
|
752
|
TaxonBase determinedAs, Integer limit, Integer start, List<OrderHint> orderHints,
|
753
|
List<String> propertyPaths) {
|
754
|
|
755
|
return null;
|
756
|
}
|
757
|
|
758
|
/**
|
759
|
* {@inheritDoc}
|
760
|
*/
|
761
|
@Override
|
762
|
public Pager<SpecimenOrObservationBase> list(Class<? extends SpecimenOrObservationBase> type,
|
763
|
TaxonName determinedAs, Integer limit, Integer start, List<OrderHint> orderHints,
|
764
|
List<String> propertyPaths) {
|
765
|
|
766
|
return null;
|
767
|
}
|
768
|
|
769
|
/**
|
770
|
* {@inheritDoc}
|
771
|
*/
|
772
|
@Override
|
773
|
public Pager<Media> getMedia(SpecimenOrObservationBase occurence, Integer pageSize, Integer pageNumber,
|
774
|
List<String> propertyPaths) {
|
775
|
|
776
|
return null;
|
777
|
}
|
778
|
|
779
|
/**
|
780
|
* {@inheritDoc}
|
781
|
*/
|
782
|
@Override
|
783
|
public Pager<Media> getMediainHierarchy(SpecimenOrObservationBase rootOccurence, Integer pageSize,
|
784
|
Integer pageNumber, List<String> propertyPaths) {
|
785
|
|
786
|
return null;
|
787
|
}
|
788
|
|
789
|
/**
|
790
|
* {@inheritDoc}
|
791
|
*/
|
792
|
@Override
|
793
|
public int countDeterminations(SpecimenOrObservationBase occurence, TaxonBase taxonbase) {
|
794
|
|
795
|
return 0;
|
796
|
}
|
797
|
|
798
|
/**
|
799
|
* {@inheritDoc}
|
800
|
*/
|
801
|
@Override
|
802
|
public Pager<DeterminationEvent> getDeterminations(SpecimenOrObservationBase occurence, TaxonBase taxonBase,
|
803
|
Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
|
804
|
|
805
|
return null;
|
806
|
}
|
807
|
|
808
|
/**
|
809
|
* {@inheritDoc}
|
810
|
*/
|
811
|
@Override
|
812
|
public Pager<DerivationEvent> getDerivationEvents(SpecimenOrObservationBase occurence, Integer pageSize,
|
813
|
Integer pageNumber, List<String> propertyPaths) {
|
814
|
|
815
|
return null;
|
816
|
}
|
817
|
|
818
|
/**
|
819
|
* {@inheritDoc}
|
820
|
*/
|
821
|
@Override
|
822
|
public Pager<SpecimenOrObservationBase> search(Class<? extends SpecimenOrObservationBase> clazz, String query,
|
823
|
Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
824
|
|
825
|
return null;
|
826
|
}
|
827
|
|
828
|
/**
|
829
|
* {@inheritDoc}
|
830
|
*/
|
831
|
@Override
|
832
|
public List<UuidAndTitleCache<FieldUnit>> getFieldUnitUuidAndTitleCache() {
|
833
|
|
834
|
return null;
|
835
|
}
|
836
|
|
837
|
/**
|
838
|
* {@inheritDoc}
|
839
|
*/
|
840
|
@Override
|
841
|
public List<UuidAndTitleCache<DerivedUnit>> getDerivedUnitUuidAndTitleCache(Integer limit, String pattern) {
|
842
|
|
843
|
return null;
|
844
|
}
|
845
|
|
846
|
/**
|
847
|
* {@inheritDoc}
|
848
|
*/
|
849
|
@Override
|
850
|
public DerivedUnitFacade getDerivedUnitFacade(DerivedUnit derivedUnit, List<String> propertyPaths)
|
851
|
throws DerivedUnitFacadeNotSupportedException {
|
852
|
|
853
|
return null;
|
854
|
}
|
855
|
|
856
|
/**
|
857
|
* {@inheritDoc}
|
858
|
*/
|
859
|
@Override
|
860
|
public List<DerivedUnitFacade> listDerivedUnitFacades(DescriptionBase description, List<String> propertyPaths) {
|
861
|
|
862
|
return null;
|
863
|
}
|
864
|
|
865
|
/**
|
866
|
* {@inheritDoc}
|
867
|
*/
|
868
|
@Override
|
869
|
public <T extends SpecimenOrObservationBase> List<T> listByAssociatedTaxon(Class<T> type,
|
870
|
Set<TaxonRelationshipEdge> includeRelationships, Taxon associatedTaxon, Integer maxDepth,
|
871
|
Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
872
|
|
873
|
return null;
|
874
|
}
|
875
|
|
876
|
/**
|
877
|
* {@inheritDoc}
|
878
|
*/
|
879
|
@Override
|
880
|
public Collection<SpecimenOrObservationBase> listFieldUnitsByAssociatedTaxon(Taxon associatedTaxon,
|
881
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
882
|
|
883
|
return null;
|
884
|
}
|
885
|
|
886
|
/**
|
887
|
* {@inheritDoc}
|
888
|
*/
|
889
|
@Override
|
890
|
public Pager<SpecimenOrObservationBase> pageFieldUnitsByAssociatedTaxon(
|
891
|
Set<TaxonRelationshipEdge> includeRelationships, Taxon associatedTaxon, Integer maxDepth,
|
892
|
Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
893
|
|
894
|
return null;
|
895
|
}
|
896
|
|
897
|
/**
|
898
|
* {@inheritDoc}
|
899
|
*/
|
900
|
@Override
|
901
|
public <T extends SpecimenOrObservationBase> Pager<T> pageByAssociatedTaxon(Class<T> type,
|
902
|
Set<TaxonRelationshipEdge> includeRelationships, Taxon associatedTaxon, Integer maxDepth,
|
903
|
Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
904
|
|
905
|
return null;
|
906
|
}
|
907
|
|
908
|
/**
|
909
|
* {@inheritDoc}
|
910
|
*/
|
911
|
@Override
|
912
|
public Collection<FieldUnit> getFieldUnits(UUID specimenUuid) {
|
913
|
|
914
|
return null;
|
915
|
}
|
916
|
|
917
|
/**
|
918
|
* {@inheritDoc}
|
919
|
*/
|
920
|
@Override
|
921
|
public Pager<SearchResult<SpecimenOrObservationBase>> findByFullText(
|
922
|
Class<? extends SpecimenOrObservationBase> clazz, String queryString, Rectangle boundingBox,
|
923
|
List<Language> languages, boolean highlightFragments, Integer pageSize, Integer pageNumber,
|
924
|
List<OrderHint> orderHints, List<String> propertyPaths) throws IOException, LuceneParseException {
|
925
|
|
926
|
return null;
|
927
|
}
|
928
|
|
929
|
/**
|
930
|
* {@inheritDoc}
|
931
|
*/
|
932
|
@Override
|
933
|
public <T extends SpecimenOrObservationBase> Pager<T> pageByAssociatedTaxon(Class<T> type,
|
934
|
Set<TaxonRelationshipEdge> includeRelationships, String taxonUUID, Integer maxDepth, Integer pageSize,
|
935
|
Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
936
|
|
937
|
return null;
|
938
|
}
|
939
|
|
940
|
/**
|
941
|
* {@inheritDoc}
|
942
|
*/
|
943
|
@Override
|
944
|
public UpdateResult moveSequence(DnaSample from, DnaSample to, Sequence sequence) {
|
945
|
|
946
|
return null;
|
947
|
}
|
948
|
|
949
|
/**
|
950
|
* {@inheritDoc}
|
951
|
*/
|
952
|
@Override
|
953
|
public UpdateResult moveSequence(UUID fromUuid, UUID toUuid, UUID sequenceUuid) {
|
954
|
|
955
|
return null;
|
956
|
}
|
957
|
|
958
|
/**
|
959
|
* {@inheritDoc}
|
960
|
*/
|
961
|
@Override
|
962
|
public UpdateResult moveDerivate(UUID specimenFromUuid, UUID specimenToUuid, UUID derivateUuid) {
|
963
|
|
964
|
return null;
|
965
|
}
|
966
|
|
967
|
/**
|
968
|
* {@inheritDoc}
|
969
|
*/
|
970
|
@Override
|
971
|
public boolean moveDerivate(SpecimenOrObservationBase<?> from, SpecimenOrObservationBase<?> to,
|
972
|
DerivedUnit derivate) {
|
973
|
|
974
|
return false;
|
975
|
}
|
976
|
|
977
|
/**
|
978
|
* {@inheritDoc}
|
979
|
*/
|
980
|
@Override
|
981
|
public FieldUnitDTO assembleFieldUnitDTO(FieldUnit fieldUnit, UUID associatedTaxonUuid) {
|
982
|
|
983
|
return null;
|
984
|
}
|
985
|
|
986
|
/**
|
987
|
* {@inheritDoc}
|
988
|
*/
|
989
|
@Override
|
990
|
public PreservedSpecimenDTO assemblePreservedSpecimenDTO(DerivedUnit derivedUnit) {
|
991
|
|
992
|
return null;
|
993
|
}
|
994
|
|
995
|
/**
|
996
|
* {@inheritDoc}
|
997
|
*/
|
998
|
@Override
|
999
|
public Collection<ICdmBase> getNonCascadedAssociatedElements(SpecimenOrObservationBase<?> specimen) {
|
1000
|
|
1001
|
return null;
|
1002
|
}
|
1003
|
|
1004
|
/**
|
1005
|
* {@inheritDoc}
|
1006
|
*/
|
1007
|
@Override
|
1008
|
public DeleteResult delete(SpecimenOrObservationBase<?> specimen, SpecimenDeleteConfigurator config) {
|
1009
|
|
1010
|
return null;
|
1011
|
}
|
1012
|
|
1013
|
/**
|
1014
|
* {@inheritDoc}
|
1015
|
*/
|
1016
|
@Override
|
1017
|
public DeleteResult delete(UUID specimenUuid, SpecimenDeleteConfigurator config) {
|
1018
|
|
1019
|
return null;
|
1020
|
}
|
1021
|
|
1022
|
/**
|
1023
|
* {@inheritDoc}
|
1024
|
*/
|
1025
|
@Override
|
1026
|
public Collection<IndividualsAssociation> listIndividualsAssociations(SpecimenOrObservationBase<?> specimen,
|
1027
|
Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
1028
|
|
1029
|
return null;
|
1030
|
}
|
1031
|
|
1032
|
/**
|
1033
|
* {@inheritDoc}
|
1034
|
*/
|
1035
|
@Override
|
1036
|
public Collection<TaxonBase<?>> listIndividualsAssociationTaxa(SpecimenOrObservationBase<?> specimen,
|
1037
|
Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
1038
|
|
1039
|
return null;
|
1040
|
}
|
1041
|
|
1042
|
/**
|
1043
|
* {@inheritDoc}
|
1044
|
*/
|
1045
|
@Override
|
1046
|
public Collection<TaxonBase<?>> listAssociatedTaxa(SpecimenOrObservationBase<?> specimen, Integer limit,
|
1047
|
Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
1048
|
return null;
|
1049
|
}
|
1050
|
|
1051
|
/**
|
1052
|
* {@inheritDoc}
|
1053
|
*/
|
1054
|
@Override
|
1055
|
public Collection<TaxonBase<?>> listDeterminedTaxa(SpecimenOrObservationBase<?> specimen, Integer limit,
|
1056
|
Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
1057
|
|
1058
|
return null;
|
1059
|
}
|
1060
|
|
1061
|
/**
|
1062
|
* {@inheritDoc}
|
1063
|
*/
|
1064
|
@Override
|
1065
|
public Collection<DeterminationEvent> listDeterminationEvents(SpecimenOrObservationBase<?> specimen,
|
1066
|
Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
1067
|
return null;
|
1068
|
}
|
1069
|
|
1070
|
/**
|
1071
|
* {@inheritDoc}
|
1072
|
*/
|
1073
|
@Override
|
1074
|
public Collection<TaxonBase<?>> listTypeDesignationTaxa(DerivedUnit specimen, Integer limit, Integer start,
|
1075
|
List<OrderHint> orderHints, List<String> propertyPaths) {
|
1076
|
|
1077
|
return null;
|
1078
|
}
|
1079
|
|
1080
|
/**
|
1081
|
* {@inheritDoc}
|
1082
|
*/
|
1083
|
@Override
|
1084
|
public Map<DerivedUnit, Collection<SpecimenTypeDesignation>> listTypeDesignations(
|
1085
|
Collection<DerivedUnit> specimens, Integer limit, Integer start, List<OrderHint> orderHints,
|
1086
|
List<String> propertyPaths) {
|
1087
|
return null;
|
1088
|
}
|
1089
|
|
1090
|
/**
|
1091
|
* {@inheritDoc}
|
1092
|
*/
|
1093
|
@Override
|
1094
|
public Collection<SpecimenTypeDesignation> listTypeDesignations(DerivedUnit specimen, Integer limit,
|
1095
|
Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
1096
|
return null;
|
1097
|
}
|
1098
|
|
1099
|
/**
|
1100
|
* {@inheritDoc}
|
1101
|
*/
|
1102
|
@Override
|
1103
|
public Collection<DescriptionBase<?>> listDescriptionsWithDescriptionSpecimen(
|
1104
|
SpecimenOrObservationBase<?> specimen, Integer limit, Integer start, List<OrderHint> orderHints,
|
1105
|
List<String> propertyPaths) {
|
1106
|
|
1107
|
return null;
|
1108
|
}
|
1109
|
|
1110
|
/**
|
1111
|
* {@inheritDoc}
|
1112
|
*/
|
1113
|
@Override
|
1114
|
public Collection<DescriptionElementBase> getCharacterDataForSpecimen(SpecimenOrObservationBase<?> specimen) {
|
1115
|
|
1116
|
return null;
|
1117
|
}
|
1118
|
|
1119
|
/**
|
1120
|
* {@inheritDoc}
|
1121
|
*/
|
1122
|
@Override
|
1123
|
public Collection<DescriptionElementBase> getCharacterDataForSpecimen(UUID specimenUuid) {
|
1124
|
return null;
|
1125
|
}
|
1126
|
|
1127
|
/**
|
1128
|
* {@inheritDoc}
|
1129
|
*/
|
1130
|
@Override
|
1131
|
public String getMostSignificantIdentifier(DerivedUnit derivedUnit) {
|
1132
|
return null;
|
1133
|
}
|
1134
|
|
1135
|
/**
|
1136
|
* {@inheritDoc}
|
1137
|
*/
|
1138
|
@Override
|
1139
|
public int countOccurrences(IIdentifiableEntityServiceConfigurator<SpecimenOrObservationBase> config) {
|
1140
|
return 0;
|
1141
|
}
|
1142
|
|
1143
|
/**
|
1144
|
* {@inheritDoc}
|
1145
|
*/
|
1146
|
@Override
|
1147
|
public List<SpecimenOrObservationBase<?>> getAllHierarchyDerivatives(SpecimenOrObservationBase<?> specimen) {
|
1148
|
return null;
|
1149
|
}
|
1150
|
|
1151
|
/**
|
1152
|
* {@inheritDoc}
|
1153
|
*/
|
1154
|
@Override
|
1155
|
public List<DerivedUnit> getAllChildDerivatives(SpecimenOrObservationBase<?> specimen) {
|
1156
|
return null;
|
1157
|
}
|
1158
|
|
1159
|
/**
|
1160
|
* {@inheritDoc}
|
1161
|
*/
|
1162
|
@Override
|
1163
|
public List<DerivedUnit> getAllChildDerivatives(UUID specimenUuid) {
|
1164
|
return null;
|
1165
|
}
|
1166
|
|
1167
|
/**
|
1168
|
* {@inheritDoc}
|
1169
|
*/
|
1170
|
@Override
|
1171
|
public <S extends SpecimenOrObservationBase> List<IdentifiedEntityDTO<S>> listByIdentifier(Class<S> clazz,
|
1172
|
String identifier, DefinedTerm identifierType, MatchMode matchmode, boolean includeEntity,
|
1173
|
List<String> propertyPaths, Integer limit) {
|
1174
|
// TODO Auto-generated method stub
|
1175
|
return null;
|
1176
|
}
|
1177
|
|
1178
|
}
|
1179
|
|
1180
|
|
1181
|
}
|