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
.dto
.FindByIdentifierDTO
;
30 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
31 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
32 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
33 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
34 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
35 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
36 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
37 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
38 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
39 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
40 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
41 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
42 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
43 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
44 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
45 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
46 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
47 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
48 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
49 import eu
.etaxonomy
.cdm
.persistence
.dto
.ClassificationLookupDTO
;
50 import eu
.etaxonomy
.cdm
.persistence
.dto
.MergeResult
;
51 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
52 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
53 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
54 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
55 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
56 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
57 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
64 public class TransientClassificationService
implements IClassificationService
{
66 private final IClassificationService defaultService
;
69 * @param defaultClassificationService
71 public TransientClassificationService(IClassificationService defaultClassificationService
) {
72 this.defaultService
= defaultClassificationService
;
80 * @param propertyPaths
82 * @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)
85 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
86 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
95 * @param propertyPaths
97 * @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)
100 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
101 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
107 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
110 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
111 return defaultService
.getTaxonNodeByUuid(uuid
);
117 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
120 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
121 return defaultService
.getTreeNodeByUuid(uuid
);
126 * @see eu.etaxonomy.cdm.api.service.IService#clear()
129 public void clear() {
130 defaultService
.clear();
137 * @param propertyPaths
139 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
142 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
143 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
149 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
152 public void lock(Classification t
, LockOptions lockOptions
) {
153 defaultService
.lock(t
, lockOptions
);
159 * @param propertyPaths
160 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
163 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
164 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
169 * @param classificationUuid
170 * @param propertyPaths
173 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
177 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
178 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
183 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
186 public void updateTitleCache() {
187 defaultService
.updateTitleCache();
193 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
196 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
197 return defaultService
.getNextAuditEvent(t
);
201 * @param annotatableEntity
206 * @param propertyPaths
208 * @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)
211 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
212 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
218 * @param cacheStrategy
220 * @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)
223 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
224 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
229 * @param propertyPaths
232 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
236 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
237 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
243 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
246 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
247 return defaultService
.getPreviousAuditEvent(t
);
253 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
256 public int count(Class
<?
extends Classification
> clazz
) {
257 return defaultService
.count(clazz
);
268 * @param propertyPaths
270 * @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)
273 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
) {
274 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
280 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
283 public Classification
find(LSID lsid
) {
284 return defaultService
.find(lsid
);
288 * @param persistentObject
290 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
293 public DeleteResult
delete(Classification persistentObject
) {
294 return defaultService
.delete(persistentObject
);
302 * @param propertyPaths
304 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
307 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
308 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
314 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
317 public boolean exists(UUID uuid
) {
318 return defaultService
.exists(uuid
);
325 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
328 public Classification
replace(Classification x
, Classification y
) {
329 return defaultService
.replace(x
, y
);
335 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
338 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
339 return defaultService
.find(uuidSet
);
346 * @param propertyPaths
348 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
351 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
352 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
356 * @param classification
360 * @param propertyPaths
362 * @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)
365 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
366 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
372 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
375 public Classification
find(UUID uuid
) {
376 return defaultService
.find(uuid
);
382 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
385 public Classification
find(int id
) {
386 return defaultService
.find(id
);
393 * @param propertyPaths
395 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
398 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
399 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
406 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
409 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
410 return defaultService
.countMarkers(clazz
, technical
);
416 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
419 public List
<Classification
> findById(Set
<Integer
> idSet
) {
420 return defaultService
.findById(idSet
);
428 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
431 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
432 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
436 * @param classification
440 * @param propertyPaths
442 * @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)
445 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
446 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
451 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
454 public Session
getSession() {
455 return defaultService
.getSession();
463 * @param propertyPaths
465 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
468 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
469 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
480 * @param propertyPaths
482 * @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)
485 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
) {
486 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
492 * @param propertyPaths
494 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
497 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
498 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
506 * @param propertyPaths
508 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
511 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
512 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
517 * @param classification
519 * @param propertyPaths
521 * @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)
524 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
525 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
529 * @param configurator
531 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
534 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
535 return defaultService
.findByTitle(configurator
);
544 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
547 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
548 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
554 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
557 public Classification
load(UUID uuid
) {
558 return defaultService
.load(uuid
);
563 * @param propertyPaths
565 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
568 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
569 return defaultService
.load(uuid
, propertyPaths
);
573 * @param configurator
575 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
578 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
579 return defaultService
.countByTitle(configurator
);
583 * @param transientObject
585 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
588 public Classification
merge(Classification transientObject
) {
589 return defaultService
.merge(transientObject
);
600 * @param propertyPaths
602 * @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)
605 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
) {
606 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
614 * @param propertyPaths
616 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
619 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
620 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
625 * @param propertyPaths
628 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
632 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
633 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
637 * @param classification
639 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
642 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
, List
<UUID
> excludeTaxa
) {
643 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, excludeTaxa
);
649 * @param propertyPaths
652 * @param widthOrDuration
656 * @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[])
660 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
661 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
665 * @param persistentObject
667 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
670 public UUID
refresh(Classification persistentObject
) {
671 return defaultService
.refresh(persistentObject
);
682 * @param propertyPaths
684 * @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)
687 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
) {
688 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
693 * @param propertyPaths
696 * @param widthOrDuration
699 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
702 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
703 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
711 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
714 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
715 return defaultService
.rows(tableName
, limit
, start
);
719 * @param newInstances
721 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
724 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
732 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
736 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
737 return defaultService
.removeTaxonNode(taxonNode
);
744 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
748 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
755 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
758 public Classification
save(Classification newInstance
) {
763 * @param taxonNodeCollection
766 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
770 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
775 * @param transientObject
777 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
780 public UUID
saveOrUpdate(Classification transientObject
) {
787 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
790 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
791 return defaultService
.removeTreeNode(treeNode
);
800 * @param propertyPaths
802 * @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)
805 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
806 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
812 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
815 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
820 * @param transientObjects
822 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
825 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
831 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
834 public List
<TaxonNode
> getAllNodes() {
835 return defaultService
.getAllNodes();
839 * @param transientObject
841 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
844 public UUID
update(Classification transientObject
) {
845 return defaultService
.update(transientObject
);
850 * @param includeProperties
854 * @param propertyPaths
856 * @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)
859 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
860 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
865 * @param matchStrategy
866 * @param mergeStrategy
868 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
871 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
872 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
883 * @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)
886 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
887 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
891 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
894 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
895 Integer pageIndex
, List
<String
> propertyPaths
) {
896 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
900 public DeleteResult
isDeletable(Classification object
,
901 DeleteConfiguratorBase config
) {
902 // TODO Auto-generated method stub
907 public Classification
findWithoutFlush(UUID uuid
) {
908 return defaultService
.findWithoutFlush(uuid
);
913 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
){
914 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);
918 public UpdateResult
createHierarchyInClassification(Classification arg1
, CreateHierarchyForClassificationConfigurator arg2
) {
919 return defaultService
.createHierarchyInClassification(arg1
, arg2
);
923 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.UUID)
926 public DeleteResult
delete(UUID arg0
) {
927 return defaultService
.delete(arg0
);
931 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.Collection)
934 public DeleteResult
delete(Collection
<UUID
> arg0
) {
935 return defaultService
.delete(arg0
);
939 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List)
942 public List
<Classification
> merge(List
<Classification
> arg0
) {
943 return defaultService
.merge(arg0
);
947 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List, boolean)
950 public List
<MergeResult
<Classification
>> merge(List
<Classification
> arg0
, boolean arg1
) {
951 return defaultService
.merge(arg0
, arg1
);
955 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase, boolean)
958 public MergeResult
<Classification
> merge(Classification arg0
, boolean arg1
) {
959 return defaultService
.merge(arg0
, arg1
);
963 * @see eu.etaxonomy.cdm.api.service.IService#loadWithUpdate(java.util.UUID)
966 public Classification
loadWithUpdate(UUID arg0
) {
967 return defaultService
.loadWithUpdate(arg0
);
972 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
973 UUID classificationUuid
, List
<UUID
> excludeTaxa
) {
975 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
, excludeTaxa
);
982 public List
<Classification
> load(List
<UUID
> arg0
, List
<String
> arg1
) {
983 return defaultService
.load(arg0
, arg1
);
987 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache(Integer limit
, String pattern
) {
988 return defaultService
.getUuidAndTitleCache(null, null);
992 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
993 UUID classificationUuid
, List
<UUID
> excludeTaxa
, Integer limit
,
995 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classificationUuid
, excludeTaxa
, limit
, pattern
);
999 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(
1000 Classification classification
, List
<UUID
> excludeTaxa
,
1001 Integer limit
, String pattern
) {
1002 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, excludeTaxa
, limit
, pattern
);
1006 public List
<TaxonNode
> listSiblingsOfTaxon(UUID taxonUuid
,
1007 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
1008 List
<String
> propertyPaths
) {
1010 return defaultService
.listSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
1014 public Pager
<TaxonNode
> pageSiblingsOfTaxon(UUID taxonUuid
,
1015 UUID classificationUuid
, Integer pageSize
, Integer pageIndex
,
1016 List
<String
> propertyPaths
) {
1017 return defaultService
.pageSiblingsOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
1021 public List
<Classification
> loadByIds(List
<Integer
> idSet
, List
<String
> propertyPaths
) {
1023 return defaultService
.loadByIds(idSet
, propertyPaths
);
1027 public ClassificationLookupDTO
classificationLookup(Classification arg0
) {
1029 return defaultService
.classificationLookup(arg0
);