3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.editor
.view
.dataimport
.transientServices
;
12 import java
.util
.Collection
;
13 import java
.util
.List
;
16 import java
.util
.UUID
;
18 import org
.hibernate
.LockOptions
;
19 import org
.hibernate
.Session
;
20 import org
.hibernate
.criterion
.Criterion
;
21 import org
.hibernate
.envers
.query
.criteria
.AuditCriterion
;
23 import eu
.etaxonomy
.cdm
.api
.service
.DeleteResult
;
24 import eu
.etaxonomy
.cdm
.api
.service
.IClassificationService
;
25 import eu
.etaxonomy
.cdm
.api
.service
.NodeSortMode
;
26 import eu
.etaxonomy
.cdm
.api
.service
.UpdateResult
;
27 import eu
.etaxonomy
.cdm
.api
.service
.config
.CreateHierarchyForClassificationConfigurator
;
28 import eu
.etaxonomy
.cdm
.api
.service
.config
.DeleteConfiguratorBase
;
29 import eu
.etaxonomy
.cdm
.api
.service
.config
.IIdentifiableEntityServiceConfigurator
;
30 import eu
.etaxonomy
.cdm
.api
.service
.config
.TaxonDeletionConfigurator
;
31 import eu
.etaxonomy
.cdm
.api
.service
.dto
.GroupedTaxonDTO
;
32 import eu
.etaxonomy
.cdm
.api
.service
.dto
.IdentifiedEntityDTO
;
33 import eu
.etaxonomy
.cdm
.api
.service
.dto
.MarkedEntityDTO
;
34 import eu
.etaxonomy
.cdm
.api
.service
.dto
.TaxonInContextDTO
;
35 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
36 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
37 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
38 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
39 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
40 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
41 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
42 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
43 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
44 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
45 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
46 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
47 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
48 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
49 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
50 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
51 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
52 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
53 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
54 import eu
.etaxonomy
.cdm
.persistence
.dto
.ClassificationLookupDTO
;
55 import eu
.etaxonomy
.cdm
.persistence
.dto
.MergeResult
;
56 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
57 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
58 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
59 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
60 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
61 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
62 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
69 public class TransientClassificationService
implements IClassificationService
{
71 private final IClassificationService defaultService
;
74 * @param defaultClassificationService
76 public TransientClassificationService(IClassificationService defaultClassificationService
) {
77 this.defaultService
= defaultClassificationService
;
85 * @param propertyPaths
87 * @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)
90 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
91 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
100 * @param propertyPaths
102 * @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)
105 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
106 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
112 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
115 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
116 return defaultService
.getTaxonNodeByUuid(uuid
);
122 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
125 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
126 return defaultService
.getTreeNodeByUuid(uuid
);
131 * @see eu.etaxonomy.cdm.api.service.IService#clear()
134 public void clear() {
135 defaultService
.clear();
142 * @param propertyPaths
144 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
147 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
148 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
154 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
157 public void lock(Classification t
, LockOptions lockOptions
) {
158 defaultService
.lock(t
, lockOptions
);
164 * @param propertyPaths
165 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
168 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
169 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
174 * @param classificationUuid
175 * @param propertyPaths
178 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
182 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
183 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
188 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
191 public void updateTitleCache() {
192 defaultService
.updateTitleCache();
198 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
201 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
202 return defaultService
.getNextAuditEvent(t
);
206 * @param annotatableEntity
211 * @param propertyPaths
213 * @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)
216 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
217 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
223 * @param cacheStrategy
225 * @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)
228 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
229 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
234 * @param propertyPaths
237 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
241 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
242 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
248 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
251 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
252 return defaultService
.getPreviousAuditEvent(t
);
258 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
261 public int count(Class
<?
extends Classification
> clazz
) {
262 return defaultService
.count(clazz
);
273 * @param propertyPaths
275 * @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)
278 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
) {
279 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
285 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
288 public Classification
find(LSID lsid
) {
289 return defaultService
.find(lsid
);
293 * @param persistentObject
295 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
298 public DeleteResult
delete(Classification persistentObject
) {
299 return defaultService
.delete(persistentObject
);
307 * @param propertyPaths
309 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
312 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
313 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
319 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
322 public boolean exists(UUID uuid
) {
323 return defaultService
.exists(uuid
);
330 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
333 public Classification
replace(Classification x
, Classification y
) {
334 return defaultService
.replace(x
, y
);
340 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
343 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
344 return defaultService
.find(uuidSet
);
351 * @param propertyPaths
353 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
356 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
357 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
361 * @param classification
365 * @param propertyPaths
367 * @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)
370 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
371 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
377 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
380 public Classification
find(UUID uuid
) {
381 return defaultService
.find(uuid
);
387 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
390 public Classification
find(int id
) {
391 return defaultService
.find(id
);
398 * @param propertyPaths
400 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
403 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
404 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
411 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
414 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
415 return defaultService
.countMarkers(clazz
, technical
);
421 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
424 public List
<Classification
> findById(Set
<Integer
> idSet
) {
425 return defaultService
.findById(idSet
);
433 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
436 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
437 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
441 * @param classification
445 * @param propertyPaths
447 * @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)
450 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
451 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
456 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
459 public Session
getSession() {
460 return defaultService
.getSession();
468 * @param propertyPaths
470 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
473 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
474 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
485 * @param propertyPaths
487 * @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)
490 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
) {
491 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
497 * @param propertyPaths
499 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
502 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
503 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
511 * @param propertyPaths
513 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
516 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
517 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
522 * @param classification
524 * @param propertyPaths
526 * @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)
529 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
530 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
534 * @param configurator
536 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
539 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
540 return defaultService
.findByTitle(configurator
);
549 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
552 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
553 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
559 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
562 public Classification
load(UUID uuid
) {
563 return defaultService
.load(uuid
);
568 * @param propertyPaths
570 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
573 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
574 return defaultService
.load(uuid
, propertyPaths
);
578 * @param configurator
580 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
583 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
584 return defaultService
.countByTitle(configurator
);
588 * @param transientObject
590 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
593 public Classification
merge(Classification transientObject
) {
594 return defaultService
.merge(transientObject
);
605 * @param propertyPaths
607 * @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)
610 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
) {
611 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
619 * @param propertyPaths
621 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
624 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
625 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
630 * @param propertyPaths
633 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
637 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
638 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
645 * @param propertyPaths
648 * @param widthOrDuration
652 * @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[])
656 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
657 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
661 * @param persistentObject
663 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
666 public UUID
refresh(Classification persistentObject
) {
667 return defaultService
.refresh(persistentObject
);
678 * @param propertyPaths
680 * @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)
683 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
) {
684 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
689 * @param propertyPaths
692 * @param widthOrDuration
695 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
698 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
699 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
707 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
710 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
711 return defaultService
.rows(tableName
, limit
, start
);
715 * @param newInstances
717 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
720 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
728 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
732 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
733 return defaultService
.removeTaxonNode(taxonNode
);
740 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
744 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
751 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
754 public Classification
save(Classification newInstance
) {
759 * @param taxonNodeCollection
762 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
766 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
771 * @param transientObject
773 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
776 public UUID
saveOrUpdate(Classification transientObject
) {
783 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
786 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
787 return defaultService
.removeTreeNode(treeNode
);
796 * @param propertyPaths
798 * @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)
801 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
802 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
808 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
811 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
816 * @param transientObjects
818 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
821 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
827 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
830 public List
<TaxonNode
> getAllNodes() {
831 return defaultService
.getAllNodes();
835 * @param transientObject
837 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
840 public UUID
update(Classification transientObject
) {
841 return defaultService
.update(transientObject
);
846 * @param includeProperties
850 * @param propertyPaths
852 * @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)
855 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
856 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
861 * @param matchStrategy
862 * @param mergeStrategy
864 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
867 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
868 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
879 * @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)
882 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
883 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
887 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
890 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
891 Integer pageIndex
, List
<String
> propertyPaths
) {
892 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
896 public DeleteResult
isDeletable(Classification object
,
897 DeleteConfiguratorBase config
) {
899 return defaultService
.isDeletable(object
, config
);
903 public Classification
findWithoutFlush(UUID uuid
) {
904 return defaultService
.findWithoutFlush(uuid
);
909 public <S
extends Classification
> Pager
<IdentifiedEntityDTO
<S
>> findByIdentifier(Class
<S
> clazz
, String identifier
, DefinedTerm identifierType
, MatchMode matchmode
, boolean includeEntity
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
){
910 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);
914 public UpdateResult
createHierarchyInClassification(Classification arg1
, CreateHierarchyForClassificationConfigurator arg2
) {
915 return defaultService
.createHierarchyInClassification(arg1
, arg2
);
919 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.UUID)
922 public DeleteResult
delete(UUID arg0
) {
923 return defaultService
.delete(arg0
);
927 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.Collection)
930 public DeleteResult
delete(Collection
<UUID
> arg0
) {
931 return defaultService
.delete(arg0
);
935 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List)
938 public List
<Classification
> merge(List
<Classification
> arg0
) {
939 return defaultService
.merge(arg0
);
943 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List, boolean)
946 public List
<MergeResult
<Classification
>> merge(List
<Classification
> arg0
, boolean arg1
) {
947 return defaultService
.merge(arg0
, arg1
);
951 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase, boolean)
954 public MergeResult
<Classification
> merge(Classification arg0
, boolean arg1
) {
955 return defaultService
.merge(arg0
, arg1
);
959 * @see eu.etaxonomy.cdm.api.service.IService#loadWithUpdate(java.util.UUID)
962 public Classification
loadWithUpdate(UUID arg0
) {
963 return defaultService
.loadWithUpdate(arg0
);
968 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
969 UUID classificationUuid
) {
971 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
);
978 public List
<Classification
> load(List
<UUID
> arg0
, List
<String
> arg1
) {
979 return defaultService
.load(arg0
, arg1
);
983 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache(Integer limit
, String pattern
) {
984 return defaultService
.getUuidAndTitleCache(null, null);
988 public List
<TaxonNode
> listSiblingsOfTaxon(UUID taxonUuid
,
989 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
990 List
<String
> propertyPaths
) {
992 return defaultService
.listSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
996 public Pager
<TaxonNode
> pageSiblingsOfTaxon(UUID taxonUuid
,
997 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
998 List
<String
> propertyPaths
) {
999 return defaultService
.pageSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
1003 public List
<Classification
> loadByIds(List
<Integer
> idSet
, List
<String
> propertyPaths
) {
1005 return defaultService
.loadByIds(idSet
, propertyPaths
);
1009 public ClassificationLookupDTO
classificationLookup(Classification arg0
) {
1011 return defaultService
.classificationLookup(arg0
);
1015 public DeleteResult
delete(UUID arg0
, TaxonDeletionConfigurator arg1
) {
1017 return defaultService
.delete(arg0
, arg1
);
1021 public List
<GroupedTaxonDTO
> groupTaxaByHigherTaxon(List
<UUID
> taxonUuids
,
1022 UUID classificationUuid
, Rank minRank
, Rank maxRank
) {
1023 return defaultService
.groupTaxaByHigherTaxon(taxonUuids
, classificationUuid
, minRank
, maxRank
);
1027 public TaxonNode
getRootNode(UUID arg0
) {
1028 return defaultService
.getRootNode(arg0
);
1032 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1033 Classification classification
) {
1034 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
1039 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1040 UUID classificationUuid
, Integer limit
, String pattern
) {
1042 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
, limit
, pattern
);
1046 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1047 Classification classification
, Integer limit
, String pattern
) {
1048 // TODO Auto-generated method stub
1049 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, limit
, pattern
);
1053 public <S
extends Classification
> Pager
<MarkedEntityDTO
<S
>> findByMarker(
1054 Class
<S
> arg0
, MarkerType arg1
, Boolean arg2
, boolean arg3
,
1055 Integer arg4
, Integer arg5
, List
<String
> arg6
) {
1056 // TODO Auto-generated method stub
1061 public UUID
getTaxonNodeUuidByTaxonUuid(UUID arg0
, UUID arg1
) {
1062 // TODO Auto-generated method stub
1067 public TaxonInContextDTO
getTaxonInContext(UUID arg0
, UUID arg1
,
1068 Boolean arg2
, Boolean arg3
, List
<UUID
> arg4
, NodeSortMode arg5
) {
1069 // TODO Auto-generated method stub
1074 public <S
extends Classification
> List
<UuidAndTitleCache
<S
>> getUuidAndTitleCache(
1075 Class
<S
> arg0
, Integer arg1
, String arg2
) {
1076 // TODO Auto-generated method stub
1081 public String
getTitleCache(UUID arg0
, boolean arg1
) {
1082 // TODO Auto-generated method stub