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
.dataimport
.transientServices
;
12 import java
.util
.Collection
;
13 import java
.util
.List
;
16 import java
.util
.UUID
;
18 import org
.hibernate
.LockMode
;
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
.IClassificationService
;
24 import eu
.etaxonomy
.cdm
.api
.service
.config
.IIdentifiableEntityServiceConfigurator
;
25 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
26 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
27 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
28 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
29 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
30 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
31 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
32 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
33 import eu
.etaxonomy
.cdm
.model
.common
.UuidAndTitleCache
;
34 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
35 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
36 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
37 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
38 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
39 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
40 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
41 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
42 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
43 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
44 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
45 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
46 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
47 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
48 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
49 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
56 public class TransientClassificationService
implements IClassificationService
{
58 private IClassificationService defaultClassificationService
;
61 * @param defaultClassificationService
63 public TransientClassificationService(IClassificationService defaultClassificationService
) {
64 this.defaultClassificationService
= defaultClassificationService
;
72 * @param propertyPaths
74 * @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)
77 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
78 return defaultClassificationService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
87 * @param propertyPaths
89 * @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)
92 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
93 return defaultClassificationService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
99 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
102 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
103 return defaultClassificationService
.getTaxonNodeByUuid(uuid
);
109 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
112 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
113 return defaultClassificationService
.getTreeNodeByUuid(uuid
);
118 * @see eu.etaxonomy.cdm.api.service.IService#clear()
121 public void clear() {
122 defaultClassificationService
.clear();
129 * @param propertyPaths
131 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
134 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
135 return defaultClassificationService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
141 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
144 public void lock(Classification t
, LockMode lockMode
) {
145 defaultClassificationService
.lock(t
, lockMode
);
151 * @param propertyPaths
152 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
155 public void refresh(Classification t
, LockMode lockMode
, List
<String
> propertyPaths
) {
156 defaultClassificationService
.refresh(t
, lockMode
, propertyPaths
);
161 * @param classificationUuid
162 * @param propertyPaths
165 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
169 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
170 return defaultClassificationService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
175 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
178 public void updateTitleCache() {
179 defaultClassificationService
.updateTitleCache();
185 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
188 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
189 return defaultClassificationService
.getNextAuditEvent(t
);
193 * @param annotatableEntity
198 * @param propertyPaths
200 * @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)
203 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
204 return defaultClassificationService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
210 * @param cacheStrategy
212 * @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)
215 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
216 defaultClassificationService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
221 * @param propertyPaths
224 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
228 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
229 return defaultClassificationService
.loadTaxonNode(taxonNode
, propertyPaths
);
235 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
238 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
239 return defaultClassificationService
.getPreviousAuditEvent(t
);
243 * @param classification
247 * @param propertyPaths
250 * @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)
254 public List
<TaxonNode
> loadRankSpecificRootNodes(Classification classification
, Rank rank
, Integer limit
, Integer start
, List
<String
> propertyPaths
) {
255 return defaultClassificationService
.loadRankSpecificRootNodes(classification
, rank
, limit
, start
, propertyPaths
);
261 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
264 public int count(Class
<?
extends Classification
> clazz
) {
265 return defaultClassificationService
.count(clazz
);
276 * @param propertyPaths
278 * @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)
281 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
) {
282 return defaultClassificationService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
288 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
291 public Classification
find(LSID lsid
) {
292 return defaultClassificationService
.find(lsid
);
296 * @param persistentObject
298 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
301 public UUID
delete(Classification persistentObject
) {
302 return defaultClassificationService
.delete(persistentObject
);
310 * @param propertyPaths
312 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
315 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
316 return defaultClassificationService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
322 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
325 public boolean exists(UUID uuid
) {
326 return defaultClassificationService
.exists(uuid
);
333 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
336 public Classification
replace(Classification x
, Classification y
) {
337 return defaultClassificationService
.replace(x
, y
);
343 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
346 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
347 return defaultClassificationService
.find(uuidSet
);
354 * @param propertyPaths
356 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
359 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
360 return defaultClassificationService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
364 * @param classification
368 * @param propertyPaths
370 * @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)
373 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
374 return defaultClassificationService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
380 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
383 public Classification
find(UUID uuid
) {
384 return defaultClassificationService
.find(uuid
);
390 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
393 public Classification
find(int id
) {
394 return defaultClassificationService
.find(id
);
401 * @param propertyPaths
403 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
406 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
407 return defaultClassificationService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
414 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
417 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
418 return defaultClassificationService
.countMarkers(clazz
, technical
);
424 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
427 public List
<Classification
> findById(Set
<Integer
> idSet
) {
428 return defaultClassificationService
.findById(idSet
);
436 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
439 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
440 return defaultClassificationService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
444 * @param classification
448 * @param propertyPaths
450 * @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)
453 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
454 return defaultClassificationService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
459 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
462 public Session
getSession() {
463 return defaultClassificationService
.getSession();
468 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
471 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
472 return defaultClassificationService
.getUuidAndTitleCache();
480 * @param propertyPaths
482 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
485 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
486 return defaultClassificationService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
497 * @param propertyPaths
499 * @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)
502 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
) {
503 return defaultClassificationService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
509 * @param propertyPaths
511 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
514 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
515 return defaultClassificationService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
523 * @param propertyPaths
525 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
528 public List
<Classification
> list(Class
<?
extends Classification
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
529 return defaultClassificationService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
534 * @param classification
536 * @param propertyPaths
538 * @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)
541 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
542 return defaultClassificationService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
546 * @param configurator
548 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
551 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
552 return defaultClassificationService
.findByTitle(configurator
);
561 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
564 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
565 return defaultClassificationService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
571 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
574 public Classification
load(UUID uuid
) {
575 return defaultClassificationService
.load(uuid
);
580 * @param propertyPaths
582 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
585 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
586 return defaultClassificationService
.load(uuid
, propertyPaths
);
590 * @param configurator
592 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
595 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
596 return defaultClassificationService
.countByTitle(configurator
);
601 * @param classification
602 * @param propertyPaths
604 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, java.util.List)
607 public List
<TaxonNode
> loadChildNodesOfTaxon(Taxon taxon
, Classification classification
, List
<String
> propertyPaths
) {
608 return defaultClassificationService
.loadChildNodesOfTaxon(taxon
, classification
, propertyPaths
);
612 * @param transientObject
614 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
617 public Classification
merge(Classification transientObject
) {
618 return defaultClassificationService
.merge(transientObject
);
629 * @param propertyPaths
631 * @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)
634 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
) {
635 return defaultClassificationService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
643 * @param propertyPaths
645 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
648 public Pager
<Classification
> page(Class
<?
extends Classification
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
649 return defaultClassificationService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
654 * @param propertyPaths
657 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
661 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
662 return defaultClassificationService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
666 * @param classification
668 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
671 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
672 return defaultClassificationService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
678 * @param propertyPaths
681 * @param widthOrDuration
685 * @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[])
689 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
690 return defaultClassificationService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
694 * @param persistentObject
696 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
699 public UUID
refresh(Classification persistentObject
) {
700 return defaultClassificationService
.refresh(persistentObject
);
711 * @param propertyPaths
713 * @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)
716 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
) {
717 return defaultClassificationService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
722 * @param propertyPaths
725 * @param widthOrDuration
728 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
731 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
732 return defaultClassificationService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
740 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
743 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
744 return defaultClassificationService
.rows(tableName
, limit
, start
);
748 * @param newInstances
750 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
753 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
761 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
765 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
766 return defaultClassificationService
.removeTaxonNode(taxonNode
);
773 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
777 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
784 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
787 public UUID
save(Classification newInstance
) {
792 * @param taxonNodeCollection
795 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
799 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
804 * @param transientObject
806 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
809 public UUID
saveOrUpdate(Classification transientObject
) {
816 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
819 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
820 return defaultClassificationService
.removeTreeNode(treeNode
);
829 * @param propertyPaths
831 * @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)
834 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
835 return defaultClassificationService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
841 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
844 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
849 * @param transientObjects
851 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
854 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
860 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
863 public List
<TaxonNode
> getAllNodes() {
864 return defaultClassificationService
.getAllNodes();
868 * @param transientObject
870 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
873 public UUID
update(Classification transientObject
) {
874 return defaultClassificationService
.update(transientObject
);
879 * @param includeProperties
883 * @param propertyPaths
885 * @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)
888 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
889 return defaultClassificationService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
894 * @param matchStrategy
895 * @param mergeStrategy
897 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
900 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
901 return defaultClassificationService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
912 * @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)
915 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
916 return defaultClassificationService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);