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
.MergeResult
;
50 import eu
.etaxonomy
.cdm
.persistence
.dto
.UuidAndTitleCache
;
51 import eu
.etaxonomy
.cdm
.persistence
.query
.Grouping
;
52 import eu
.etaxonomy
.cdm
.persistence
.query
.MatchMode
;
53 import eu
.etaxonomy
.cdm
.persistence
.query
.OrderHint
;
54 import eu
.etaxonomy
.cdm
.strategy
.cache
.common
.IIdentifiableEntityCacheStrategy
;
55 import eu
.etaxonomy
.cdm
.strategy
.match
.IMatchStrategy
;
56 import eu
.etaxonomy
.cdm
.strategy
.merge
.IMergeStrategy
;
63 public class TransientClassificationService
implements IClassificationService
{
65 private final IClassificationService defaultService
;
68 * @param defaultClassificationService
70 public TransientClassificationService(IClassificationService defaultClassificationService
) {
71 this.defaultService
= defaultClassificationService
;
79 * @param propertyPaths
81 * @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)
84 public Pager
<AuditEventRecord
<Classification
>> pageAuditEvents(Classification t
, Integer pageSize
, Integer pageNumber
, AuditEventSort sort
, List
<String
> propertyPaths
) {
85 return defaultService
.pageAuditEvents(t
, pageSize
, pageNumber
, sort
, propertyPaths
);
94 * @param propertyPaths
96 * @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)
99 public Pager
<Annotation
> getAnnotations(Classification annotatedObj
, MarkerType status
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
100 return defaultService
.getAnnotations(annotatedObj
, status
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
106 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeByUuid(java.util.UUID)
109 public TaxonNode
getTaxonNodeByUuid(UUID uuid
) {
110 return defaultService
.getTaxonNodeByUuid(uuid
);
116 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTreeNodeByUuid(java.util.UUID)
119 public ITaxonTreeNode
getTreeNodeByUuid(UUID uuid
) {
120 return defaultService
.getTreeNodeByUuid(uuid
);
125 * @see eu.etaxonomy.cdm.api.service.IService#clear()
128 public void clear() {
129 defaultService
.clear();
136 * @param propertyPaths
138 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listClassifications(java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
141 public List
<Classification
> listClassifications(Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
142 return defaultService
.listClassifications(limit
, start
, orderHints
, propertyPaths
);
148 * @see eu.etaxonomy.cdm.api.service.IService#lock(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode)
151 public void lock(Classification t
, LockOptions lockOptions
) {
152 defaultService
.lock(t
, lockOptions
);
158 * @param propertyPaths
159 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase, org.hibernate.LockMode, java.util.List)
162 public void refresh(Classification t
, LockOptions lockOptions
, List
<String
> propertyPaths
) {
163 defaultService
.refresh(t
, lockOptions
, propertyPaths
);
168 * @param classificationUuid
169 * @param propertyPaths
172 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNodeByTaxon(eu.etaxonomy.cdm.model.taxon.Taxon, java.util.UUID, java.util.List)
176 public TaxonNode
loadTaxonNodeByTaxon(Taxon taxon
, UUID classificationUuid
, List
<String
> propertyPaths
) {
177 return defaultService
.loadTaxonNodeByTaxon(taxon
, classificationUuid
, propertyPaths
);
182 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#updateTitleCache()
185 public void updateTitleCache() {
186 defaultService
.updateTitleCache();
192 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getNextAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
195 public AuditEventRecord
<Classification
> getNextAuditEvent(Classification t
) {
196 return defaultService
.getNextAuditEvent(t
);
200 * @param annotatableEntity
205 * @param propertyPaths
207 * @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)
210 public Pager
<Marker
> getMarkers(Classification annotatableEntity
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
211 return defaultService
.getMarkers(annotatableEntity
, technical
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
217 * @param cacheStrategy
219 * @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)
222 public void updateTitleCache(Class
<?
extends Classification
> clazz
, Integer stepSize
, IIdentifiableEntityCacheStrategy
<Classification
> cacheStrategy
, IProgressMonitor monitor
) {
223 defaultService
.updateTitleCache(clazz
, stepSize
, cacheStrategy
, monitor
);
228 * @param propertyPaths
231 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
235 public TaxonNode
loadTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
236 return defaultService
.loadTaxonNode(taxonNode
, propertyPaths
);
242 * @see eu.etaxonomy.cdm.api.service.IVersionableService#getPreviousAuditEvent(eu.etaxonomy.cdm.model.common.VersionableEntity)
245 public AuditEventRecord
<Classification
> getPreviousAuditEvent(Classification t
) {
246 return defaultService
.getPreviousAuditEvent(t
);
252 * @see eu.etaxonomy.cdm.api.service.IService#count(java.lang.Class)
255 public int count(Class
<?
extends Classification
> clazz
) {
256 return defaultService
.count(clazz
);
267 * @param propertyPaths
269 * @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)
272 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
) {
273 return defaultService
.pageAuditEvents(clazz
, from
, to
, criteria
, pageSize
, pageValue
, sort
, propertyPaths
);
279 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#find(eu.etaxonomy.cdm.model.common.LSID)
282 public Classification
find(LSID lsid
) {
283 return defaultService
.find(lsid
);
287 * @param persistentObject
289 * @see eu.etaxonomy.cdm.api.service.IService#delete(eu.etaxonomy.cdm.model.common.ICdmBase)
292 public DeleteResult
delete(Classification persistentObject
) {
293 return defaultService
.delete(persistentObject
);
301 * @param propertyPaths
303 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#groupMarkers(java.lang.Class, java.lang.Boolean, java.lang.Integer, java.lang.Integer, java.util.List)
306 public List
<Object
[]> groupMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
307 return defaultService
.groupMarkers(clazz
, technical
, pageSize
, pageNumber
, propertyPaths
);
313 * @see eu.etaxonomy.cdm.api.service.IService#exists(java.util.UUID)
316 public boolean exists(UUID uuid
) {
317 return defaultService
.exists(uuid
);
324 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#replace(eu.etaxonomy.cdm.model.common.IdentifiableEntity, eu.etaxonomy.cdm.model.common.IdentifiableEntity)
327 public Classification
replace(Classification x
, Classification y
) {
328 return defaultService
.replace(x
, y
);
334 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.Set)
337 public List
<Classification
> find(Set
<UUID
> uuidSet
) {
338 return defaultService
.find(uuidSet
);
345 * @param propertyPaths
347 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSources(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
350 public Pager
<IdentifiableSource
> getSources(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
351 return defaultService
.getSources(t
, pageSize
, pageNumber
, propertyPaths
);
355 * @param classification
359 * @param propertyPaths
361 * @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)
364 public List
<TaxonNode
> listRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
365 return defaultService
.listRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
371 * @see eu.etaxonomy.cdm.api.service.IService#find(java.util.UUID)
374 public Classification
find(UUID uuid
) {
375 return defaultService
.find(uuid
);
381 * @see eu.etaxonomy.cdm.api.service.IService#find(int)
384 public Classification
find(int id
) {
385 return defaultService
.find(id
);
392 * @param propertyPaths
394 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getRights(eu.etaxonomy.cdm.model.common.IdentifiableEntity, java.lang.Integer, java.lang.Integer, java.util.List)
397 public Pager
<Rights
> getRights(Classification t
, Integer pageSize
, Integer pageNumber
, List
<String
> propertyPaths
) {
398 return defaultService
.getRights(t
, pageSize
, pageNumber
, propertyPaths
);
405 * @see eu.etaxonomy.cdm.api.service.IAnnotatableService#countMarkers(java.lang.Class, java.lang.Boolean)
408 public int countMarkers(Class
<?
extends Classification
> clazz
, Boolean technical
) {
409 return defaultService
.countMarkers(clazz
, technical
);
415 * @see eu.etaxonomy.cdm.api.service.IService#findById(java.util.Set)
418 public List
<Classification
> findById(Set
<Integer
> idSet
) {
419 return defaultService
.findById(idSet
);
427 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getSourcedObjectByIdInSource(java.lang.Class, java.lang.String, java.lang.String)
430 public ISourceable
getSourcedObjectByIdInSource(Class clazz
, String idInSource
, String idNamespace
) {
431 return defaultService
.getSourcedObjectByIdInSource(clazz
, idInSource
, idNamespace
);
435 * @param classification
439 * @param propertyPaths
441 * @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)
444 public Pager
<TaxonNode
> pageRankSpecificRootNodes(Classification classification
, Rank rank
, Integer pageSize
, Integer pageIndex
, List
<String
> propertyPaths
) {
445 return defaultService
.pageRankSpecificRootNodes(classification
, rank
, pageSize
, pageIndex
, propertyPaths
);
450 * @see eu.etaxonomy.cdm.api.service.IService#getSession()
453 public Session
getSession() {
454 return defaultService
.getSession();
459 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#getUuidAndTitleCache()
462 public List
<UuidAndTitleCache
<Classification
>> getUuidAndTitleCache() {
463 return defaultService
.getUuidAndTitleCache();
471 * @param propertyPaths
473 * @see eu.etaxonomy.cdm.api.service.IService#group(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
476 public List
<Object
[]> group(Class
<?
extends Classification
> clazz
, Integer limit
, Integer start
, List
<Grouping
> groups
, List
<String
> propertyPaths
) {
477 return defaultService
.group(clazz
, limit
, start
, groups
, propertyPaths
);
488 * @param propertyPaths
490 * @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)
493 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
) {
494 return defaultService
.findByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
500 * @param propertyPaths
502 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadTreeBranch(eu.etaxonomy.cdm.model.taxon.TaxonNode, eu.etaxonomy.cdm.model.name.Rank, java.util.List)
505 public List
<TaxonNode
> loadTreeBranch(TaxonNode taxonNode
, Rank baseRank
, List
<String
> propertyPaths
) {
506 return defaultService
.loadTreeBranch(taxonNode
, baseRank
, propertyPaths
);
514 * @param propertyPaths
516 * @see eu.etaxonomy.cdm.api.service.IService#list(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
519 public <S
extends Classification
> List
<S
> list(Class
<S
> type
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
520 return defaultService
.list(type
, limit
, start
, orderHints
, propertyPaths
);
525 * @param classification
527 * @param propertyPaths
529 * @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)
532 public List
<TaxonNode
> loadTreeBranchToTaxon(Taxon taxon
, Classification classification
, Rank baseRank
, List
<String
> propertyPaths
) {
533 return defaultService
.loadTreeBranchToTaxon(taxon
, classification
, baseRank
, propertyPaths
);
537 * @param configurator
539 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#findByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
542 public Pager
<Classification
> findByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
543 return defaultService
.findByTitle(configurator
);
552 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(java.lang.Class, java.lang.String, eu.etaxonomy.cdm.persistence.query.MatchMode, java.util.List)
555 public Integer
countByTitle(Class
<?
extends Classification
> clazz
, String queryString
, MatchMode matchmode
, List
<Criterion
> criteria
) {
556 return defaultService
.countByTitle(clazz
, queryString
, matchmode
, criteria
);
562 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID)
565 public Classification
load(UUID uuid
) {
566 return defaultService
.load(uuid
);
571 * @param propertyPaths
573 * @see eu.etaxonomy.cdm.api.service.IService#load(java.util.UUID, java.util.List)
576 public Classification
load(UUID uuid
, List
<String
> propertyPaths
) {
577 return defaultService
.load(uuid
, propertyPaths
);
581 * @param configurator
583 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#countByTitle(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
586 public Integer
countByTitle(IIdentifiableEntityServiceConfigurator
<Classification
> configurator
) {
587 return defaultService
.countByTitle(configurator
);
591 * @param transientObject
593 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase)
596 public Classification
merge(Classification transientObject
) {
597 return defaultService
.merge(transientObject
);
608 * @param propertyPaths
610 * @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)
613 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
) {
614 return defaultService
.listByTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
622 * @param propertyPaths
624 * @see eu.etaxonomy.cdm.api.service.IService#page(java.lang.Class, java.lang.Integer, java.lang.Integer, java.util.List, java.util.List)
627 public <S
extends Classification
> Pager
<S
> page(Class
<S
> type
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
628 return defaultService
.page(type
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
633 * @param propertyPaths
636 * @see eu.etaxonomy.cdm.api.service.IClassificationService#loadChildNodesOfTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List)
640 public List
<TaxonNode
> loadChildNodesOfTaxonNode(TaxonNode taxonNode
, List
<String
> propertyPaths
) {
641 return defaultService
.loadChildNodesOfTaxonNode(taxonNode
, propertyPaths
);
645 * @param classification
647 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(eu.etaxonomy.cdm.model.taxon.Classification)
650 public List
<UuidAndTitleCache
<TaxonNode
>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification
, List
<UUID
> excludeTaxa
) {
651 return defaultService
.getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(classification
, excludeTaxa
);
657 * @param propertyPaths
660 * @param widthOrDuration
664 * @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[])
668 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(Taxon taxon
, Classification taxTree
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
669 return defaultService
.getAllMediaForChildNodes(taxon
, taxTree
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
673 * @param persistentObject
675 * @see eu.etaxonomy.cdm.api.service.IService#refresh(eu.etaxonomy.cdm.model.common.ICdmBase)
678 public UUID
refresh(Classification persistentObject
) {
679 return defaultService
.refresh(persistentObject
);
690 * @param propertyPaths
692 * @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)
695 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
) {
696 return defaultService
.listByReferenceTitle(clazz
, queryString
, matchmode
, criteria
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
701 * @param propertyPaths
704 * @param widthOrDuration
707 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllMediaForChildNodes(eu.etaxonomy.cdm.model.taxon.TaxonNode, java.util.List, int, int, int, java.lang.String[])
710 public Map
<UUID
, List
<MediaRepresentation
>> getAllMediaForChildNodes(TaxonNode taxonNode
, List
<String
> propertyPaths
, int size
, int height
, int widthOrDuration
, String
[] mimeTypes
) {
711 return defaultService
.getAllMediaForChildNodes(taxonNode
, propertyPaths
, size
, height
, widthOrDuration
, mimeTypes
);
719 * @see eu.etaxonomy.cdm.api.service.IService#rows(java.lang.String, int, int)
722 public List
<Classification
> rows(String tableName
, int limit
, int start
) {
723 return defaultService
.rows(tableName
, limit
, start
);
727 * @param newInstances
729 * @see eu.etaxonomy.cdm.api.service.IService#save(java.util.Collection)
732 public Map
<UUID
, Classification
> save(Collection
<Classification
> newInstances
) {
740 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
744 public UUID
removeTaxonNode(TaxonNode taxonNode
) {
745 return defaultService
.removeTaxonNode(taxonNode
);
752 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNode(eu.etaxonomy.cdm.model.taxon.TaxonNode)
756 public UUID
saveTaxonNode(TaxonNode taxonNode
) {
763 * @see eu.etaxonomy.cdm.api.service.IService#save(eu.etaxonomy.cdm.model.common.ICdmBase)
766 public Classification
save(Classification newInstance
) {
771 * @param taxonNodeCollection
774 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTaxonNodeAll(java.util.Collection)
778 public Map
<UUID
, TaxonNode
> saveTaxonNodeAll(Collection
<TaxonNode
> taxonNodeCollection
) {
783 * @param transientObject
785 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(eu.etaxonomy.cdm.model.common.ICdmBase)
788 public UUID
saveOrUpdate(Classification transientObject
) {
795 * @see eu.etaxonomy.cdm.api.service.IClassificationService#removeTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
798 public UUID
removeTreeNode(ITaxonTreeNode treeNode
) {
799 return defaultService
.removeTreeNode(treeNode
);
808 * @param propertyPaths
810 * @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)
813 public Pager
<Classification
> search(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
814 return defaultService
.search(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, propertyPaths
);
820 * @see eu.etaxonomy.cdm.api.service.IClassificationService#saveTreeNode(eu.etaxonomy.cdm.model.taxon.ITaxonTreeNode)
823 public UUID
saveTreeNode(ITaxonTreeNode treeNode
) {
828 * @param transientObjects
830 * @see eu.etaxonomy.cdm.api.service.IService#saveOrUpdate(java.util.Collection)
833 public Map
<UUID
, Classification
> saveOrUpdate(Collection
<Classification
> transientObjects
) {
839 * @see eu.etaxonomy.cdm.api.service.IClassificationService#getAllNodes()
842 public List
<TaxonNode
> getAllNodes() {
843 return defaultService
.getAllNodes();
847 * @param transientObject
849 * @see eu.etaxonomy.cdm.api.service.IService#update(eu.etaxonomy.cdm.model.common.ICdmBase)
852 public UUID
update(Classification transientObject
) {
853 return defaultService
.update(transientObject
);
858 * @param includeProperties
862 * @param propertyPaths
864 * @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)
867 public List
<Classification
> list(Classification example
, Set
<String
> includeProperties
, Integer limit
, Integer start
, List
<OrderHint
> orderHints
, List
<String
> propertyPaths
) {
868 return defaultService
.list(example
, includeProperties
, limit
, start
, orderHints
, propertyPaths
);
873 * @param matchStrategy
874 * @param mergeStrategy
876 * @see eu.etaxonomy.cdm.api.service.IIdentifiableEntityService#deduplicate(java.lang.Class, eu.etaxonomy.cdm.strategy.match.IMatchStrategy, eu.etaxonomy.cdm.strategy.merge.IMergeStrategy)
879 public int deduplicate(Class
<?
extends Classification
> clazz
, IMatchStrategy matchStrategy
, IMergeStrategy mergeStrategy
) {
880 return defaultService
.deduplicate(clazz
, matchStrategy
, mergeStrategy
);
891 * @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)
894 public Pager
<Classification
> findTitleCache(Class
<?
extends Classification
> clazz
, String queryString
, Integer pageSize
, Integer pageNumber
, List
<OrderHint
> orderHints
, MatchMode matchMode
) {
895 return defaultService
.findTitleCache(clazz
, queryString
, pageSize
, pageNumber
, orderHints
, matchMode
);
899 * @see eu.etaxonomy.cdm.api.service.IClassificationService#listChildNodesOfTaxon(java.util.UUID, java.util.UUID, java.lang.Integer, java.lang.Integer, java.util.List)
902 public List
<TaxonNode
> listChildNodesOfTaxon(UUID taxonUuid
, UUID classificationUuid
, Integer pageSize
,
903 Integer pageIndex
, List
<String
> propertyPaths
) {
904 return defaultService
.listChildNodesOfTaxon(taxonUuid
, classificationUuid
, pageSize
, pageIndex
, propertyPaths
);
908 public DeleteResult
isDeletable(Classification object
,
909 DeleteConfiguratorBase config
) {
910 // TODO Auto-generated method stub
915 public Classification
findWithoutFlush(UUID uuid
) {
916 return defaultService
.findWithoutFlush(uuid
);
921 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
){
922 return defaultService
.findByIdentifier(clazz
, identifier
, identifierType
, matchmode
, includeEntity
, pageSize
, pageNumber
, propertyPaths
);
926 public UpdateResult
createHierarchyInClassification(Classification arg1
, CreateHierarchyForClassificationConfigurator arg2
) {
927 return defaultService
.createHierarchyInClassification(arg1
, arg2
);
931 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.UUID)
934 public DeleteResult
delete(UUID arg0
) {
935 return defaultService
.delete(arg0
);
939 * @see eu.etaxonomy.cdm.api.service.IService#delete(java.util.Collection)
942 public DeleteResult
delete(Collection
<UUID
> arg0
) {
943 return defaultService
.delete(arg0
);
947 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List)
950 public List
<Classification
> merge(List
<Classification
> arg0
) {
951 return defaultService
.merge(arg0
);
955 * @see eu.etaxonomy.cdm.api.service.IService#merge(java.util.List, boolean)
958 public List
<MergeResult
<Classification
>> merge(List
<Classification
> arg0
, boolean arg1
) {
959 return defaultService
.merge(arg0
, arg1
);
963 * @see eu.etaxonomy.cdm.api.service.IService#merge(eu.etaxonomy.cdm.model.common.ICdmBase, boolean)
966 public MergeResult
<Classification
> merge(Classification arg0
, boolean arg1
) {
967 return defaultService
.merge(arg0
, arg1
);
971 * @see eu.etaxonomy.cdm.api.service.IService#loadWithUpdate(java.util.UUID)
974 public Classification
loadWithUpdate(UUID arg0
) {
975 return defaultService
.loadWithUpdate(arg0
);