e6456b1431a37d5fe006f1d113faa6e3c8bfd842
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / dataimport / transientServices / TransientReferenceService.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.IReferenceService;
25 import eu.etaxonomy.cdm.api.service.config.DeleteConfiguratorBase;
26 import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
27 import eu.etaxonomy.cdm.api.service.dto.FindByIdentifierDTO;
28 import eu.etaxonomy.cdm.api.service.pager.Pager;
29 import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
30 import eu.etaxonomy.cdm.model.common.Annotation;
31 import eu.etaxonomy.cdm.model.common.DefinedTerm;
32 import eu.etaxonomy.cdm.model.common.ISourceable;
33 import eu.etaxonomy.cdm.model.common.IdentifiableSource;
34 import eu.etaxonomy.cdm.model.common.LSID;
35 import eu.etaxonomy.cdm.model.common.Marker;
36 import eu.etaxonomy.cdm.model.common.MarkerType;
37 import eu.etaxonomy.cdm.model.media.Rights;
38 import eu.etaxonomy.cdm.model.reference.Reference;
39 import eu.etaxonomy.cdm.model.taxon.TaxonBase;
40 import eu.etaxonomy.cdm.model.view.AuditEvent;
41 import eu.etaxonomy.cdm.model.view.AuditEventRecord;
42 import eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort;
43 import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
44 import eu.etaxonomy.cdm.persistence.query.Grouping;
45 import eu.etaxonomy.cdm.persistence.query.MatchMode;
46 import eu.etaxonomy.cdm.persistence.query.OrderHint;
47 import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
48 import eu.etaxonomy.cdm.strategy.match.IMatchStrategy;
49 import eu.etaxonomy.cdm.strategy.merge.IMergeStrategy;
50
51 /**
52 * @author pplitzner
53 * @date 27.09.2013
54 *
55 */
56 public class TransientReferenceService implements IReferenceService {
57
58 private final IReferenceService defaultService;
59
60 /**
61 * @param defaultReferenceService
62 */
63 public TransientReferenceService(IReferenceService defaultReferenceService) {
64 this.defaultService = defaultReferenceService;
65 }
66
67 /**
68 * @param clazz
69 * @param queryString
70 * @param pageSize
71 * @param pageNumber
72 * @param orderHints
73 * @param propertyPaths
74 * @return
75 * @see eu.etaxonomy.cdm.api.service.IReferenceService#search(java.lang.Class, java.lang.String, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
76 */
77 @Override
78 public Pager<Reference> search(Class<? extends Reference> clazz, String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
79 return defaultService.search(clazz, queryString, pageSize, pageNumber, orderHints, propertyPaths);
80 }
81
82 /**
83 * @param t
84 * @param pageSize
85 * @param pageNumber
86 * @param sort
87 * @param propertyPaths
88 * @return
89 * @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)
90 */
91 @Override
92 public Pager<AuditEventRecord<Reference>> pageAuditEvents(Reference t, Integer pageSize, Integer pageNumber, AuditEventSort sort, List<String> propertyPaths) {
93 return defaultService.pageAuditEvents(t, pageSize, pageNumber, sort, propertyPaths);
94 }
95
96 /**
97 * @param annotatedObj
98 * @param status
99 * @param pageSize
100 * @param pageNumber
101 * @param orderHints
102 * @param propertyPaths
103 * @return
104 * @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)
105 */
106 @Override
107 public Pager<Annotation> getAnnotations(Reference annotatedObj, MarkerType status, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
108 return defaultService.getAnnotations(annotatedObj, status, pageSize, pageNumber, orderHints, propertyPaths);
109 }
110
111 /**
112 *
113 * @see eu.etaxonomy.cdm.api.service.IService#clear()
114 */
115 @Override
116 public void clear() {
117 defaultService.clear();
118 }
119
120 /**
121 * @param t
122 * @param lockMode
123 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
124 */
125 @Override
126 public void lock(Reference t, LockOptions lockOptions) {
127 defaultService.lock(t, lockOptions);
128 }
129
130 /**
131 * @param t
132 * @param lockMode
133 * @param propertyPaths
134 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
135 */
136 @Override
137 public void refresh(Reference t, LockOptions lockOptions, List<String> propertyPaths) {
138 defaultService.refresh(t, lockOptions, propertyPaths);
139 }
140
141 /**
142 *
143 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
144 */
145 @Override
146 public void updateTitleCache() {
147 defaultService.updateTitleCache();
148 }
149
150 /**
151 * @param t
152 * @return
153 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
154 */
155 @Override
156 public AuditEventRecord<Reference> getNextAuditEvent(Reference t) {
157 return defaultService.getNextAuditEvent(t);
158 }
159
160 /**
161 * @param annotatableEntity
162 * @param technical
163 * @param pageSize
164 * @param pageNumber
165 * @param orderHints
166 * @param propertyPaths
167 * @return
168 * @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)
169 */
170 @Override
171 public Pager<Marker> getMarkers(Reference annotatableEntity, Boolean technical, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
172 return defaultService.getMarkers(annotatableEntity, technical, pageSize, pageNumber, orderHints, propertyPaths);
173 }
174
175 /**
176 * @return
177 * @see eu.etaxonomy.cdm.api.service.IReferenceService#getUuidAndTitle()
178 */
179 @Override
180 public List<UuidAndTitleCache<Reference>> getUuidAndTitle() {
181 return defaultService.getUuidAndTitle();
182 }
183
184 /**
185 * @param clazz
186 * @param stepSize
187 * @param cacheStrategy
188 * @param monitor
189 * @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)
190 */
191 @Override
192 public void updateTitleCache(Class<? extends Reference> clazz, Integer stepSize, IIdentifiableEntityCacheStrategy<Reference> cacheStrategy, IProgressMonitor monitor) {
193 defaultService.updateTitleCache(clazz, stepSize, cacheStrategy, monitor);
194 }
195
196 /**
197 * @param t
198 * @return
199 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
200 */
201 @Override
202 public AuditEventRecord<Reference> getPreviousAuditEvent(Reference t) {
203 return defaultService.getPreviousAuditEvent(t);
204 }
205
206 /**
207 * @return
208 * @see eu.etaxonomy.cdm.api.service.IReferenceService#getAllReferencesForPublishing()
209 */
210 @Override
211 public List<Reference> getAllReferencesForPublishing() {
212 return defaultService.getAllReferencesForPublishing();
213 }
214
215 /**
216 * @param clazz
217 * @return
218 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
219 */
220 @Override
221 public int count(Class<? extends Reference> clazz) {
222 return defaultService.count(clazz);
223 }
224
225 /**
226 * @return
227 * @see eu.etaxonomy.cdm.api.service.IReferenceService#getAllNomenclaturalReferences()
228 */
229 @Override
230 public List<Reference> getAllNomenclaturalReferences() {
231 return defaultService.getAllNomenclaturalReferences();
232 }
233
234 /**
235 * @param reference
236 * @param includeSubordinateReferences
237 * @param propertyPaths
238 * @return
239 * @see eu.etaxonomy.cdm.api.service.IReferenceService#listCoveredTaxa(eu.etaxonomy.cdm.model.reference.Reference, boolean, java.util.List)
240 */
241 @Override
242 public List<TaxonBase> listCoveredTaxa(Reference reference, boolean includeSubordinateReferences, List<String> propertyPaths) {
243 return defaultService.listCoveredTaxa(reference, includeSubordinateReferences, propertyPaths);
244 }
245
246 /**
247 * @param clazz
248 * @param from
249 * @param to
250 * @param criteria
251 * @param pageSize
252 * @param pageValue
253 * @param sort
254 * @param propertyPaths
255 * @return
256 * @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)
257 */
258 @Override
259 public Pager<AuditEventRecord<Reference>> pageAuditEvents(Class<? extends Reference> clazz, AuditEvent from, AuditEvent to, List<AuditCriterion> criteria, Integer pageSize, Integer pageValue, AuditEventSort sort, List<String> propertyPaths) {
260 return defaultService.pageAuditEvents(clazz, from, to, criteria, pageSize, pageValue, sort, propertyPaths);
261 }
262
263 /**
264 * @param lsid
265 * @return
266 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
267 */
268 @Override
269 public Reference find(LSID lsid) {
270 return defaultService.find(lsid);
271 }
272
273 /**
274 * @param persistentObject
275 * @return
276 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
277 */
278 @Override
279 public DeleteResult delete(Reference persistentObject) {
280 return defaultService.delete(persistentObject);
281 }
282
283 /**
284 * @param clazz
285 * @param technical
286 * @param pageSize
287 * @param pageNumber
288 * @param propertyPaths
289 * @return
290 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
291 */
292 @Override
293 public List<Object[]> groupMarkers(Class<? extends Reference> clazz, Boolean technical, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
294 return defaultService.groupMarkers(clazz, technical, pageSize, pageNumber, propertyPaths);
295 }
296
297 /**
298 * @param uuid
299 * @return
300 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
301 */
302 @Override
303 public boolean exists(UUID uuid) {
304 return defaultService.exists(uuid);
305 }
306
307 /**
308 * @param x
309 * @param y
310 * @return
311 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
312 */
313 @Override
314 public Reference replace(Reference x, Reference y) {
315 return defaultService.replace(x, y);
316 }
317
318 /**
319 * @param uuidSet
320 * @return
321 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
322 */
323 @Override
324 public List<Reference> find(Set<UUID> uuidSet) {
325 return defaultService.find(uuidSet);
326 }
327
328 /**
329 * @param t
330 * @param pageSize
331 * @param pageNumber
332 * @param propertyPaths
333 * @return
334 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
335 */
336 @Override
337 public Pager<IdentifiableSource> getSources(Reference t, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
338 return defaultService.getSources(t, pageSize, pageNumber, propertyPaths);
339 }
340
341 /**
342 * @param uuid
343 * @return
344 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
345 */
346 @Override
347 public Reference find(UUID uuid) {
348 return defaultService.find(uuid);
349 }
350
351 /**
352 * @param id
353 * @return
354 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
355 */
356 @Override
357 public Reference find(int id) {
358 return defaultService.find(id);
359 }
360
361 /**
362 * @param t
363 * @param pageSize
364 * @param pageNumber
365 * @param propertyPaths
366 * @return
367 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
368 */
369 @Override
370 public Pager<Rights> getRights(Reference t, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
371 return defaultService.getRights(t, pageSize, pageNumber, propertyPaths);
372 }
373
374 /**
375 * @param clazz
376 * @param technical
377 * @return
378 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
379 */
380 @Override
381 public int countMarkers(Class<? extends Reference> clazz, Boolean technical) {
382 return defaultService.countMarkers(clazz, technical);
383 }
384
385 /**
386 * @param idSet
387 * @return
388 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
389 */
390 @Override
391 public List<Reference> findById(Set<Integer> idSet) {
392 return defaultService.findById(idSet);
393 }
394
395 /**
396 * @param clazz
397 * @param idInSource
398 * @param idNamespace
399 * @return
400 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
401 */
402 @Override
403 public ISourceable getSourcedObjectByIdInSource(Class clazz, String idInSource, String idNamespace) {
404 return defaultService.getSourcedObjectByIdInSource(clazz, idInSource, idNamespace);
405 }
406
407 /**
408 * @return
409 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
410 */
411 @Override
412 public Session getSession() {
413 return defaultService.getSession();
414 }
415
416 /**
417 * @return
418 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
419 */
420 @Override
421 public List<UuidAndTitleCache<Reference>> getUuidAndTitleCache() {
422 return defaultService.getUuidAndTitleCache();
423 }
424
425 /**
426 * @param clazz
427 * @param limit
428 * @param start
429 * @param groups
430 * @param propertyPaths
431 * @return
432 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
433 */
434 @Override
435 public List<Object[]> group(Class<? extends Reference> clazz, Integer limit, Integer start, List<Grouping> groups, List<String> propertyPaths) {
436 return defaultService.group(clazz, limit, start, groups, propertyPaths);
437 }
438
439 /**
440 * @param clazz
441 * @param queryString
442 * @param matchmode
443 * @param criteria
444 * @param pageSize
445 * @param pageNumber
446 * @param orderHints
447 * @param propertyPaths
448 * @return
449 * @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)
450 */
451 @Override
452 public Pager<Reference> findByTitle(Class<? extends Reference> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
453 return defaultService.findByTitle(clazz, queryString, matchmode, criteria, pageSize, pageNumber, orderHints, propertyPaths);
454 }
455
456 /**
457 * @param type
458 * @param limit
459 * @param start
460 * @param orderHints
461 * @param propertyPaths
462 * @return
463 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
464 */
465 @Override
466 public <S extends Reference> List<S> list(Class<S> type, Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
467 return defaultService.list(type, limit, start, orderHints, propertyPaths);
468 }
469
470 /**
471 * @param configurator
472 * @return
473 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
474 */
475 @Override
476 public Pager<Reference> findByTitle(IIdentifiableEntityServiceConfigurator<Reference> configurator) {
477 return defaultService.findByTitle(configurator);
478 }
479
480 /**
481 * @param clazz
482 * @param queryString
483 * @param matchmode
484 * @param criteria
485 * @return
486 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
487 */
488 @Override
489 public Integer countByTitle(Class<? extends Reference> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria) {
490 return defaultService.countByTitle(clazz, queryString, matchmode, criteria);
491 }
492
493 /**
494 * @param uuid
495 * @return
496 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
497 */
498 @Override
499 public Reference load(UUID uuid) {
500 return defaultService.load(uuid);
501 }
502
503 /**
504 * @param uuid
505 * @param propertyPaths
506 * @return
507 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
508 */
509 @Override
510 public Reference load(UUID uuid, List<String> propertyPaths) {
511 return defaultService.load(uuid, propertyPaths);
512 }
513
514 /**
515 * @param configurator
516 * @return
517 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
518 */
519 @Override
520 public Integer countByTitle(IIdentifiableEntityServiceConfigurator<Reference> configurator) {
521 return defaultService.countByTitle(configurator);
522 }
523
524 /**
525 * @param transientObject
526 * @return
527 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
528 */
529 @Override
530 public Reference merge(Reference transientObject) {
531 return defaultService.merge(transientObject);
532 }
533
534 /**
535 * @param clazz
536 * @param queryString
537 * @param matchmode
538 * @param criteria
539 * @param pageSize
540 * @param pageNumber
541 * @param orderHints
542 * @param propertyPaths
543 * @return
544 * @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)
545 */
546 @Override
547 public List<Reference> listByTitle(Class<? extends Reference> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
548 return defaultService.listByTitle(clazz, queryString, matchmode, criteria, pageSize, pageNumber, orderHints, propertyPaths);
549 }
550
551 /**
552 * @param type
553 * @param pageSize
554 * @param pageNumber
555 * @param orderHints
556 * @param propertyPaths
557 * @return
558 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
559 */
560 @Override
561 public <S extends Reference> Pager<S> page(Class<S> type, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
562 return defaultService.page(type, pageSize, pageNumber, orderHints, propertyPaths);
563 }
564
565 /**
566 * @param persistentObject
567 * @return
568 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
569 */
570 @Override
571 public UUID refresh(Reference persistentObject) {
572 return defaultService.refresh(persistentObject);
573 }
574
575 /**
576 * @param clazz
577 * @param queryString
578 * @param matchmode
579 * @param criteria
580 * @param pageSize
581 * @param pageNumber
582 * @param orderHints
583 * @param propertyPaths
584 * @return
585 * @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)
586 */
587 @Override
588 public List<Reference> listByReferenceTitle(Class<? extends Reference> clazz, String queryString, MatchMode matchmode, List<Criterion> criteria, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths) {
589 return defaultService.listByReferenceTitle(clazz, queryString, matchmode, criteria, pageSize, pageNumber, orderHints, propertyPaths);
590 }
591
592 /**
593 * @param tableName
594 * @param limit
595 * @param start
596 * @return
597 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
598 */
599 @Override
600 public List<Reference> rows(String tableName, int limit, int start) {
601 return defaultService.rows(tableName, limit, start);
602 }
603
604 /**
605 * @param newInstances
606 * @return
607 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
608 */
609 @Override
610 public Map<UUID, Reference> save(Collection<Reference> newInstances) {
611 return null;
612 }
613
614 /**
615 * @param newInstance
616 * @return
617 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
618 */
619 @Override
620 public UUID save(Reference newInstance) {
621 return null;
622 }
623
624 /**
625 * @param transientObject
626 * @return
627 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
628 */
629 @Override
630 public UUID saveOrUpdate(Reference transientObject) {
631 return null;
632 }
633
634 /**
635 * @param transientObjects
636 * @return
637 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
638 */
639 @Override
640 public Map<UUID, Reference> saveOrUpdate(Collection<Reference> transientObjects) {
641 return null;
642 }
643
644 /**
645 * @param transientObject
646 * @return
647 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
648 */
649 @Override
650 public UUID update(Reference transientObject) {
651 return defaultService.update(transientObject);
652 }
653
654 /**
655 * @param example
656 * @param includeProperties
657 * @param limit
658 * @param start
659 * @param orderHints
660 * @param propertyPaths
661 * @return
662 * @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)
663 */
664 @Override
665 public List<Reference> list(Reference example, Set<String> includeProperties, Integer limit, Integer start, List<OrderHint> orderHints, List<String> propertyPaths) {
666 return defaultService.list(example, includeProperties, limit, start, orderHints, propertyPaths);
667 }
668
669 /**
670 * @param clazz
671 * @param matchStrategy
672 * @param mergeStrategy
673 * @return
674 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
675 */
676 @Override
677 public int deduplicate(Class<? extends Reference> clazz, IMatchStrategy matchStrategy, IMergeStrategy mergeStrategy) {
678 return defaultService.deduplicate(clazz, matchStrategy, mergeStrategy);
679 }
680
681 /**
682 * @param clazz
683 * @param queryString
684 * @param pageSize
685 * @param pageNumber
686 * @param orderHints
687 * @param matchMode
688 * @return
689 * @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)
690 */
691 @Override
692 public Pager<Reference> findTitleCache(Class<? extends Reference> clazz, String queryString, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, MatchMode matchMode) {
693 return defaultService.findTitleCache(clazz, queryString, pageSize, pageNumber, orderHints, matchMode);
694 }
695
696 @Override
697 public DeleteResult isDeletable(Reference object,
698 DeleteConfiguratorBase config) {
699 // TODO Auto-generated method stub
700 return null;
701 }
702
703 @Override
704 public Reference findWithoutFlush(UUID uuid) {
705 return defaultService.findWithoutFlush(uuid);
706 }
707
708 @Override
709 public <S extends Reference> Pager<FindByIdentifierDTO<S>> findByIdentifier(Class<S> clazz, String identifier, DefinedTerm identifierType, MatchMode matchmode, boolean includeEntity, Integer pageSize, Integer pageNumber, List<String> propertyPaths){
710 return defaultService.findByIdentifier(clazz, identifier, identifierType, matchmode, includeEntity, pageSize, pageNumber, propertyPaths);
711 }
712
713 <<<<<<< HEAD
714 /**
715 * {@inheritDoc}
716 */
717 @Override
718 public DeleteResult delete(UUID arg0) {
719 return defaultService.delete(arg0);
720 }
721 =======
722 @Override
723 public DeleteResult delete(UUID arg0) {
724 return defaultService.delete(arg0);
725 }
726 >>>>>>> b275ef1... all delete methods need an Uuid as argument
727
728 }