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
.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
.exception
.ReferencedObjectUndeletableException
;
26 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
27 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
28 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
29 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
30 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
31 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
32 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
33 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
34 import eu
.etaxonomy
.cdm
.model
.common
.UuidAndTitleCache
;
35 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
36 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
37 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
38 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
39 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
40 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
41 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
42 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
43 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
44 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
45 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
46 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
47 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
48 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
49 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
50 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
57 public class TransientClassificationService
implements IClassificationService
{
59 private IClassificationService defaultClassificationService
;
62 * @param defaultClassificationService
64 public TransientClassificationService(IClassificationService defaultClassificationService
) {
65 this.defaultClassificationService
= defaultClassificationService
;
73 * @param propertyPaths
75 * @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)
78 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
79 return defaultClassificationService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
88 * @param propertyPaths
90 * @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)
93 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
94 return defaultClassificationService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
100 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
103 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
104 return defaultClassificationService
.getTaxonNodeByUuid(uuid
);
110 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
113 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
114 return defaultClassificationService
.getTreeNodeByUuid(uuid
);
119 * @see eu.etaxonomy.cdm.api.service.IService#clear()
122 public void clear() {
123 defaultClassificationService
.clear();
130 * @param propertyPaths
132 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
135 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
136 return defaultClassificationService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
142 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
145 public void lock(Classification t
, LockMode lockMode
) {
146 defaultClassificationService
.lock(t
, lockMode
);
152 * @param propertyPaths
153 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
156 public void refresh(Classification t
, LockMode lockMode
, List
<String
> propertyPaths
) {
157 defaultClassificationService
.refresh(t
, lockMode
, propertyPaths
);
162 * @param classificationUuid
163 * @param propertyPaths
166 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
170 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
171 return defaultClassificationService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
176 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
179 public void updateTitleCache() {
180 defaultClassificationService
.updateTitleCache();
186 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
189 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
190 return defaultClassificationService
.getNextAuditEvent(t
);
194 * @param annotatableEntity
199 * @param propertyPaths
201 * @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)
204 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
205 return defaultClassificationService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
211 * @param cacheStrategy
213 * @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)
216 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
217 defaultClassificationService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
222 * @param propertyPaths
225 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
229 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
230 return defaultClassificationService
.loadTaxonNode(taxonNode
, propertyPaths
);
236 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
239 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
240 return defaultClassificationService
.getPreviousAuditEvent(t
);
244 * @param classification
248 * @param propertyPaths
251 * @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)
255 public List
<TaxonNode
> loadRankSpecificRootNodes(Classification classification
, Rank rank
, Integer limit
, Integer start
, List
<String
> propertyPaths
) {
256 return defaultClassificationService
.loadRankSpecificRootNodes(classification
, rank
, limit
, start
, propertyPaths
);
262 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
265 public int count(Class
<?
extends Classification
> clazz
) {
266 return defaultClassificationService
.count(clazz
);
277 * @param propertyPaths
279 * @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)
282 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
) {
283 return defaultClassificationService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
289 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
292 public Classification
find(LSID lsid
) {
293 return defaultClassificationService
.find(lsid
);
297 * @param persistentObject
299 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
302 public UUID
delete(Classification persistentObject
) throws ReferencedObjectUndeletableException
{
303 return defaultClassificationService
.delete(persistentObject
);
311 * @param propertyPaths
313 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
316 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
317 return defaultClassificationService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
323 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
326 public boolean exists(UUID uuid
) {
327 return defaultClassificationService
.exists(uuid
);
334 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
337 public Classification
replace(Classification x
, Classification y
) {
338 return defaultClassificationService
.replace(x
, y
);
344 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
347 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
348 return defaultClassificationService
.find(uuidSet
);
355 * @param propertyPaths
357 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
360 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
361 return defaultClassificationService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
365 * @param classification
369 * @param propertyPaths
371 * @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)
374 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
375 return defaultClassificationService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
381 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
384 public Classification
find(UUID uuid
) {
385 return defaultClassificationService
.find(uuid
);
391 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
394 public Classification
find(int id
) {
395 return defaultClassificationService
.find(id
);
402 * @param propertyPaths
404 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
407 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
408 return defaultClassificationService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
415 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
418 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
419 return defaultClassificationService
.countMarkers(clazz
, technical
);
425 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
428 public List
<Classification
> findById(Set
<Integer
> idSet
) {
429 return defaultClassificationService
.findById(idSet
);
437 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
440 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
441 return defaultClassificationService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
445 * @param classification
449 * @param propertyPaths
451 * @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)
454 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
455 return defaultClassificationService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
460 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
463 public Session
getSession() {
464 return defaultClassificationService
.getSession();
469 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
472 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
473 return defaultClassificationService
.getUuidAndTitleCache();
481 * @param propertyPaths
483 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
486 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
487 return defaultClassificationService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
498 * @param propertyPaths
500 * @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)
503 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
) {
504 return defaultClassificationService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
510 * @param propertyPaths
512 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
515 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
516 return defaultClassificationService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
524 * @param propertyPaths
526 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
529 public List
<Classification
> list(Class
<?
extends Classification
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
530 return defaultClassificationService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
535 * @param classification
537 * @param propertyPaths
539 * @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)
542 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
543 return defaultClassificationService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
547 * @param configurator
549 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
552 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
553 return defaultClassificationService
.findByTitle(configurator
);
562 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
565 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
566 return defaultClassificationService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
572 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
575 public Classification
load(UUID uuid
) {
576 return defaultClassificationService
.load(uuid
);
581 * @param propertyPaths
583 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
586 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
587 return defaultClassificationService
.load(uuid
, propertyPaths
);
591 * @param configurator
593 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
596 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
597 return defaultClassificationService
.countByTitle(configurator
);
602 * @param classification
603 * @param propertyPaths
605 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, eu.etaxonomy.cdm.model.taxon.Classification, java.util.List)
608 public List
<TaxonNode
> loadChildNodesOfTaxon(Taxon taxon
, Classification classification
, List
<String
> propertyPaths
) {
609 return defaultClassificationService
.loadChildNodesOfTaxon(taxon
, classification
, propertyPaths
);
613 * @param transientObject
615 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
618 public Classification
merge(Classification transientObject
) {
619 return defaultClassificationService
.merge(transientObject
);
630 * @param propertyPaths
632 * @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)
635 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
) {
636 return defaultClassificationService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
644 * @param propertyPaths
646 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
649 public Pager
<Classification
> page(Class
<?
extends Classification
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
650 return defaultClassificationService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
655 * @param propertyPaths
658 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
662 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
663 return defaultClassificationService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
667 * @param classification
669 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
672 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
673 return defaultClassificationService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
679 * @param propertyPaths
682 * @param widthOrDuration
686 * @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[])
690 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
691 return defaultClassificationService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
695 * @param persistentObject
697 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
700 public UUID
refresh(Classification persistentObject
) {
701 return defaultClassificationService
.refresh(persistentObject
);
712 * @param propertyPaths
714 * @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)
717 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
) {
718 return defaultClassificationService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
723 * @param propertyPaths
726 * @param widthOrDuration
729 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
732 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
733 return defaultClassificationService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
741 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
744 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
745 return defaultClassificationService
.rows(tableName
, limit
, start
);
749 * @param newInstances
751 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
754 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
762 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
766 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
767 return defaultClassificationService
.removeTaxonNode(taxonNode
);
774 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
778 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
785 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
788 public UUID
save(Classification newInstance
) {
793 * @param taxonNodeCollection
796 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
800 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
805 * @param transientObject
807 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
810 public UUID
saveOrUpdate(Classification transientObject
) {
817 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
820 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
821 return defaultClassificationService
.removeTreeNode(treeNode
);
830 * @param propertyPaths
832 * @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)
835 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
836 return defaultClassificationService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
842 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
845 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
850 * @param transientObjects
852 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
855 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
861 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
864 public List
<TaxonNode
> getAllNodes() {
865 return defaultClassificationService
.getAllNodes();
869 * @param transientObject
871 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
874 public UUID
update(Classification transientObject
) {
875 return defaultClassificationService
.update(transientObject
);
880 * @param includeProperties
884 * @param propertyPaths
886 * @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)
889 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
890 return defaultClassificationService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
895 * @param matchStrategy
896 * @param mergeStrategy
898 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
901 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
902 return defaultClassificationService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
913 * @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)
916 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
917 return defaultClassificationService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);