1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2013 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.taxeditor.editor.view.dataimport.transientServices;
|
11
|
|
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.LockMode;
|
19
|
import org.hibernate.Session;
|
20
|
import org.hibernate.criterion.Criterion;
|
21
|
import org.hibernate.envers.query.criteria.AuditCriterion;
|
22
|
|
23
|
import eu.etaxonomy.cdm.api.service.IClassificationService;
|
24
|
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
|
25
|
import eu.etaxonomy.cdm.api.service.exception.ReferencedObjectUndeletableException;
|
26
|
import eu.etaxonomy.cdm.api.service.pager.Pager;
|
27
|
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
|
28
|
import eu.etaxonomy.cdm.model.common.Annotation;
|
29
|
import eu.etaxonomy.cdm.model.common.ISourceable;
|
30
|
import eu.etaxonomy.cdm.model.common.IdentifiableSource;
|
31
|
import eu.etaxonomy.cdm.model.common.LSID;
|
32
|
import eu.etaxonomy.cdm.model.common.Marker;
|
33
|
import eu.etaxonomy.cdm.model.common.MarkerType;
|
34
|
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;
|
35
|
import eu.etaxonomy.cdm.model.media.MediaRepresentation;
|
36
|
import eu.etaxonomy.cdm.model.media.Rights;
|
37
|
import eu.etaxonomy.cdm.model.name.Rank;
|
38
|
import eu.etaxonomy.cdm.model.taxon.Classification;
|
39
|
import eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode;
|
40
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
41
|
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
|
42
|
import eu.etaxonomy.cdm.model.view.AuditEvent;
|
43
|
import eu.etaxonomy.cdm.model.view.AuditEventRecord;
|
44
|
import eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort;
|
45
|
import eu.etaxonomy.cdm.persistence.query.Grouping;
|
46
|
import eu.etaxonomy.cdm.persistence.query.MatchMode;
|
47
|
import eu.etaxonomy.cdm.persistence.query.OrderHint;
|
48
|
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
|
49
|
import eu.etaxonomy.cdm.strategy.match.IMatchStrategy;
|
50
|
import eu.etaxonomy.cdm.strategy.merge.IMergeStrategy;
|
51
|
|
52
|
/**
|
53
|
* @author pplitzner
|
54
|
* @date 27.09.2013
|
55
|
*
|
56
|
*/
|
57
|
public class TransientClassificationService implements IClassificationService {
|
58
|
|
59
|
private IClassificationService defaultClassificationService;
|
60
|
|
61
|
/**
|
62
|
* @param defaultClassificationService
|
63
|
*/
|
64
|
public TransientClassificationService(IClassificationService defaultClassificationService) {
|
65
|
this.defaultClassificationService = defaultClassificationService;
|
66
|
}
|
67
|
|
68
|
/**
|
69
|
* @param t
|
70
|
* @param pageSize
|
71
|
* @param pageNumber
|
72
|
* @param sort
|
73
|
* @param propertyPaths
|
74
|
* @return
|
75
|
* @see eu.etaxonomy.cdm.api.service.IVersionableService#pageAuditEvents(eu.etaxonomy.cdm.model.common.VersionableEntity, java.lang.Integer, java.lang.Integer, eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort, java.util.List)
|
76
|
*/
|
77
|
@Override
|
78
|
public Pager<AuditEventRecord<Classification>> pageAuditEvents(Classification t, Integer pageSize, Integer pageNumber, AuditEventSort sort, List<String> propertyPaths) {
|
79
|
return defaultClassificationService.pageAuditEvents(t, pageSize, pageNumber, sort, propertyPaths);
|
80
|
}
|
81
|
|
82
|
/**
|
83
|
* @param annotatedObj
|
84
|
* @param status
|
85
|
* @param pageSize
|
86
|
* @param pageNumber
|
87
|
* @param orderHints
|
88
|
* @param propertyPaths
|
89
|
* @return
|
90
|
* @see eu.etaxonomy.cdm.api.service.IAnnotatableService#getAnnotations(eu.etaxonomy.cdm.model.common.AnnotatableEntity, eu.etaxonomy.cdm.model.common.MarkerType, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
91
|
*/
|
92
|
@Override
|
93
|
public Pager<Annotation> getAnnotations(Classification annotatedObj, MarkerType status, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
94
|
return defaultClassificationService.getAnnotations(annotatedObj, status, pageSize, pageNumber, orderHints, propertyPaths);
|
95
|
}
|
96
|
|
97
|
/**
|
98
|
* @param uuid
|
99
|
* @return
|
100
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
|
101
|
*/
|
102
|
@Override
|
103
|
public TaxonNode getTaxonNodeByUuid(UUID uuid) {
|
104
|
return defaultClassificationService.getTaxonNodeByUuid(uuid);
|
105
|
}
|
106
|
|
107
|
/**
|
108
|
* @param uuid
|
109
|
* @return
|
110
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
|
111
|
*/
|
112
|
@Override
|
113
|
public ITaxonTreeNode getTreeNodeByUuid(UUID uuid) {
|
114
|
return defaultClassificationService.getTreeNodeByUuid(uuid);
|
115
|
}
|
116
|
|
117
|
/**
|
118
|
*
|
119
|
* @see eu.etaxonomy.cdm.api.service.IService#clear()
|
120
|
*/
|
121
|
@Override
|
122
|
public void clear() {
|
123
|
defaultClassificationService.clear();
|
124
|
}
|
125
|
|
126
|
/**
|
127
|
* @param limit
|
128
|
* @param start
|
129
|
* @param orderHints
|
130
|
* @param propertyPaths
|
131
|
* @return
|
132
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
133
|
*/
|
134
|
@Override
|
135
|
public List<Classification> listClassifications(Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
136
|
return defaultClassificationService.listClassifications(limit, start, orderHints, propertyPaths);
|
137
|
}
|
138
|
|
139
|
/**
|
140
|
* @param t
|
141
|
* @param lockMode
|
142
|
* @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
|
143
|
*/
|
144
|
@Override
|
145
|
public void lock(Classification t, LockMode lockMode) {
|
146
|
defaultClassificationService.lock(t, lockMode);
|
147
|
}
|
148
|
|
149
|
/**
|
150
|
* @param t
|
151
|
* @param lockMode
|
152
|
* @param propertyPaths
|
153
|
* @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
|
154
|
*/
|
155
|
@Override
|
156
|
public void refresh(Classification t, LockMode lockMode, List<String> propertyPaths) {
|
157
|
defaultClassificationService.refresh(t, lockMode, propertyPaths);
|
158
|
}
|
159
|
|
160
|
/**
|
161
|
* @param taxon
|
162
|
* @param classificationUuid
|
163
|
* @param propertyPaths
|
164
|
* @return
|
165
|
* @deprecated
|
166
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
|
167
|
*/
|
168
|
@Deprecated
|
169
|
@Override
|
170
|
public TaxonNode loadTaxonNodeByTaxon(Taxon taxon, UUID classificationUuid, List<String> propertyPaths) {
|
171
|
return defaultClassificationService.loadTaxonNodeByTaxon(taxon, classificationUuid, propertyPaths);
|
172
|
}
|
173
|
|
174
|
/**
|
175
|
*
|
176
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
|
177
|
*/
|
178
|
@Override
|
179
|
public void updateTitleCache() {
|
180
|
defaultClassificationService.updateTitleCache();
|
181
|
}
|
182
|
|
183
|
/**
|
184
|
* @param t
|
185
|
* @return
|
186
|
* @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
|
187
|
*/
|
188
|
@Override
|
189
|
public AuditEventRecord<Classification> getNextAuditEvent(Classification t) {
|
190
|
return defaultClassificationService.getNextAuditEvent(t);
|
191
|
}
|
192
|
|
193
|
/**
|
194
|
* @param annotatableEntity
|
195
|
* @param technical
|
196
|
* @param pageSize
|
197
|
* @param pageNumber
|
198
|
* @param orderHints
|
199
|
* @param propertyPaths
|
200
|
* @return
|
201
|
* @see eu.etaxonomy.cdm.api.service.IAnnotatableService#getMarkers(eu.etaxonomy.cdm.model.common.AnnotatableEntity, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
202
|
*/
|
203
|
@Override
|
204
|
public Pager<Marker> getMarkers(Classification annotatableEntity, Boolean technical, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
205
|
return defaultClassificationService.getMarkers(annotatableEntity, technical, pageSize, pageNumber, orderHints, propertyPaths);
|
206
|
}
|
207
|
|
208
|
/**
|
209
|
* @param clazz
|
210
|
* @param stepSize
|
211
|
* @param cacheStrategy
|
212
|
* @param monitor
|
213
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache(java.lang.Class, java.lang.Integer, eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy, eu.etaxonomy.cdm.common.monitor.IProgressMonitor)
|
214
|
*/
|
215
|
@Override
|
216
|
public void updateTitleCache(Class<? extends Classification> clazz, Integer stepSize, IIdentifiableEntityCacheStrategy<Classification> cacheStrategy, IProgressMonitor monitor) {
|
217
|
defaultClassificationService.updateTitleCache(clazz, stepSize, cacheStrategy, monitor);
|
218
|
}
|
219
|
|
220
|
/**
|
221
|
* @param taxonNode
|
222
|
* @param propertyPaths
|
223
|
* @return
|
224
|
* @deprecated
|
225
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
|
226
|
*/
|
227
|
@Deprecated
|
228
|
@Override
|
229
|
public TaxonNode loadTaxonNode(TaxonNode taxonNode, List<String> propertyPaths) {
|
230
|
return defaultClassificationService.loadTaxonNode(taxonNode, propertyPaths);
|
231
|
}
|
232
|
|
233
|
/**
|
234
|
* @param t
|
235
|
* @return
|
236
|
* @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
|
237
|
*/
|
238
|
@Override
|
239
|
public AuditEventRecord<Classification> getPreviousAuditEvent(Classification t) {
|
240
|
return defaultClassificationService.getPreviousAuditEvent(t);
|
241
|
}
|
242
|
|
243
|
/**
|
244
|
* @param classification
|
245
|
* @param rank
|
246
|
* @param limit
|
247
|
* @param start
|
248
|
* @param propertyPaths
|
249
|
* @return
|
250
|
* @deprecated
|
251
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
|
252
|
*/
|
253
|
@Deprecated
|
254
|
@Override
|
255
|
public List<TaxonNode> loadRankSpecificRootNodes(Classification classification, Rank rank, Integer limit, Integer start, List<String> propertyPaths) {
|
256
|
return defaultClassificationService.loadRankSpecificRootNodes(classification, rank, limit, start, propertyPaths);
|
257
|
}
|
258
|
|
259
|
/**
|
260
|
* @param clazz
|
261
|
* @return
|
262
|
* @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
|
263
|
*/
|
264
|
@Override
|
265
|
public int count(Class<? extends Classification> clazz) {
|
266
|
return defaultClassificationService.count(clazz);
|
267
|
}
|
268
|
|
269
|
/**
|
270
|
* @param clazz
|
271
|
* @param from
|
272
|
* @param to
|
273
|
* @param criteria
|
274
|
* @param pageSize
|
275
|
* @param pageValue
|
276
|
* @param sort
|
277
|
* @param propertyPaths
|
278
|
* @return
|
279
|
* @see eu.etaxonomy.cdm.api.service.IVersionableService#pageAuditEvents(java.lang.Class, eu.etaxonomy.cdm.model.view.AuditEvent, eu.etaxonomy.cdm.model.view.AuditEvent, java.util.List, java.lang.Integer, java.lang.Integer, eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort, java.util.List)
|
280
|
*/
|
281
|
@Override
|
282
|
public Pager<AuditEventRecord<Classification>> pageAuditEvents(Class<? extends Classification> clazz, AuditEvent from, AuditEvent to, List<AuditCriterion> criteria, Integer pageSize, Integer pageValue, AuditEventSort sort, List<String> propertyPaths) {
|
283
|
return defaultClassificationService.pageAuditEvents(clazz, from, to, criteria, pageSize, pageValue, sort, propertyPaths);
|
284
|
}
|
285
|
|
286
|
/**
|
287
|
* @param lsid
|
288
|
* @return
|
289
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
|
290
|
*/
|
291
|
@Override
|
292
|
public Classification find(LSID lsid) {
|
293
|
return defaultClassificationService.find(lsid);
|
294
|
}
|
295
|
|
296
|
/**
|
297
|
* @param persistentObject
|
298
|
* @return
|
299
|
* @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
|
300
|
*/
|
301
|
@Override
|
302
|
public UUID delete(Classification persistentObject) throws ReferencedObjectUndeletableException{
|
303
|
return defaultClassificationService.delete(persistentObject);
|
304
|
}
|
305
|
|
306
|
/**
|
307
|
* @param clazz
|
308
|
* @param technical
|
309
|
* @param pageSize
|
310
|
* @param pageNumber
|
311
|
* @param propertyPaths
|
312
|
* @return
|
313
|
* @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
|
314
|
*/
|
315
|
@Override
|
316
|
public List<Object[]> groupMarkers(Class<? extends Classification> clazz, Boolean technical, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
|
317
|
return defaultClassificationService.groupMarkers(clazz, technical, pageSize, pageNumber, propertyPaths);
|
318
|
}
|
319
|
|
320
|
/**
|
321
|
* @param uuid
|
322
|
* @return
|
323
|
* @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
|
324
|
*/
|
325
|
@Override
|
326
|
public boolean exists(UUID uuid) {
|
327
|
return defaultClassificationService.exists(uuid);
|
328
|
}
|
329
|
|
330
|
/**
|
331
|
* @param x
|
332
|
* @param y
|
333
|
* @return
|
334
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
|
335
|
*/
|
336
|
@Override
|
337
|
public Classification replace(Classification x, Classification y) {
|
338
|
return defaultClassificationService.replace(x, y);
|
339
|
}
|
340
|
|
341
|
/**
|
342
|
* @param uuidSet
|
343
|
* @return
|
344
|
* @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
|
345
|
*/
|
346
|
@Override
|
347
|
public List<Classification> find(Set<UUID> uuidSet) {
|
348
|
return defaultClassificationService.find(uuidSet);
|
349
|
}
|
350
|
|
351
|
/**
|
352
|
* @param t
|
353
|
* @param pageSize
|
354
|
* @param pageNumber
|
355
|
* @param propertyPaths
|
356
|
* @return
|
357
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
|
358
|
*/
|
359
|
@Override
|
360
|
public Pager<IdentifiableSource> getSources(Classification t, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
|
361
|
return defaultClassificationService.getSources(t, pageSize, pageNumber, propertyPaths);
|
362
|
}
|
363
|
|
364
|
/**
|
365
|
* @param classification
|
366
|
* @param rank
|
367
|
* @param pageSize
|
368
|
* @param pageIndex
|
369
|
* @param propertyPaths
|
370
|
* @return
|
371
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#listRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
|
372
|
*/
|
373
|
@Override
|
374
|
public List<TaxonNode> listRankSpecificRootNodes(Classification classification, Rank rank, Integer pageSize, Integer pageIndex, List<String> propertyPaths) {
|
375
|
return defaultClassificationService.listRankSpecificRootNodes(classification, rank, pageSize, pageIndex, propertyPaths);
|
376
|
}
|
377
|
|
378
|
/**
|
379
|
* @param uuid
|
380
|
* @return
|
381
|
* @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
|
382
|
*/
|
383
|
@Override
|
384
|
public Classification find(UUID uuid) {
|
385
|
return defaultClassificationService.find(uuid);
|
386
|
}
|
387
|
|
388
|
/**
|
389
|
* @param id
|
390
|
* @return
|
391
|
* @see eu.etaxonomy.cdm.api.service.IService#find(int)
|
392
|
*/
|
393
|
@Override
|
394
|
public Classification find(int id) {
|
395
|
return defaultClassificationService.find(id);
|
396
|
}
|
397
|
|
398
|
/**
|
399
|
* @param t
|
400
|
* @param pageSize
|
401
|
* @param pageNumber
|
402
|
* @param propertyPaths
|
403
|
* @return
|
404
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
|
405
|
*/
|
406
|
@Override
|
407
|
public Pager<Rights> getRights(Classification t, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
|
408
|
return defaultClassificationService.getRights(t, pageSize, pageNumber, propertyPaths);
|
409
|
}
|
410
|
|
411
|
/**
|
412
|
* @param clazz
|
413
|
* @param technical
|
414
|
* @return
|
415
|
* @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
|
416
|
*/
|
417
|
@Override
|
418
|
public int countMarkers(Class<? extends Classification> clazz, Boolean technical) {
|
419
|
return defaultClassificationService.countMarkers(clazz, technical);
|
420
|
}
|
421
|
|
422
|
/**
|
423
|
* @param idSet
|
424
|
* @return
|
425
|
* @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
|
426
|
*/
|
427
|
@Override
|
428
|
public List<Classification> findById(Set<Integer> idSet) {
|
429
|
return defaultClassificationService.findById(idSet);
|
430
|
}
|
431
|
|
432
|
/**
|
433
|
* @param clazz
|
434
|
* @param idInSource
|
435
|
* @param idNamespace
|
436
|
* @return
|
437
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
|
438
|
*/
|
439
|
@Override
|
440
|
public ISourceable getSourcedObjectByIdInSource(Class clazz, String idInSource, String idNamespace) {
|
441
|
return defaultClassificationService.getSourcedObjectByIdInSource(clazz, idInSource, idNamespace);
|
442
|
}
|
443
|
|
444
|
/**
|
445
|
* @param classification
|
446
|
* @param rank
|
447
|
* @param pageSize
|
448
|
* @param pageIndex
|
449
|
* @param propertyPaths
|
450
|
* @return
|
451
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#pageRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
|
452
|
*/
|
453
|
@Override
|
454
|
public Pager<TaxonNode> pageRankSpecificRootNodes(Classification classification, Rank rank, Integer pageSize, Integer pageIndex, List<String> propertyPaths) {
|
455
|
return defaultClassificationService.pageRankSpecificRootNodes(classification, rank, pageSize, pageIndex, propertyPaths);
|
456
|
}
|
457
|
|
458
|
/**
|
459
|
* @return
|
460
|
* @see eu.etaxonomy.cdm.api.service.IService#getSession()
|
461
|
*/
|
462
|
@Override
|
463
|
public Session getSession() {
|
464
|
return defaultClassificationService.getSession();
|
465
|
}
|
466
|
|
467
|
/**
|
468
|
* @return
|
469
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
|
470
|
*/
|
471
|
@Override
|
472
|
public List<UuidAndTitleCache<Classification>> getUuidAndTitleCache() {
|
473
|
return defaultClassificationService.getUuidAndTitleCache();
|
474
|
}
|
475
|
|
476
|
/**
|
477
|
* @param clazz
|
478
|
* @param limit
|
479
|
* @param start
|
480
|
* @param groups
|
481
|
* @param propertyPaths
|
482
|
* @return
|
483
|
* @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
484
|
*/
|
485
|
@Override
|
486
|
public List<Object[]> group(Class<? extends Classification> clazz, Integer limit, Integer start, List<Grouping> groups, List<String> propertyPaths) {
|
487
|
return defaultClassificationService.group(clazz, limit, start, groups, propertyPaths);
|
488
|
}
|
489
|
|
490
|
/**
|
491
|
* @param clazz
|
492
|
* @param queryString
|
493
|
* @param matchmode
|
494
|
* @param criteria
|
495
|
* @param pageSize
|
496
|
* @param pageNumber
|
497
|
* @param orderHints
|
498
|
* @param propertyPaths
|
499
|
* @return
|
500
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
501
|
*/
|
502
|
@Override
|
503
|
public Pager<Classification> findByTitle(Class<? extends Classification> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
504
|
return defaultClassificationService.findByTitle(clazz, queryString, matchmode, criteria, pageSize, pageNumber, orderHints, propertyPaths);
|
505
|
}
|
506
|
|
507
|
/**
|
508
|
* @param taxonNode
|
509
|
* @param baseRank
|
510
|
* @param propertyPaths
|
511
|
* @return
|
512
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
|
513
|
*/
|
514
|
@Override
|
515
|
public List<TaxonNode> loadTreeBranch(TaxonNode taxonNode, Rank baseRank, List<String> propertyPaths) {
|
516
|
return defaultClassificationService.loadTreeBranch(taxonNode, baseRank, propertyPaths);
|
517
|
}
|
518
|
|
519
|
/**
|
520
|
* @param type
|
521
|
* @param limit
|
522
|
* @param start
|
523
|
* @param orderHints
|
524
|
* @param propertyPaths
|
525
|
* @return
|
526
|
* @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
527
|
*/
|
528
|
@Override
|
529
|
public List<Classification> list(Class<? extends Classification> type, Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
530
|
return defaultClassificationService.list(type, limit, start, orderHints, propertyPaths);
|
531
|
}
|
532
|
|
533
|
/**
|
534
|
* @param taxon
|
535
|
* @param classification
|
536
|
* @param baseRank
|
537
|
* @param propertyPaths
|
538
|
* @return
|
539
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranchToTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
|
540
|
*/
|
541
|
@Override
|
542
|
public List<TaxonNode> loadTreeBranchToTaxon(Taxon taxon, Classification classification, Rank baseRank, List<String> propertyPaths) {
|
543
|
return defaultClassificationService.loadTreeBranchToTaxon(taxon, classification, baseRank, propertyPaths);
|
544
|
}
|
545
|
|
546
|
/**
|
547
|
* @param configurator
|
548
|
* @return
|
549
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
|
550
|
*/
|
551
|
@Override
|
552
|
public Pager<Classification> findByTitle(IIdentifiableEntityServiceConfigurator<Classification> configurator) {
|
553
|
return defaultClassificationService.findByTitle(configurator);
|
554
|
}
|
555
|
|
556
|
/**
|
557
|
* @param clazz
|
558
|
* @param queryString
|
559
|
* @param matchmode
|
560
|
* @param criteria
|
561
|
* @return
|
562
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
|
563
|
*/
|
564
|
@Override
|
565
|
public Integer countByTitle(Class<? extends Classification> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria) {
|
566
|
return defaultClassificationService.countByTitle(clazz, queryString, matchmode, criteria);
|
567
|
}
|
568
|
|
569
|
/**
|
570
|
* @param uuid
|
571
|
* @return
|
572
|
* @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
|
573
|
*/
|
574
|
@Override
|
575
|
public Classification load(UUID uuid) {
|
576
|
return defaultClassificationService.load(uuid);
|
577
|
}
|
578
|
|
579
|
/**
|
580
|
* @param uuid
|
581
|
* @param propertyPaths
|
582
|
* @return
|
583
|
* @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
|
584
|
*/
|
585
|
@Override
|
586
|
public Classification load(UUID uuid, List<String> propertyPaths) {
|
587
|
return defaultClassificationService.load(uuid, propertyPaths);
|
588
|
}
|
589
|
|
590
|
/**
|
591
|
* @param configurator
|
592
|
* @return
|
593
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
|
594
|
*/
|
595
|
@Override
|
596
|
public Integer countByTitle(IIdentifiableEntityServiceConfigurator<Classification> configurator) {
|
597
|
return defaultClassificationService.countByTitle(configurator);
|
598
|
}
|
599
|
|
600
|
/**
|
601
|
* @param taxon
|
602
|
* @param classification
|
603
|
* @param propertyPaths
|
604
|
* @return
|
605
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, java.util.List)
|
606
|
*/
|
607
|
@Override
|
608
|
public List<TaxonNode> loadChildNodesOfTaxon(Taxon taxon, Classification classification, List<String> propertyPaths) {
|
609
|
return defaultClassificationService.loadChildNodesOfTaxon(taxon, classification, propertyPaths);
|
610
|
}
|
611
|
|
612
|
/**
|
613
|
* @param transientObject
|
614
|
* @return
|
615
|
* @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
|
616
|
*/
|
617
|
@Override
|
618
|
public Classification merge(Classification transientObject) {
|
619
|
return defaultClassificationService.merge(transientObject);
|
620
|
}
|
621
|
|
622
|
/**
|
623
|
* @param clazz
|
624
|
* @param queryString
|
625
|
* @param matchmode
|
626
|
* @param criteria
|
627
|
* @param pageSize
|
628
|
* @param pageNumber
|
629
|
* @param orderHints
|
630
|
* @param propertyPaths
|
631
|
* @return
|
632
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#listByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
633
|
*/
|
634
|
@Override
|
635
|
public List<Classification> listByTitle(Class<? extends Classification> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
636
|
return defaultClassificationService.listByTitle(clazz, queryString, matchmode, criteria, pageSize, pageNumber, orderHints, propertyPaths);
|
637
|
}
|
638
|
|
639
|
/**
|
640
|
* @param type
|
641
|
* @param pageSize
|
642
|
* @param pageNumber
|
643
|
* @param orderHints
|
644
|
* @param propertyPaths
|
645
|
* @return
|
646
|
* @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
647
|
*/
|
648
|
@Override
|
649
|
public Pager<Classification> page(Class<? extends Classification> type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
650
|
return defaultClassificationService.page(type, pageSize, pageNumber, orderHints, propertyPaths);
|
651
|
}
|
652
|
|
653
|
/**
|
654
|
* @param taxonNode
|
655
|
* @param propertyPaths
|
656
|
* @return
|
657
|
* @deprecated
|
658
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
|
659
|
*/
|
660
|
@Deprecated
|
661
|
@Override
|
662
|
public List<TaxonNode> loadChildNodesOfTaxonNode(TaxonNode taxonNode, List<String> propertyPaths) {
|
663
|
return defaultClassificationService.loadChildNodesOfTaxonNode(taxonNode, propertyPaths);
|
664
|
}
|
665
|
|
666
|
/**
|
667
|
* @param classification
|
668
|
* @return
|
669
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
|
670
|
*/
|
671
|
@Override
|
672
|
public List<UuidAndTitleCache<TaxonNode>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification) {
|
673
|
return defaultClassificationService.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification);
|
674
|
}
|
675
|
|
676
|
/**
|
677
|
* @param taxon
|
678
|
* @param taxTree
|
679
|
* @param propertyPaths
|
680
|
* @param size
|
681
|
* @param height
|
682
|
* @param widthOrDuration
|
683
|
* @param mimeTypes
|
684
|
* @return
|
685
|
* @deprecated
|
686
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, java.util.List, int, int, int, java.lang.String[])
|
687
|
*/
|
688
|
@Deprecated
|
689
|
@Override
|
690
|
public Map<UUID, List<MediaRepresentation>> getAllMediaForChildNodes(Taxon taxon, Classification taxTree, List<String> propertyPaths, int size, int height, int widthOrDuration, String[] mimeTypes) {
|
691
|
return defaultClassificationService.getAllMediaForChildNodes(taxon, taxTree, propertyPaths, size, height, widthOrDuration, mimeTypes);
|
692
|
}
|
693
|
|
694
|
/**
|
695
|
* @param persistentObject
|
696
|
* @return
|
697
|
* @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
|
698
|
*/
|
699
|
@Override
|
700
|
public UUID refresh(Classification persistentObject) {
|
701
|
return defaultClassificationService.refresh(persistentObject);
|
702
|
}
|
703
|
|
704
|
/**
|
705
|
* @param clazz
|
706
|
* @param queryString
|
707
|
* @param matchmode
|
708
|
* @param criteria
|
709
|
* @param pageSize
|
710
|
* @param pageNumber
|
711
|
* @param orderHints
|
712
|
* @param propertyPaths
|
713
|
* @return
|
714
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#listByReferenceTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
715
|
*/
|
716
|
@Override
|
717
|
public List<Classification> listByReferenceTitle(Class<? extends Classification> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
718
|
return defaultClassificationService.listByReferenceTitle(clazz, queryString, matchmode, criteria, pageSize, pageNumber, orderHints, propertyPaths);
|
719
|
}
|
720
|
|
721
|
/**
|
722
|
* @param taxonNode
|
723
|
* @param propertyPaths
|
724
|
* @param size
|
725
|
* @param height
|
726
|
* @param widthOrDuration
|
727
|
* @param mimeTypes
|
728
|
* @return
|
729
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
|
730
|
*/
|
731
|
@Override
|
732
|
public Map<UUID, List<MediaRepresentation>> getAllMediaForChildNodes(TaxonNode taxonNode, List<String> propertyPaths, int size, int height, int widthOrDuration, String[] mimeTypes) {
|
733
|
return defaultClassificationService.getAllMediaForChildNodes(taxonNode, propertyPaths, size, height, widthOrDuration, mimeTypes);
|
734
|
}
|
735
|
|
736
|
/**
|
737
|
* @param tableName
|
738
|
* @param limit
|
739
|
* @param start
|
740
|
* @return
|
741
|
* @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
|
742
|
*/
|
743
|
@Override
|
744
|
public List<Classification> rows(String tableName, int limit, int start) {
|
745
|
return defaultClassificationService.rows(tableName, limit, start);
|
746
|
}
|
747
|
|
748
|
/**
|
749
|
* @param newInstances
|
750
|
* @return
|
751
|
* @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
|
752
|
*/
|
753
|
@Override
|
754
|
public Map<UUID, Classification> save(Collection<Classification> newInstances) {
|
755
|
return null;
|
756
|
}
|
757
|
|
758
|
/**
|
759
|
* @param taxonNode
|
760
|
* @return
|
761
|
* @deprecated
|
762
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
|
763
|
*/
|
764
|
@Deprecated
|
765
|
@Override
|
766
|
public UUID removeTaxonNode(TaxonNode taxonNode) {
|
767
|
return defaultClassificationService.removeTaxonNode(taxonNode);
|
768
|
}
|
769
|
|
770
|
/**
|
771
|
* @param taxonNode
|
772
|
* @return
|
773
|
* @deprecated
|
774
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
|
775
|
*/
|
776
|
@Deprecated
|
777
|
@Override
|
778
|
public UUID saveTaxonNode(TaxonNode taxonNode) {
|
779
|
return null;
|
780
|
}
|
781
|
|
782
|
/**
|
783
|
* @param newInstance
|
784
|
* @return
|
785
|
* @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
|
786
|
*/
|
787
|
@Override
|
788
|
public UUID save(Classification newInstance) {
|
789
|
return null;
|
790
|
}
|
791
|
|
792
|
/**
|
793
|
* @param taxonNodeCollection
|
794
|
* @return
|
795
|
* @deprecated
|
796
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
|
797
|
*/
|
798
|
@Deprecated
|
799
|
@Override
|
800
|
public Map<UUID, TaxonNode> saveTaxonNodeAll(Collection<TaxonNode> taxonNodeCollection) {
|
801
|
return null;
|
802
|
}
|
803
|
|
804
|
/**
|
805
|
* @param transientObject
|
806
|
* @return
|
807
|
* @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
|
808
|
*/
|
809
|
@Override
|
810
|
public UUID saveOrUpdate(Classification transientObject) {
|
811
|
return null;
|
812
|
}
|
813
|
|
814
|
/**
|
815
|
* @param treeNode
|
816
|
* @return
|
817
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
|
818
|
*/
|
819
|
@Override
|
820
|
public UUID removeTreeNode(ITaxonTreeNode treeNode) {
|
821
|
return defaultClassificationService.removeTreeNode(treeNode);
|
822
|
}
|
823
|
|
824
|
/**
|
825
|
* @param clazz
|
826
|
* @param queryString
|
827
|
* @param pageSize
|
828
|
* @param pageNumber
|
829
|
* @param orderHints
|
830
|
* @param propertyPaths
|
831
|
* @return
|
832
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#search(java.lang.Class, java.lang.String, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
833
|
*/
|
834
|
@Override
|
835
|
public Pager<Classification> search(Class<? extends Classification> clazz, String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
|
836
|
return defaultClassificationService.search(clazz, queryString, pageSize, pageNumber, orderHints, propertyPaths);
|
837
|
}
|
838
|
|
839
|
/**
|
840
|
* @param treeNode
|
841
|
* @return
|
842
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
|
843
|
*/
|
844
|
@Override
|
845
|
public UUID saveTreeNode(ITaxonTreeNode treeNode) {
|
846
|
return null;
|
847
|
}
|
848
|
|
849
|
/**
|
850
|
* @param transientObjects
|
851
|
* @return
|
852
|
* @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
|
853
|
*/
|
854
|
@Override
|
855
|
public Map<UUID, Classification> saveOrUpdate(Collection<Classification> transientObjects) {
|
856
|
return null;
|
857
|
}
|
858
|
|
859
|
/**
|
860
|
* @return
|
861
|
* @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
|
862
|
*/
|
863
|
@Override
|
864
|
public List<TaxonNode> getAllNodes() {
|
865
|
return defaultClassificationService.getAllNodes();
|
866
|
}
|
867
|
|
868
|
/**
|
869
|
* @param transientObject
|
870
|
* @return
|
871
|
* @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
|
872
|
*/
|
873
|
@Override
|
874
|
public UUID update(Classification transientObject) {
|
875
|
return defaultClassificationService.update(transientObject);
|
876
|
}
|
877
|
|
878
|
/**
|
879
|
* @param example
|
880
|
* @param includeProperties
|
881
|
* @param limit
|
882
|
* @param start
|
883
|
* @param orderHints
|
884
|
* @param propertyPaths
|
885
|
* @return
|
886
|
* @see eu.etaxonomy.cdm.api.service.IService#list(eu.etaxonomy.cdm.model.common.ICdmBase, java.util.Set, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
|
887
|
*/
|
888
|
@Override
|
889
|
public List<Classification> list(Classification example, Set<String> includeProperties, Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
|
890
|
return defaultClassificationService.list(example, includeProperties, limit, start, orderHints, propertyPaths);
|
891
|
}
|
892
|
|
893
|
/**
|
894
|
* @param clazz
|
895
|
* @param matchStrategy
|
896
|
* @param mergeStrategy
|
897
|
* @return
|
898
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
|
899
|
*/
|
900
|
@Override
|
901
|
public int deduplicate(Class<? extends Classification> clazz, IMatchStrategy matchStrategy, IMergeStrategy mergeStrategy) {
|
902
|
return defaultClassificationService.deduplicate(clazz, matchStrategy, mergeStrategy);
|
903
|
}
|
904
|
|
905
|
/**
|
906
|
* @param clazz
|
907
|
* @param queryString
|
908
|
* @param pageSize
|
909
|
* @param pageNumber
|
910
|
* @param orderHints
|
911
|
* @param matchMode
|
912
|
* @return
|
913
|
* @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findTitleCache(java.lang.Class, java.lang.String, java.lang.Integer, java.lang.Integer, java.util.List, eu.etaxonomy.cdm.persistence.query.MatchMode)
|
914
|
*/
|
915
|
@Override
|
916
|
public Pager<Classification> findTitleCache(Class<? extends Classification> clazz, String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, MatchMode matchMode) {
|
917
|
return defaultClassificationService.findTitleCache(clazz, queryString, pageSize, pageNumber, orderHints, matchMode);
|
918
|
}
|
919
|
|
920
|
|
921
|
|
922
|
}
|