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