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
.FindByMarkerDTO
;
32 import eu
.etaxonomy
.cdm
.api
.service
.dto
.GroupedTaxonDTO
;
33 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
34 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
35 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
36 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
37 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
38 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
39 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
40 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
41 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
42 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
43 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
44 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
45 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
46 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
47 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
48 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
49 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
50 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
51 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
52 import eu
.etaxonomy
.cdm
.persistence
.dto
.ClassificationLookupDTO
;
53 import eu
.etaxonomy
.cdm
.persistence
.dto
.MergeResult
;
54 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
55 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
56 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
57 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
58 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
59 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
60 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
67 public class TransientClassificationService
implements IClassificationService
{
69 private final IClassificationService defaultService
;
72 * @param defaultClassificationService
74 public TransientClassificationService(IClassificationService defaultClassificationService
) {
75 this.defaultService
= defaultClassificationService
;
83 * @param propertyPaths
85 * @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)
88 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
89 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
98 * @param propertyPaths
100 * @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)
103 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
104 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
110 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
113 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
114 return defaultService
.getTaxonNodeByUuid(uuid
);
120 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
123 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
124 return defaultService
.getTreeNodeByUuid(uuid
);
129 * @see eu.etaxonomy.cdm.api.service.IService#clear()
132 public void clear() {
133 defaultService
.clear();
140 * @param propertyPaths
142 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
145 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
146 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
152 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
155 public void lock(Classification t
, LockOptions lockOptions
) {
156 defaultService
.lock(t
, lockOptions
);
162 * @param propertyPaths
163 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
166 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
167 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
172 * @param classificationUuid
173 * @param propertyPaths
176 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
180 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
181 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
186 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
189 public void updateTitleCache() {
190 defaultService
.updateTitleCache();
196 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
199 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
200 return defaultService
.getNextAuditEvent(t
);
204 * @param annotatableEntity
209 * @param propertyPaths
211 * @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)
214 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
215 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
221 * @param cacheStrategy
223 * @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)
226 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
227 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
232 * @param propertyPaths
235 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
239 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
240 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
246 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
249 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
250 return defaultService
.getPreviousAuditEvent(t
);
256 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
259 public int count(Class
<?
extends Classification
> clazz
) {
260 return defaultService
.count(clazz
);
271 * @param propertyPaths
273 * @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)
276 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
) {
277 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
283 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
286 public Classification
find(LSID lsid
) {
287 return defaultService
.find(lsid
);
291 * @param persistentObject
293 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
296 public DeleteResult
delete(Classification persistentObject
) {
297 return defaultService
.delete(persistentObject
);
305 * @param propertyPaths
307 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
310 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
311 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
317 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
320 public boolean exists(UUID uuid
) {
321 return defaultService
.exists(uuid
);
328 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
331 public Classification
replace(Classification x
, Classification y
) {
332 return defaultService
.replace(x
, y
);
338 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
341 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
342 return defaultService
.find(uuidSet
);
349 * @param propertyPaths
351 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
354 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
355 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
359 * @param classification
363 * @param propertyPaths
365 * @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)
368 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
369 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
375 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
378 public Classification
find(UUID uuid
) {
379 return defaultService
.find(uuid
);
385 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
388 public Classification
find(int id
) {
389 return defaultService
.find(id
);
396 * @param propertyPaths
398 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
401 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
402 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
409 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
412 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
413 return defaultService
.countMarkers(clazz
, technical
);
419 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
422 public List
<Classification
> findById(Set
<Integer
> idSet
) {
423 return defaultService
.findById(idSet
);
431 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
434 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
435 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
439 * @param classification
443 * @param propertyPaths
445 * @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)
448 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
449 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
454 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
457 public Session
getSession() {
458 return defaultService
.getSession();
466 * @param propertyPaths
468 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
471 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
472 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
483 * @param propertyPaths
485 * @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)
488 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
) {
489 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
495 * @param propertyPaths
497 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
500 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
501 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
509 * @param propertyPaths
511 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
514 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
515 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
520 * @param classification
522 * @param propertyPaths
524 * @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)
527 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
528 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
532 * @param configurator
534 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
537 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
538 return defaultService
.findByTitle(configurator
);
547 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
550 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
551 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
557 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
560 public Classification
load(UUID uuid
) {
561 return defaultService
.load(uuid
);
566 * @param propertyPaths
568 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
571 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
572 return defaultService
.load(uuid
, propertyPaths
);
576 * @param configurator
578 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
581 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
582 return defaultService
.countByTitle(configurator
);
586 * @param transientObject
588 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
591 public Classification
merge(Classification transientObject
) {
592 return defaultService
.merge(transientObject
);
603 * @param propertyPaths
605 * @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)
608 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
) {
609 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
617 * @param propertyPaths
619 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
622 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
623 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
628 * @param propertyPaths
631 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
635 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
636 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
643 * @param propertyPaths
646 * @param widthOrDuration
650 * @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[])
654 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
655 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
659 * @param persistentObject
661 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
664 public UUID
refresh(Classification persistentObject
) {
665 return defaultService
.refresh(persistentObject
);
676 * @param propertyPaths
678 * @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)
681 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
) {
682 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
687 * @param propertyPaths
690 * @param widthOrDuration
693 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
696 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
697 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
705 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
708 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
709 return defaultService
.rows(tableName
, limit
, start
);
713 * @param newInstances
715 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
718 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
726 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
730 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
731 return defaultService
.removeTaxonNode(taxonNode
);
738 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
742 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
749 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
752 public Classification
save(Classification newInstance
) {
757 * @param taxonNodeCollection
760 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
764 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
769 * @param transientObject
771 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
774 public UUID
saveOrUpdate(Classification transientObject
) {
781 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
784 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
785 return defaultService
.removeTreeNode(treeNode
);
794 * @param propertyPaths
796 * @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)
799 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
800 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
806 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
809 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
814 * @param transientObjects
816 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
819 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
825 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
828 public List
<TaxonNode
> getAllNodes() {
829 return defaultService
.getAllNodes();
833 * @param transientObject
835 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
838 public UUID
update(Classification transientObject
) {
839 return defaultService
.update(transientObject
);
844 * @param includeProperties
848 * @param propertyPaths
850 * @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)
853 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
854 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
859 * @param matchStrategy
860 * @param mergeStrategy
862 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
865 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
866 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
877 * @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)
880 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
881 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
885 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
888 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
889 Integer pageIndex
, List
<String
> propertyPaths
) {
890 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
894 public DeleteResult
isDeletable(Classification object
,
895 DeleteConfiguratorBase config
) {
897 return defaultService
.isDeletable(object
, config
);
901 public Classification
findWithoutFlush(UUID uuid
) {
902 return defaultService
.findWithoutFlush(uuid
);
907 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
){
908 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);
912 public UpdateResult
createHierarchyInClassification(Classification arg1
, CreateHierarchyForClassificationConfigurator arg2
) {
913 return defaultService
.createHierarchyInClassification(arg1
, arg2
);
917 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.UUID)
920 public DeleteResult
delete(UUID arg0
) {
921 return defaultService
.delete(arg0
);
925 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.Collection)
928 public DeleteResult
delete(Collection
<UUID
> arg0
) {
929 return defaultService
.delete(arg0
);
933 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List)
936 public List
<Classification
> merge(List
<Classification
> arg0
) {
937 return defaultService
.merge(arg0
);
941 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List, boolean)
944 public List
<MergeResult
<Classification
>> merge(List
<Classification
> arg0
, boolean arg1
) {
945 return defaultService
.merge(arg0
, arg1
);
949 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase, boolean)
952 public MergeResult
<Classification
> merge(Classification arg0
, boolean arg1
) {
953 return defaultService
.merge(arg0
, arg1
);
957 * @see eu.etaxonomy.cdm.api.service.IService#loadWithUpdate(java.util.UUID)
960 public Classification
loadWithUpdate(UUID arg0
) {
961 return defaultService
.loadWithUpdate(arg0
);
966 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
967 UUID classificationUuid
) {
969 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
);
976 public List
<Classification
> load(List
<UUID
> arg0
, List
<String
> arg1
) {
977 return defaultService
.load(arg0
, arg1
);
981 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache(Integer limit
, String pattern
) {
982 return defaultService
.getUuidAndTitleCache(null, null);
986 public List
<TaxonNode
> listSiblingsOfTaxon(UUID taxonUuid
,
987 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
988 List
<String
> propertyPaths
) {
990 return defaultService
.listSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
994 public Pager
<TaxonNode
> pageSiblingsOfTaxon(UUID taxonUuid
,
995 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
996 List
<String
> propertyPaths
) {
997 return defaultService
.pageSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
1001 public List
<Classification
> loadByIds(List
<Integer
> idSet
, List
<String
> propertyPaths
) {
1003 return defaultService
.loadByIds(idSet
, propertyPaths
);
1007 public ClassificationLookupDTO
classificationLookup(Classification arg0
) {
1009 return defaultService
.classificationLookup(arg0
);
1013 public DeleteResult
delete(UUID arg0
, TaxonDeletionConfigurator arg1
) {
1015 return defaultService
.delete(arg0
, arg1
);
1019 public List
<GroupedTaxonDTO
> groupTaxaByHigherTaxon(List
<UUID
> taxonUuids
,
1020 UUID classificationUuid
, Rank minRank
, Rank maxRank
) {
1021 return defaultService
.groupTaxaByHigherTaxon(taxonUuids
, classificationUuid
, minRank
, maxRank
);
1025 public TaxonNode
getRootNode(UUID arg0
) {
1026 return defaultService
.getRootNode(arg0
);
1030 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1031 Classification classification
) {
1032 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
1037 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1038 UUID classificationUuid
, Integer limit
, String pattern
) {
1040 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
, limit
, pattern
);
1044 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1045 Classification classification
, Integer limit
, String pattern
) {
1046 // TODO Auto-generated method stub
1047 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, limit
, pattern
);
1051 public <S
extends Classification
> Pager
<FindByMarkerDTO
<S
>> findByMarker(
1052 Class
<S
> arg0
, MarkerType arg1
, Boolean arg2
, boolean arg3
,
1053 Integer arg4
, Integer arg5
, List
<String
> arg6
) {
1054 // TODO Auto-generated method stub