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