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
.UpdateResult
;
26 import eu
.etaxonomy
.cdm
.api
.service
.config
.CreateHierarchyForClassificationConfigurator
;
27 import eu
.etaxonomy
.cdm
.api
.service
.config
.DeleteConfiguratorBase
;
28 import eu
.etaxonomy
.cdm
.api
.service
.config
.IIdentifiableEntityServiceConfigurator
;
29 import eu
.etaxonomy
.cdm
.api
.service
.config
.TaxonDeletionConfigurator
;
30 import eu
.etaxonomy
.cdm
.api
.service
.dto
.FindByIdentifierDTO
;
31 import eu
.etaxonomy
.cdm
.api
.service
.dto
.GroupedTaxonDTO
;
32 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
33 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
34 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
35 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
36 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
37 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
38 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
39 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
40 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
41 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
42 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
43 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
44 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
45 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
46 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
47 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
48 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
49 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
50 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
51 import eu
.etaxonomy
.cdm
.persistence
.dto
.ClassificationLookupDTO
;
52 import eu
.etaxonomy
.cdm
.persistence
.dto
.MergeResult
;
53 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
54 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
55 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
56 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
57 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
58 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
59 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
66 public class TransientClassificationService
implements IClassificationService
{
68 private final IClassificationService defaultService
;
71 * @param defaultClassificationService
73 public TransientClassificationService(IClassificationService defaultClassificationService
) {
74 this.defaultService
= defaultClassificationService
;
82 * @param propertyPaths
84 * @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)
87 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
88 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
97 * @param propertyPaths
99 * @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)
102 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
103 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
109 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
112 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
113 return defaultService
.getTaxonNodeByUuid(uuid
);
119 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
122 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
123 return defaultService
.getTreeNodeByUuid(uuid
);
128 * @see eu.etaxonomy.cdm.api.service.IService#clear()
131 public void clear() {
132 defaultService
.clear();
139 * @param propertyPaths
141 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
144 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
145 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
151 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
154 public void lock(Classification t
, LockOptions lockOptions
) {
155 defaultService
.lock(t
, lockOptions
);
161 * @param propertyPaths
162 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
165 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
166 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
171 * @param classificationUuid
172 * @param propertyPaths
175 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
179 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
180 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
185 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
188 public void updateTitleCache() {
189 defaultService
.updateTitleCache();
195 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
198 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
199 return defaultService
.getNextAuditEvent(t
);
203 * @param annotatableEntity
208 * @param propertyPaths
210 * @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)
213 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
214 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
220 * @param cacheStrategy
222 * @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)
225 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
226 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
231 * @param propertyPaths
234 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
238 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
239 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
245 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
248 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
249 return defaultService
.getPreviousAuditEvent(t
);
255 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
258 public int count(Class
<?
extends Classification
> clazz
) {
259 return defaultService
.count(clazz
);
270 * @param propertyPaths
272 * @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)
275 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
) {
276 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
282 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
285 public Classification
find(LSID lsid
) {
286 return defaultService
.find(lsid
);
290 * @param persistentObject
292 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
295 public DeleteResult
delete(Classification persistentObject
) {
296 return defaultService
.delete(persistentObject
);
304 * @param propertyPaths
306 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
309 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
310 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
316 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
319 public boolean exists(UUID uuid
) {
320 return defaultService
.exists(uuid
);
327 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
330 public Classification
replace(Classification x
, Classification y
) {
331 return defaultService
.replace(x
, y
);
337 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
340 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
341 return defaultService
.find(uuidSet
);
348 * @param propertyPaths
350 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
353 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
354 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
358 * @param classification
362 * @param propertyPaths
364 * @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)
367 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
368 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
374 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
377 public Classification
find(UUID uuid
) {
378 return defaultService
.find(uuid
);
384 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
387 public Classification
find(int id
) {
388 return defaultService
.find(id
);
395 * @param propertyPaths
397 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
400 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
401 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
408 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
411 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
412 return defaultService
.countMarkers(clazz
, technical
);
418 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
421 public List
<Classification
> findById(Set
<Integer
> idSet
) {
422 return defaultService
.findById(idSet
);
430 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
433 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
434 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
438 * @param classification
442 * @param propertyPaths
444 * @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)
447 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
448 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
453 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
456 public Session
getSession() {
457 return defaultService
.getSession();
465 * @param propertyPaths
467 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
470 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
471 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
482 * @param propertyPaths
484 * @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)
487 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
) {
488 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
494 * @param propertyPaths
496 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
499 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
500 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
508 * @param propertyPaths
510 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
513 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
514 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
519 * @param classification
521 * @param propertyPaths
523 * @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)
526 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
527 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
531 * @param configurator
533 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
536 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
537 return defaultService
.findByTitle(configurator
);
546 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
549 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
550 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
556 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
559 public Classification
load(UUID uuid
) {
560 return defaultService
.load(uuid
);
565 * @param propertyPaths
567 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
570 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
571 return defaultService
.load(uuid
, propertyPaths
);
575 * @param configurator
577 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
580 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
581 return defaultService
.countByTitle(configurator
);
585 * @param transientObject
587 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
590 public Classification
merge(Classification transientObject
) {
591 return defaultService
.merge(transientObject
);
602 * @param propertyPaths
604 * @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)
607 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
) {
608 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
616 * @param propertyPaths
618 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
621 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
622 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
627 * @param propertyPaths
630 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
634 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
635 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
639 * @param classification
641 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
644 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
, List
<UUID
> excludeTaxa
) {
645 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, excludeTaxa
);
651 * @param propertyPaths
654 * @param widthOrDuration
658 * @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[])
662 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
663 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
667 * @param persistentObject
669 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
672 public UUID
refresh(Classification persistentObject
) {
673 return defaultService
.refresh(persistentObject
);
684 * @param propertyPaths
686 * @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)
689 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
) {
690 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
695 * @param propertyPaths
698 * @param widthOrDuration
701 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
704 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
705 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
713 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
716 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
717 return defaultService
.rows(tableName
, limit
, start
);
721 * @param newInstances
723 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
726 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
734 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
738 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
739 return defaultService
.removeTaxonNode(taxonNode
);
746 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
750 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
757 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
760 public Classification
save(Classification newInstance
) {
765 * @param taxonNodeCollection
768 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
772 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
777 * @param transientObject
779 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
782 public UUID
saveOrUpdate(Classification transientObject
) {
789 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
792 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
793 return defaultService
.removeTreeNode(treeNode
);
802 * @param propertyPaths
804 * @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)
807 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
808 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
814 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
817 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
822 * @param transientObjects
824 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
827 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
833 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
836 public List
<TaxonNode
> getAllNodes() {
837 return defaultService
.getAllNodes();
841 * @param transientObject
843 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
846 public UUID
update(Classification transientObject
) {
847 return defaultService
.update(transientObject
);
852 * @param includeProperties
856 * @param propertyPaths
858 * @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)
861 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
862 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
867 * @param matchStrategy
868 * @param mergeStrategy
870 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
873 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
874 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
885 * @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)
888 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
889 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
893 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
896 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
897 Integer pageIndex
, List
<String
> propertyPaths
) {
898 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
902 public DeleteResult
isDeletable(Classification object
,
903 DeleteConfiguratorBase config
) {
905 return defaultService
.isDeletable(object
, config
);
909 public Classification
findWithoutFlush(UUID uuid
) {
910 return defaultService
.findWithoutFlush(uuid
);
915 public <S
extends Classification
> Pager
<FindByIdentifierDTO
<S
>> findByIdentifier(Class
<S
> clazz
, String identifier
, DefinedTerm identifierType
, MatchMode matchmode
, boolean includeEntity
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
){
916 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);
920 public UpdateResult
createHierarchyInClassification(Classification arg1
, CreateHierarchyForClassificationConfigurator arg2
) {
921 return defaultService
.createHierarchyInClassification(arg1
, arg2
);
925 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.UUID)
928 public DeleteResult
delete(UUID arg0
) {
929 return defaultService
.delete(arg0
);
933 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.Collection)
936 public DeleteResult
delete(Collection
<UUID
> arg0
) {
937 return defaultService
.delete(arg0
);
941 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List)
944 public List
<Classification
> merge(List
<Classification
> arg0
) {
945 return defaultService
.merge(arg0
);
949 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List, boolean)
952 public List
<MergeResult
<Classification
>> merge(List
<Classification
> arg0
, boolean arg1
) {
953 return defaultService
.merge(arg0
, arg1
);
957 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase, boolean)
960 public MergeResult
<Classification
> merge(Classification arg0
, boolean arg1
) {
961 return defaultService
.merge(arg0
, arg1
);
965 * @see eu.etaxonomy.cdm.api.service.IService#loadWithUpdate(java.util.UUID)
968 public Classification
loadWithUpdate(UUID arg0
) {
969 return defaultService
.loadWithUpdate(arg0
);
974 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
975 UUID classificationUuid
, List
<UUID
> excludeTaxa
) {
977 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
, excludeTaxa
);
984 public List
<Classification
> load(List
<UUID
> arg0
, List
<String
> arg1
) {
985 return defaultService
.load(arg0
, arg1
);
989 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache(Integer limit
, String pattern
) {
990 return defaultService
.getUuidAndTitleCache(null, null);
994 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
995 UUID classificationUuid
, Integer limit
,
997 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
, limit
, pattern
);
1001 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1002 Classification classification
,
1003 Integer limit
, String pattern
) {
1004 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, limit
, pattern
);
1008 public List
<TaxonNode
> listSiblingsOfTaxon(UUID taxonUuid
,
1009 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
1010 List
<String
> propertyPaths
) {
1012 return defaultService
.listSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
1016 public Pager
<TaxonNode
> pageSiblingsOfTaxon(UUID taxonUuid
,
1017 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
1018 List
<String
> propertyPaths
) {
1019 return defaultService
.pageSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
1023 public List
<Classification
> loadByIds(List
<Integer
> idSet
, List
<String
> propertyPaths
) {
1025 return defaultService
.loadByIds(idSet
, propertyPaths
);
1029 public ClassificationLookupDTO
classificationLookup(Classification arg0
) {
1031 return defaultService
.classificationLookup(arg0
);
1035 public DeleteResult
delete(UUID arg0
, TaxonDeletionConfigurator arg1
) {
1037 return defaultService
.delete(arg0
, arg1
);
1041 public List
<GroupedTaxonDTO
> groupTaxaByHigherTaxon(List
<UUID
> taxonUuids
,
1042 UUID classificationUuid
, Rank minRank
, Rank maxRank
) {
1043 return defaultService
.groupTaxaByHigherTaxon(taxonUuids
, classificationUuid
, minRank
, maxRank
);
1047 public TaxonNode
getRootNode(UUID arg0
) {
1048 return defaultService
.getRootNode(arg0
);