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