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