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