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
.UuidAndTitleCache
;
50 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
51 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
52 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
53 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
54 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
55 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
62 public class TransientClassificationService
implements IClassificationService
{
64 private final IClassificationService defaultService
;
67 * @param defaultClassificationService
69 public TransientClassificationService(IClassificationService defaultClassificationService
) {
70 this.defaultService
= defaultClassificationService
;
78 * @param propertyPaths
80 * @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)
83 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
84 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
93 * @param propertyPaths
95 * @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)
98 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
99 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
105 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
108 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
109 return defaultService
.getTaxonNodeByUuid(uuid
);
115 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
118 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
119 return defaultService
.getTreeNodeByUuid(uuid
);
124 * @see eu.etaxonomy.cdm.api.service.IService#clear()
127 public void clear() {
128 defaultService
.clear();
135 * @param propertyPaths
137 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
140 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
141 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
147 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
150 public void lock(Classification t
, LockOptions lockOptions
) {
151 defaultService
.lock(t
, lockOptions
);
157 * @param propertyPaths
158 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
161 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
162 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
167 * @param classificationUuid
168 * @param propertyPaths
171 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
175 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
176 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
181 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
184 public void updateTitleCache() {
185 defaultService
.updateTitleCache();
191 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
194 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
195 return defaultService
.getNextAuditEvent(t
);
199 * @param annotatableEntity
204 * @param propertyPaths
206 * @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)
209 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
210 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
216 * @param cacheStrategy
218 * @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)
221 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
222 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
227 * @param propertyPaths
230 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
234 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
235 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
241 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
244 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
245 return defaultService
.getPreviousAuditEvent(t
);
251 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
254 public int count(Class
<?
extends Classification
> clazz
) {
255 return defaultService
.count(clazz
);
266 * @param propertyPaths
268 * @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)
271 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
) {
272 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
278 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
281 public Classification
find(LSID lsid
) {
282 return defaultService
.find(lsid
);
286 * @param persistentObject
288 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
291 public DeleteResult
delete(Classification persistentObject
) {
292 return defaultService
.delete(persistentObject
);
300 * @param propertyPaths
302 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
305 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
306 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
312 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
315 public boolean exists(UUID uuid
) {
316 return defaultService
.exists(uuid
);
323 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
326 public Classification
replace(Classification x
, Classification y
) {
327 return defaultService
.replace(x
, y
);
333 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
336 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
337 return defaultService
.find(uuidSet
);
344 * @param propertyPaths
346 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
349 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
350 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
354 * @param classification
358 * @param propertyPaths
360 * @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)
363 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
364 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
370 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
373 public Classification
find(UUID uuid
) {
374 return defaultService
.find(uuid
);
380 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
383 public Classification
find(int id
) {
384 return defaultService
.find(id
);
391 * @param propertyPaths
393 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
396 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
397 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
404 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
407 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
408 return defaultService
.countMarkers(clazz
, technical
);
414 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
417 public List
<Classification
> findById(Set
<Integer
> idSet
) {
418 return defaultService
.findById(idSet
);
426 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
429 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
430 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
434 * @param classification
438 * @param propertyPaths
440 * @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)
443 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
444 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
449 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
452 public Session
getSession() {
453 return defaultService
.getSession();
458 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
461 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
462 return defaultService
.getUuidAndTitleCache();
470 * @param propertyPaths
472 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
475 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
476 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
487 * @param propertyPaths
489 * @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)
492 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
) {
493 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
499 * @param propertyPaths
501 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
504 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
505 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
513 * @param propertyPaths
515 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
518 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
519 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
524 * @param classification
526 * @param propertyPaths
528 * @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)
531 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
532 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
536 * @param configurator
538 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
541 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
542 return defaultService
.findByTitle(configurator
);
551 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
554 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
555 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
561 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
564 public Classification
load(UUID uuid
) {
565 return defaultService
.load(uuid
);
570 * @param propertyPaths
572 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
575 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
576 return defaultService
.load(uuid
, propertyPaths
);
580 * @param configurator
582 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
585 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
586 return defaultService
.countByTitle(configurator
);
590 * @param transientObject
592 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
595 public Classification
merge(Classification transientObject
) {
596 return defaultService
.merge(transientObject
);
607 * @param propertyPaths
609 * @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)
612 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
) {
613 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
621 * @param propertyPaths
623 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
626 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
627 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
632 * @param propertyPaths
635 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
639 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
640 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
644 * @param classification
646 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
649 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
650 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
656 * @param propertyPaths
659 * @param widthOrDuration
663 * @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[])
667 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
668 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
672 * @param persistentObject
674 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
677 public UUID
refresh(Classification persistentObject
) {
678 return defaultService
.refresh(persistentObject
);
689 * @param propertyPaths
691 * @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)
694 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
) {
695 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
700 * @param propertyPaths
703 * @param widthOrDuration
706 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
709 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
710 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
718 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
721 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
722 return defaultService
.rows(tableName
, limit
, start
);
726 * @param newInstances
728 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
731 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
739 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
743 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
744 return defaultService
.removeTaxonNode(taxonNode
);
751 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
755 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
762 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
765 public Classification
save(Classification newInstance
) {
770 * @param taxonNodeCollection
773 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
777 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
782 * @param transientObject
784 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
787 public UUID
saveOrUpdate(Classification transientObject
) {
794 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
797 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
798 return defaultService
.removeTreeNode(treeNode
);
807 * @param propertyPaths
809 * @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)
812 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
813 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
819 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
822 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
827 * @param transientObjects
829 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
832 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
838 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
841 public List
<TaxonNode
> getAllNodes() {
842 return defaultService
.getAllNodes();
846 * @param transientObject
848 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
851 public UUID
update(Classification transientObject
) {
852 return defaultService
.update(transientObject
);
857 * @param includeProperties
861 * @param propertyPaths
863 * @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)
866 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
867 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
872 * @param matchStrategy
873 * @param mergeStrategy
875 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
878 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
879 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
890 * @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)
893 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
894 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
898 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
901 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
902 Integer pageIndex
, List
<String
> propertyPaths
) {
903 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
907 public DeleteResult
isDeletable(Classification object
,
908 DeleteConfiguratorBase config
) {
909 // TODO Auto-generated method stub
914 public Classification
findWithoutFlush(UUID uuid
) {
915 return defaultService
.findWithoutFlush(uuid
);
920 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
){
921 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);
925 public UpdateResult
createHierarchyInClassification(Classification arg1
, CreateHierarchyForClassificationConfigurator arg2
) {
926 return defaultService
.createHierarchyInClassification(arg1
, arg2
);
930 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.UUID)
933 public DeleteResult
delete(UUID arg0
) {
934 return defaultService
.delete(arg0
);
938 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.Collection)
941 public DeleteResult
delete(Collection
<UUID
> arg0
) {
942 return defaultService
.delete(arg0
);
946 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List)
949 public List
<Classification
> merge(List
<Classification
> arg0
) {
950 return defaultService
.merge(arg0
);