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
.config
.DeleteConfiguratorBase
;
26 import eu
.etaxonomy
.cdm
.api
.service
.config
.IIdentifiableEntityServiceConfigurator
;
27 import eu
.etaxonomy
.cdm
.api
.service
.pager
.Pager
;
28 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
29 import eu
.etaxonomy
.cdm
.model
.common
.Annotation
;
30 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
31 import eu
.etaxonomy
.cdm
.model
.common
.ISourceable
;
32 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableSource
;
33 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
34 import eu
.etaxonomy
.cdm
.model
.common
.Marker
;
35 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
36 import eu
.etaxonomy
.cdm
.model
.common
.UuidAndTitleCache
;
37 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
38 import eu
.etaxonomy
.cdm
.model
.media
.Rights
;
39 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
40 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
41 import eu
.etaxonomy
.cdm
.model
.taxon
.ITaxonTreeNode
;
42 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
43 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
44 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
45 import eu
.etaxonomy
.cdm
.model
.view
.AuditEventRecord
;
46 import eu
.etaxonomy
.cdm
.persistence
.dao
.common
.AuditEventSort
;
47 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
48 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
49 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
50 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
51 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
52 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
59 public class TransientClassificationService
implements IClassificationService
{
61 private final IClassificationService defaultService
;
64 * @param defaultClassificationService
66 public TransientClassificationService(IClassificationService defaultClassificationService
) {
67 this.defaultService
= defaultClassificationService
;
75 * @param propertyPaths
77 * @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)
80 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
81 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
90 * @param propertyPaths
92 * @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)
95 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
96 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
102 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
105 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
106 return defaultService
.getTaxonNodeByUuid(uuid
);
112 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
115 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
116 return defaultService
.getTreeNodeByUuid(uuid
);
121 * @see eu.etaxonomy.cdm.api.service.IService#clear()
124 public void clear() {
125 defaultService
.clear();
132 * @param propertyPaths
134 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
137 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
138 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
144 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
147 public void lock(Classification t
, LockOptions lockOptions
) {
148 defaultService
.lock(t
, lockOptions
);
154 * @param propertyPaths
155 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
158 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
159 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
164 * @param classificationUuid
165 * @param propertyPaths
168 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
172 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
173 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
178 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
181 public void updateTitleCache() {
182 defaultService
.updateTitleCache();
188 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
191 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
192 return defaultService
.getNextAuditEvent(t
);
196 * @param annotatableEntity
201 * @param propertyPaths
203 * @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)
206 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
207 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
213 * @param cacheStrategy
215 * @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)
218 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
219 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
224 * @param propertyPaths
227 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
231 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
232 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
238 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
241 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
242 return defaultService
.getPreviousAuditEvent(t
);
246 * @param classification
250 * @param propertyPaths
253 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadRankSpecificRootNodes(eu.etaxonomy.cdm.model.taxon.Classification, eu.etaxonomy.cdm.model.name.Rank, java.lang.Integer, java.lang.Integer, java.util.List)
257 public List
<TaxonNode
> loadRankSpecificRootNodes(Classification classification
, Rank rank
, Integer limit
, Integer start
, List
<String
> propertyPaths
) {
258 return defaultService
.loadRankSpecificRootNodes(classification
, rank
, limit
, start
, propertyPaths
);
264 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
267 public int count(Class
<?
extends Classification
> clazz
) {
268 return defaultService
.count(clazz
);
279 * @param propertyPaths
281 * @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)
284 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
) {
285 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
291 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
294 public Classification
find(LSID lsid
) {
295 return defaultService
.find(lsid
);
299 * @param persistentObject
301 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
304 public DeleteResult
delete(Classification persistentObject
) {
305 return defaultService
.delete(persistentObject
);
313 * @param propertyPaths
315 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
318 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
319 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
325 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
328 public boolean exists(UUID uuid
) {
329 return defaultService
.exists(uuid
);
336 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
339 public Classification
replace(Classification x
, Classification y
) {
340 return defaultService
.replace(x
, y
);
346 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
349 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
350 return defaultService
.find(uuidSet
);
357 * @param propertyPaths
359 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
362 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
363 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
367 * @param classification
371 * @param propertyPaths
373 * @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)
376 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
377 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
383 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
386 public Classification
find(UUID uuid
) {
387 return defaultService
.find(uuid
);
393 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
396 public Classification
find(int id
) {
397 return defaultService
.find(id
);
404 * @param propertyPaths
406 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
409 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
410 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
417 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
420 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
421 return defaultService
.countMarkers(clazz
, technical
);
427 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
430 public List
<Classification
> findById(Set
<Integer
> idSet
) {
431 return defaultService
.findById(idSet
);
439 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
442 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
443 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
447 * @param classification
451 * @param propertyPaths
453 * @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)
456 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
457 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
462 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
465 public Session
getSession() {
466 return defaultService
.getSession();
471 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
474 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
475 return defaultService
.getUuidAndTitleCache();
483 * @param propertyPaths
485 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
488 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
489 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
500 * @param propertyPaths
502 * @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)
505 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
) {
506 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
512 * @param propertyPaths
514 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
517 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
518 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
526 * @param propertyPaths
528 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
531 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
532 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
537 * @param classification
539 * @param propertyPaths
541 * @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)
544 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
545 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
549 * @param configurator
551 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
554 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
555 return defaultService
.findByTitle(configurator
);
564 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
567 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
568 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
574 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
577 public Classification
load(UUID uuid
) {
578 return defaultService
.load(uuid
);
583 * @param propertyPaths
585 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
588 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
589 return defaultService
.load(uuid
, propertyPaths
);
593 * @param configurator
595 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
598 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
599 return defaultService
.countByTitle(configurator
);
603 * @param transientObject
605 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
608 public Classification
merge(Classification transientObject
) {
609 return defaultService
.merge(transientObject
);
620 * @param propertyPaths
622 * @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)
625 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
) {
626 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
634 * @param propertyPaths
636 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
639 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
640 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
645 * @param propertyPaths
648 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
652 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
653 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
657 * @param classification
659 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
662 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
) {
663 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
);
669 * @param propertyPaths
672 * @param widthOrDuration
676 * @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[])
680 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
681 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
685 * @param persistentObject
687 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
690 public UUID
refresh(Classification persistentObject
) {
691 return defaultService
.refresh(persistentObject
);
702 * @param propertyPaths
704 * @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)
707 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
) {
708 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
713 * @param propertyPaths
716 * @param widthOrDuration
719 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
722 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
723 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
731 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
734 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
735 return defaultService
.rows(tableName
, limit
, start
);
739 * @param newInstances
741 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
744 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
752 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
756 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
757 return defaultService
.removeTaxonNode(taxonNode
);
764 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
768 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
775 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
778 public UUID
save(Classification newInstance
) {
783 * @param taxonNodeCollection
786 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
790 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
795 * @param transientObject
797 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
800 public UUID
saveOrUpdate(Classification transientObject
) {
807 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
810 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
811 return defaultService
.removeTreeNode(treeNode
);
820 * @param propertyPaths
822 * @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)
825 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
826 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
832 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
835 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
840 * @param transientObjects
842 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
845 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
851 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
854 public List
<TaxonNode
> getAllNodes() {
855 return defaultService
.getAllNodes();
859 * @param transientObject
861 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
864 public UUID
update(Classification transientObject
) {
865 return defaultService
.update(transientObject
);
870 * @param includeProperties
874 * @param propertyPaths
876 * @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)
879 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
880 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
885 * @param matchStrategy
886 * @param mergeStrategy
888 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
891 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
892 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
903 * @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)
906 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
907 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
911 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
914 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
915 Integer pageIndex
, List
<String
> propertyPaths
) {
916 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
920 public DeleteResult
isDeletable(Classification object
,
921 DeleteConfiguratorBase config
) {
922 // TODO Auto-generated method stub
927 public Classification
findWithoutFlush(UUID uuid
) {
928 return defaultService
.findWithoutFlush(uuid
);
932 public <S
extends Classification
> List
<S
> listByIdentifier(Class
<S
> clazz
, String identifier
, DefinedTerm identifierType
, MatchMode matchmode
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
){
933 return defaultService
.listByIdentifier(clazz
, identifier
, identifierType
, matchmode
, pageSize
, pageNumber
, orderHints
, propertyPaths
);