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
.DeleteConfiguratorBase
;
25 import eu
.etaxonomy
.cdm
.api
.service
.config
.IIdentifiableEntityServiceConfigurator
;
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 final 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 String
delete(Classification persistentObject
) {
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 <S
extends Classification
> List
<S
> list(Class
<S
> 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
);
601 * @param transientObject
603 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
606 public Classification
merge(Classification transientObject
) {
607 return defaultClassificationService
.merge(transientObject
);
618 * @param propertyPaths
620 * @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)
623 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
) {
624 return defaultClassificationService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
632 * @param propertyPaths
634 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
637 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
638 return defaultClassificationService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
643 * @param propertyPaths
646 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
650 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
651 return defaultClassificationService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
655 * @param classification
657 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
660 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
661 return defaultClassificationService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
667 * @param propertyPaths
670 * @param widthOrDuration
674 * @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[])
678 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
679 return defaultClassificationService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
683 * @param persistentObject
685 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
688 public UUID
refresh(Classification persistentObject
) {
689 return defaultClassificationService
.refresh(persistentObject
);
700 * @param propertyPaths
702 * @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)
705 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
) {
706 return defaultClassificationService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
711 * @param propertyPaths
714 * @param widthOrDuration
717 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
720 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
721 return defaultClassificationService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
729 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
732 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
733 return defaultClassificationService
.rows(tableName
, limit
, start
);
737 * @param newInstances
739 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
742 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
750 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
754 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
755 return defaultClassificationService
.removeTaxonNode(taxonNode
);
762 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
766 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
773 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
776 public UUID
save(Classification newInstance
) {
781 * @param taxonNodeCollection
784 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
788 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
793 * @param transientObject
795 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
798 public UUID
saveOrUpdate(Classification transientObject
) {
805 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
808 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
809 return defaultClassificationService
.removeTreeNode(treeNode
);
818 * @param propertyPaths
820 * @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)
823 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
824 return defaultClassificationService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
830 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
833 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
838 * @param transientObjects
840 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
843 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
849 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
852 public List
<TaxonNode
> getAllNodes() {
853 return defaultClassificationService
.getAllNodes();
857 * @param transientObject
859 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
862 public UUID
update(Classification transientObject
) {
863 return defaultClassificationService
.update(transientObject
);
868 * @param includeProperties
872 * @param propertyPaths
874 * @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)
877 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
878 return defaultClassificationService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
883 * @param matchStrategy
884 * @param mergeStrategy
886 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
889 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
890 return defaultClassificationService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
901 * @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)
904 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
905 return defaultClassificationService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
909 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
912 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
913 Integer pageIndex
, List
<String
> propertyPaths
) {
914 return defaultClassificationService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
918 public List
<String
> isDeletable(Classification object
,
919 DeleteConfiguratorBase config
) {
920 // TODO Auto-generated method stub