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