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
.exception
.ReferencedObjectUndeletableException
;
27 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
28 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
29 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
30 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
31 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
32 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
33 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
34 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
35 import eu
.etaxonomy
.cdm
.model
.common
.UuidAndTitleCache
;
36 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
37 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
38 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
39 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
40 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
41 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
42 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
43 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
44 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
45 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
46 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
47 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
48 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
49 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
50 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
51 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
58 public class TransientClassificationService
implements IClassificationService
{
60 private final IClassificationService defaultClassificationService
;
63 * @param defaultClassificationService
65 public TransientClassificationService(IClassificationService defaultClassificationService
) {
66 this.defaultClassificationService
= defaultClassificationService
;
74 * @param propertyPaths
76 * @see eu.etaxonomy.cdm.api.service.IVersionableService#pageAuditEvents(eu.etaxonomy.cdm.model.common.VersionableEntity, java.lang.Integer, java.lang.Integer, eu.etaxonomy.cdm.persistence.dao.common.AuditEventSort, java.util.List)
79 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
80 return defaultClassificationService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
89 * @param propertyPaths
91 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#getAnnotations(eu.etaxonomy.cdm.model.common.AnnotatableEntity, eu.etaxonomy.cdm.model.common.MarkerType, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
94 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
95 return defaultClassificationService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
101 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
104 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
105 return defaultClassificationService
.getTaxonNodeByUuid(uuid
);
111 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
114 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
115 return defaultClassificationService
.getTreeNodeByUuid(uuid
);
120 * @see eu.etaxonomy.cdm.api.service.IService#clear()
123 public void clear() {
124 defaultClassificationService
.clear();
131 * @param propertyPaths
133 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
136 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
137 return defaultClassificationService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
143 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
146 public void lock(Classification t
, LockMode lockMode
) {
147 defaultClassificationService
.lock(t
, lockMode
);
153 * @param propertyPaths
154 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
157 public void refresh(Classification t
, LockMode lockMode
, List
<String
> propertyPaths
) {
158 defaultClassificationService
.refresh(t
, lockMode
, propertyPaths
);
163 * @param classificationUuid
164 * @param propertyPaths
167 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
171 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
172 return defaultClassificationService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
177 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
180 public void updateTitleCache() {
181 defaultClassificationService
.updateTitleCache();
187 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
190 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
191 return defaultClassificationService
.getNextAuditEvent(t
);
195 * @param annotatableEntity
200 * @param propertyPaths
202 * @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)
205 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
206 return defaultClassificationService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
212 * @param cacheStrategy
214 * @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)
217 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
218 defaultClassificationService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
223 * @param propertyPaths
226 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
230 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
231 return defaultClassificationService
.loadTaxonNode(taxonNode
, propertyPaths
);
237 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
240 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
241 return defaultClassificationService
.getPreviousAuditEvent(t
);
245 * @param classification
249 * @param propertyPaths
252 * @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)
256 public List
<TaxonNode
> loadRankSpecificRootNodes(Classification classification
, Rank rank
, Integer limit
, Integer start
, List
<String
> propertyPaths
) {
257 return defaultClassificationService
.loadRankSpecificRootNodes(classification
, rank
, limit
, start
, propertyPaths
);
263 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
266 public int count(Class
<?
extends Classification
> clazz
) {
267 return defaultClassificationService
.count(clazz
);
278 * @param propertyPaths
280 * @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)
283 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
) {
284 return defaultClassificationService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
290 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
293 public Classification
find(LSID lsid
) {
294 return defaultClassificationService
.find(lsid
);
298 * @param persistentObject
300 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
303 public String
delete(Classification persistentObject
) {
304 return defaultClassificationService
.delete(persistentObject
);
312 * @param propertyPaths
314 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
317 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
318 return defaultClassificationService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
324 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
327 public boolean exists(UUID uuid
) {
328 return defaultClassificationService
.exists(uuid
);
335 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
338 public Classification
replace(Classification x
, Classification y
) {
339 return defaultClassificationService
.replace(x
, y
);
345 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
348 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
349 return defaultClassificationService
.find(uuidSet
);
356 * @param propertyPaths
358 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
361 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
362 return defaultClassificationService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
366 * @param classification
370 * @param propertyPaths
372 * @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)
375 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
376 return defaultClassificationService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
382 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
385 public Classification
find(UUID uuid
) {
386 return defaultClassificationService
.find(uuid
);
392 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
395 public Classification
find(int id
) {
396 return defaultClassificationService
.find(id
);
403 * @param propertyPaths
405 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
408 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
409 return defaultClassificationService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
416 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
419 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
420 return defaultClassificationService
.countMarkers(clazz
, technical
);
426 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
429 public List
<Classification
> findById(Set
<Integer
> idSet
) {
430 return defaultClassificationService
.findById(idSet
);
438 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
441 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
442 return defaultClassificationService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
446 * @param classification
450 * @param propertyPaths
452 * @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)
455 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
456 return defaultClassificationService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
461 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
464 public Session
getSession() {
465 return defaultClassificationService
.getSession();
470 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
473 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
474 return defaultClassificationService
.getUuidAndTitleCache();
482 * @param propertyPaths
484 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
487 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
488 return defaultClassificationService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
499 * @param propertyPaths
501 * @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)
504 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
) {
505 return defaultClassificationService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
511 * @param propertyPaths
513 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
516 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
517 return defaultClassificationService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
525 * @param propertyPaths
527 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
530 public List
<Classification
> list(Class
<?
extends Classification
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
531 return defaultClassificationService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
536 * @param classification
538 * @param propertyPaths
540 * @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)
543 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
544 return defaultClassificationService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
548 * @param configurator
550 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
553 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
554 return defaultClassificationService
.findByTitle(configurator
);
563 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
566 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
567 return defaultClassificationService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
573 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
576 public Classification
load(UUID uuid
) {
577 return defaultClassificationService
.load(uuid
);
582 * @param propertyPaths
584 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
587 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
588 return defaultClassificationService
.load(uuid
, propertyPaths
);
592 * @param configurator
594 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
597 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
598 return defaultClassificationService
.countByTitle(configurator
);
602 * @param transientObject
604 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
607 public Classification
merge(Classification transientObject
) {
608 return defaultClassificationService
.merge(transientObject
);
619 * @param propertyPaths
621 * @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)
624 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
) {
625 return defaultClassificationService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
633 * @param propertyPaths
635 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
638 public Pager
<Classification
> page(Class
<?
extends Classification
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
639 return defaultClassificationService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
644 * @param propertyPaths
647 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
651 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
652 return defaultClassificationService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
656 * @param classification
658 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
661 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
662 return defaultClassificationService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
668 * @param propertyPaths
671 * @param widthOrDuration
675 * @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[])
679 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
680 return defaultClassificationService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
684 * @param persistentObject
686 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
689 public UUID
refresh(Classification persistentObject
) {
690 return defaultClassificationService
.refresh(persistentObject
);
701 * @param propertyPaths
703 * @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)
706 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
) {
707 return defaultClassificationService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
712 * @param propertyPaths
715 * @param widthOrDuration
718 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
721 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
722 return defaultClassificationService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
730 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
733 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
734 return defaultClassificationService
.rows(tableName
, limit
, start
);
738 * @param newInstances
740 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
743 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
751 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
755 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
756 return defaultClassificationService
.removeTaxonNode(taxonNode
);
763 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
767 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
774 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
777 public UUID
save(Classification newInstance
) {
782 * @param taxonNodeCollection
785 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
789 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
794 * @param transientObject
796 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
799 public UUID
saveOrUpdate(Classification transientObject
) {
806 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
809 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
810 return defaultClassificationService
.removeTreeNode(treeNode
);
819 * @param propertyPaths
821 * @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)
824 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
825 return defaultClassificationService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
831 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
834 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
839 * @param transientObjects
841 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
844 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
850 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
853 public List
<TaxonNode
> getAllNodes() {
854 return defaultClassificationService
.getAllNodes();
858 * @param transientObject
860 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
863 public UUID
update(Classification transientObject
) {
864 return defaultClassificationService
.update(transientObject
);
869 * @param includeProperties
873 * @param propertyPaths
875 * @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)
878 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
879 return defaultClassificationService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
884 * @param matchStrategy
885 * @param mergeStrategy
887 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
890 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
891 return defaultClassificationService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
902 * @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)
905 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
906 return defaultClassificationService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
910 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
913 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
914 Integer pageIndex
, List
<String
> propertyPaths
) {
915 return defaultClassificationService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
919 public List
<String
> isDeletable(Classification object
,
920 DeleteConfiguratorBase config
) {
921 // TODO Auto-generated method stub