3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.editor
.view
.dataimport
.transientServices
;
12 import java
.util
.Collection
;
13 import java
.util
.List
;
16 import java
.util
.UUID
;
18 import org
.hibernate
.LockOptions
;
19 import org
.hibernate
.Session
;
20 import org
.hibernate
.criterion
.Criterion
;
21 import org
.hibernate
.envers
.query
.criteria
.AuditCriterion
;
23 import eu
.etaxonomy
.cdm
.api
.service
.DeleteResult
;
24 import eu
.etaxonomy
.cdm
.api
.service
.IClassificationService
;
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
.AgentBase
;
31 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
32 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
33 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
34 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
35 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
36 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
37 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
38 import eu
.etaxonomy
.cdm
.model
.common
.UuidAndTitleCache
;
39 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
40 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
41 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
42 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
43 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
44 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
45 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
46 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
47 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
48 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
49 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
50 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
51 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
52 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
53 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
54 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
61 public class TransientClassificationService
implements IClassificationService
{
63 private final IClassificationService defaultService
;
66 * @param defaultClassificationService
68 public TransientClassificationService(IClassificationService defaultClassificationService
) {
69 this.defaultService
= defaultClassificationService
;
77 * @param propertyPaths
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)
82 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
83 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
92 * @param propertyPaths
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)
97 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
98 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
104 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
107 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
108 return defaultService
.getTaxonNodeByUuid(uuid
);
114 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
117 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
118 return defaultService
.getTreeNodeByUuid(uuid
);
123 * @see eu.etaxonomy.cdm.api.service.IService#clear()
126 public void clear() {
127 defaultService
.clear();
134 * @param propertyPaths
136 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
139 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
140 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
146 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
149 public void lock(Classification t
, LockOptions lockOptions
) {
150 defaultService
.lock(t
, lockOptions
);
156 * @param propertyPaths
157 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
160 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
161 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
166 * @param classificationUuid
167 * @param propertyPaths
170 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
174 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
175 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
180 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
183 public void updateTitleCache() {
184 defaultService
.updateTitleCache();
190 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
193 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
194 return defaultService
.getNextAuditEvent(t
);
198 * @param annotatableEntity
203 * @param propertyPaths
205 * @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)
208 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
209 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
215 * @param cacheStrategy
217 * @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)
220 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
221 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
226 * @param propertyPaths
229 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
233 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
234 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
240 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
243 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
244 return defaultService
.getPreviousAuditEvent(t
);
248 * @param classification
252 * @param propertyPaths
255 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
259 public List
<TaxonNode
> loadRankSpecificRootNodes(Classification classification
, Rank rank
, Integer limit
, Integer start
, List
<String
> propertyPaths
) {
260 return defaultService
.loadRankSpecificRootNodes(classification
, rank
, limit
, start
, propertyPaths
);
266 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
269 public int count(Class
<?
extends Classification
> clazz
) {
270 return defaultService
.count(clazz
);
281 * @param propertyPaths
283 * @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)
286 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Class
<?
extends Classification
> clazz
, AuditEvent from
, AuditEvent to
, List
<AuditCriterion
> criteria
, Integer pageSize
, Integer pageValue
, AuditEventSort sort
, List
<String
> propertyPaths
) {
287 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
293 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
296 public Classification
find(LSID lsid
) {
297 return defaultService
.find(lsid
);
301 * @param persistentObject
303 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
306 public DeleteResult
delete(Classification persistentObject
) {
307 return defaultService
.delete(persistentObject
);
315 * @param propertyPaths
317 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
320 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
321 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
327 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
330 public boolean exists(UUID uuid
) {
331 return defaultService
.exists(uuid
);
338 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
341 public Classification
replace(Classification x
, Classification y
) {
342 return defaultService
.replace(x
, y
);
348 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
351 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
352 return defaultService
.find(uuidSet
);
359 * @param propertyPaths
361 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
364 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
365 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
369 * @param classification
373 * @param propertyPaths
375 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
378 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
379 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
385 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
388 public Classification
find(UUID uuid
) {
389 return defaultService
.find(uuid
);
395 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
398 public Classification
find(int id
) {
399 return defaultService
.find(id
);
406 * @param propertyPaths
408 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
411 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
412 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
419 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
422 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
423 return defaultService
.countMarkers(clazz
, technical
);
429 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
432 public List
<Classification
> findById(Set
<Integer
> idSet
) {
433 return defaultService
.findById(idSet
);
441 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
444 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
445 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
449 * @param classification
453 * @param propertyPaths
455 * @see eu.etaxonomy.cdm.api.service.IClassificationService#pageRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
458 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
459 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
464 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
467 public Session
getSession() {
468 return defaultService
.getSession();
473 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
476 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
477 return defaultService
.getUuidAndTitleCache();
485 * @param propertyPaths
487 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
490 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
491 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
502 * @param propertyPaths
504 * @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)
507 public Pager
<Classification
> findByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
508 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
514 * @param propertyPaths
516 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
519 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
520 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
528 * @param propertyPaths
530 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
533 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
534 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
539 * @param classification
541 * @param propertyPaths
543 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranchToTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
546 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
547 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
551 * @param configurator
553 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
556 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
557 return defaultService
.findByTitle(configurator
);
566 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
569 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
570 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
576 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
579 public Classification
load(UUID uuid
) {
580 return defaultService
.load(uuid
);
585 * @param propertyPaths
587 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
590 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
591 return defaultService
.load(uuid
, propertyPaths
);
595 * @param configurator
597 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
600 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
601 return defaultService
.countByTitle(configurator
);
605 * @param transientObject
607 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
610 public Classification
merge(Classification transientObject
) {
611 return defaultService
.merge(transientObject
);
622 * @param propertyPaths
624 * @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)
627 public List
<Classification
> listByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
628 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
636 * @param propertyPaths
638 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
641 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
642 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
647 * @param propertyPaths
650 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
654 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
655 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
659 * @param classification
661 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
664 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
665 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
671 * @param propertyPaths
674 * @param widthOrDuration
678 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, java.util.List, int, int, int, java.lang.String[])
682 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
683 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
687 * @param persistentObject
689 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
692 public UUID
refresh(Classification persistentObject
) {
693 return defaultService
.refresh(persistentObject
);
704 * @param propertyPaths
706 * @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)
709 public List
<Classification
> listByReferenceTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
710 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
715 * @param propertyPaths
718 * @param widthOrDuration
721 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
724 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
725 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
733 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
736 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
737 return defaultService
.rows(tableName
, limit
, start
);
741 * @param newInstances
743 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
746 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
754 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
758 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
759 return defaultService
.removeTaxonNode(taxonNode
);
766 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
770 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
777 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
780 public UUID
save(Classification newInstance
) {
785 * @param taxonNodeCollection
788 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
792 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
797 * @param transientObject
799 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
802 public UUID
saveOrUpdate(Classification transientObject
) {
809 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
812 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
813 return defaultService
.removeTreeNode(treeNode
);
822 * @param propertyPaths
824 * @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)
827 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
828 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
834 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
837 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
842 * @param transientObjects
844 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
847 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
853 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
856 public List
<TaxonNode
> getAllNodes() {
857 return defaultService
.getAllNodes();
861 * @param transientObject
863 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
866 public UUID
update(Classification transientObject
) {
867 return defaultService
.update(transientObject
);
872 * @param includeProperties
876 * @param propertyPaths
878 * @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)
881 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
882 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
887 * @param matchStrategy
888 * @param mergeStrategy
890 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
893 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
894 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
905 * @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)
908 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
909 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
913 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
916 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
917 Integer pageIndex
, List
<String
> propertyPaths
) {
918 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
922 public DeleteResult
isDeletable(Classification object
,
923 DeleteConfiguratorBase config
) {
924 // TODO Auto-generated method stub
929 public Classification
findWithoutFlush(UUID uuid
) {
930 return defaultService
.findWithoutFlush(uuid
);
935 public <S
extends Classification
> Pager
<FindByIdentifierDTO
<S
>> findByIdentifier(Class
<S
> clazz
, String identifier
, DefinedTerm identifierType
, MatchMode matchmode
, boolean includeEntity
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
){
936 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);