eu.etaxonomy.cdm.api.service
Class ReferenceServiceImpl
java.lang.Object
eu.etaxonomy.cdm.api.service.ServiceBase<T,DAO>
eu.etaxonomy.cdm.api.service.VersionableServiceBase<T,DAO>
eu.etaxonomy.cdm.api.service.AnnotatableServiceBase<T,DAO>
eu.etaxonomy.cdm.api.service.IdentifiableServiceBase<Reference,IReferenceDao>
eu.etaxonomy.cdm.api.service.ReferenceServiceImpl
- All Implemented Interfaces:
- IAnnotatableService<Reference>, IIdentifiableEntityService<Reference>, IReferenceService, IService<Reference>, IVersionableService<Reference>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Service
@Transactional(readOnly=true)
public class ReferenceServiceImpl
- extends IdentifiableServiceBase<Reference,IReferenceDao>
- implements IReferenceService
| Methods inherited from class eu.etaxonomy.cdm.api.service.IdentifiableServiceBase |
countByTitle, countByTitle, deduplicate, find, findByTitle, findByTitle, findCdmObjectsByTitle, findCdmObjectsByTitle, findCdmObjectsByTitle, findTitleCache, getRights, getSourcedObjectByIdInSource, getSources, getUuidAndTitleCache, listByReferenceTitle, listByTitle, replace, search, setOtherCachesNull, updateTitleCache, updateTitleCacheImpl |
| Methods inherited from class eu.etaxonomy.cdm.api.service.ServiceBase |
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, setApplicationContext, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IIdentifiableEntityService |
countByTitle, countByTitle, deduplicate, find, findByTitle, findByTitle, findTitleCache, getRights, getSourcedObjectByIdInSource, getSources, getUuidAndTitleCache, listByReferenceTitle, listByTitle, replace, updateTitleCache |
| Methods inherited from interface eu.etaxonomy.cdm.api.service.IService |
clear, count, delete, exists, find, find, find, findById, getSession, group, list, list, load, load, lock, merge, page, refresh, refresh, rows, save, save, saveOrUpdate, saveOrUpdate, update |
ReferenceServiceImpl
public ReferenceServiceImpl()
- Constructor
updateTitleCache
@Transactional(readOnly=false)
public void updateTitleCache(Class<? extends Reference> clazz,
Integer stepSize,
IIdentifiableEntityCacheStrategy<Reference> cacheStrategy,
IProgressMonitor monitor)
- Description copied from interface:
IIdentifiableEntityService
- (Re-)generate the title caches for all objects of this concrete IdentifiableEntity class
- Specified by:
updateTitleCache in interface IIdentifiableEntityService<Reference>
- Parameters:
clazz - class of objects to be updatedstepSize - number of objects loaded per step. If null use default.cacheStrategy - cachestrategy used for title cache. If null use default.monitor - progress monitor. If null use default.
setDao
@Autowired
protected void setDao(IReferenceDao dao)
- Specified by:
setDao in class ServiceBase<Reference,IReferenceDao>
getUuidAndTitle
public List<UuidAndTitleCache<Reference>> getUuidAndTitle()
- Description copied from interface:
IReferenceService
- Returns a map that holds uuid, titleCache pairs of all references in the current database
- Specified by:
getUuidAndTitle in interface IReferenceService
- Returns:
- a
Map containing uuid and titleCache of references
getAllReferencesForPublishing
public List<Reference> getAllReferencesForPublishing()
- Description copied from interface:
IReferenceService
- TODO candidate for harmonization: rename to listForPublishing
- Specified by:
getAllReferencesForPublishing in interface IReferenceService
- Returns:
getAllNomenclaturalReferences
public List<Reference> getAllNomenclaturalReferences()
- Description copied from interface:
IReferenceService
- TODO candidate for harmonization: rename to listNomenclaturalReferences
- Specified by:
getAllNomenclaturalReferences in interface IReferenceService
- Returns:
listCoveredTaxa
public List<TaxonBase> listCoveredTaxa(Reference reference,
boolean includeSubordinateReferences,
List<String> propertyPaths)
- Description copied from interface:
IReferenceService
- returns
- all taxa directly covered by this reference
- all taxa covered by the according in references of this reference
searches for taxa using the following relations:
- taxon.name.nomenclaturalreference
- taxon.descriptions.descriptionElement.sources.citation
- taxon.descriptions.descriptionSources
- taxon.name.descriptions.descriptionElement.sources
- taxon.name.descriptions.descriptionSources
- Specified by:
listCoveredTaxa in interface IReferenceService
includeSubordinateReferences - TODO
- Returns:
Copyright © 2007-2013 EDIT. All Rights Reserved.