@Service @Transactional(readOnly=true) public class ReferenceServiceImpl extends IdentifiableServiceBase<Reference,IReferenceDao> implements IReferenceService
UPDATE_TITLE_CACHE_DEFAULT_STEP_SIZE
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
ReferenceServiceImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
DeleteResult |
delete(Reference reference) |
DeleteResult |
delete(java.util.UUID referenceUuid)
Delete an existing persistent object
|
java.util.List<Reference> |
findByTitleAndAbbrevTitle(IIdentifiableEntityServiceConfigurator<Reference> config) |
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndAbbrevTitleCache(java.lang.Integer limit,
java.lang.String pattern) |
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndAbbrevTitleCache(java.lang.Integer limit,
java.lang.String pattern,
ReferenceType type) |
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndAbbrevTitleCacheForAuthor(java.lang.Integer limit,
java.lang.String pattern,
ReferenceType type) |
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndTitle()
Returns a map that holds uuid, titleCache pairs of all references in the current database
|
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndTitleCache(java.lang.Integer limit,
java.lang.String pattern,
ReferenceType type) |
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndTitleCacheForUUIDS(java.util.Set<java.util.UUID> uuids) |
java.util.List<UuidAndTitleCache<Reference>> |
getUuidAndTitleCacheForUUIDS(java.util.Set<java.util.UUID> uuids,
ReferenceType refType) |
java.util.List<IdentifiedEntityDTO<Reference>> |
listByIdentifierAbbrev(java.lang.String identifier,
DefinedTerm identifierType,
MatchMode matchmode,
java.lang.Integer limit) |
java.util.List<IdentifiedEntityDTO<Reference>> |
listByIdentifierAndTitleCacheAbbrev(java.lang.String identifier,
DefinedTerm identifierType,
MatchMode matchmode,
java.lang.Integer limit) |
java.util.List<TaxonBase> |
listCoveredTaxa(Reference reference,
boolean includeSubordinateReferences,
java.util.List<java.lang.String> propertyPaths)
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
|
java.util.List<Reference> |
listNomenclaturalReferences()
Lists all references used as nomenclatural references in at least 1
TaxonName |
java.util.List<Reference> |
listReferencesForPublishing()
lists all references marked as "publish" and not used as nomenclatural references
|
protected void |
setDao(IReferenceDao dao) |
UpdateResult |
updateCaches(java.lang.Class<? extends Reference> clazz,
java.lang.Integer stepSize,
IIdentifiableEntityCacheStrategy<Reference> cacheStrategy,
IProgressMonitor monitor)
(Re-)generate the caches for all objects of this concrete IdentifiableEntity class
|
countByTitle, countByTitle, countByTitleWithRestrictions, deduplicate, find, findByIdentifier, findByMarker, findByTitle, findByTitle, findByTitleWithRestrictions, findTitleCache, findUuidAndTitleCacheByMarker, getRights, getSourcedObjectByIdInSource, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, listByIdentifier, listByReferenceTitle, listByReferenceTitleWithRestrictions, listByTitle, listByTitleWithRestrictions, replace, search, switchOfAutoinitializer, switchOnOldAutoInitializer, updateCaches, updateCachesImpl
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
checkPublished, clear, count, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, setApplicationContext, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
search
countByTitle, countByTitle, countByTitleWithRestrictions, deduplicate, find, findByIdentifier, findByMarker, findByTitle, findByTitle, findByTitleWithRestrictions, findTitleCache, findUuidAndTitleCacheByMarker, getRights, getSourcedObjectByIdInSource, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, listByIdentifier, listByReferenceTitle, listByReferenceTitleWithRestrictions, listByTitle, listByTitleWithRestrictions, replace, updateCaches
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
@Transactional(readOnly=false) public UpdateResult updateCaches(java.lang.Class<? extends Reference> clazz, java.lang.Integer stepSize, IIdentifiableEntityCacheStrategy<Reference> cacheStrategy, IProgressMonitor monitor)
IIdentifiableEntityService
updateCaches
in interface IIdentifiableEntityService<Reference>
clazz
- class of objects to be updatedstepSize
- number of objects loaded per step. If null
use default.cacheStrategy
- cache strategy used for cache generation. If null
use default.monitor
- progress monitor. If null
use default.@Autowired protected void setDao(IReferenceDao dao)
setDao
in class ServiceBase<Reference,IReferenceDao>
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndTitle()
IReferenceService
getUuidAndTitle
in interface IReferenceService
Map
containing uuid and titleCache of referencespublic java.util.List<Reference> listReferencesForPublishing()
IReferenceService
listReferencesForPublishing
in interface IReferenceService
public java.util.List<Reference> listNomenclaturalReferences()
IReferenceService
TaxonName
listNomenclaturalReferences
in interface IReferenceService
public java.util.List<TaxonBase> listCoveredTaxa(Reference reference, boolean includeSubordinateReferences, java.util.List<java.lang.String> propertyPaths)
IReferenceService
listCoveredTaxa
in interface IReferenceService
includeSubordinateReferences
- TODOpublic DeleteResult delete(Reference reference)
delete
in interface IService<Reference>
delete
in class ServiceBase<Reference,IReferenceDao>
@Transactional(readOnly=false) public DeleteResult delete(java.util.UUID referenceUuid)
IService
delete
in interface IService<Reference>
delete
in class ServiceBase<Reference,IReferenceDao>
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndAbbrevTitleCache(java.lang.Integer limit, java.lang.String pattern)
getUuidAndAbbrevTitleCache
in interface IReferenceService
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndAbbrevTitleCache(java.lang.Integer limit, java.lang.String pattern, ReferenceType type)
getUuidAndAbbrevTitleCache
in interface IReferenceService
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndAbbrevTitleCacheForAuthor(java.lang.Integer limit, java.lang.String pattern, ReferenceType type)
getUuidAndAbbrevTitleCacheForAuthor
in interface IReferenceService
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern, ReferenceType type)
getUuidAndTitleCache
in interface IReferenceService
@Transactional(readOnly=true) public java.util.List<IdentifiedEntityDTO<Reference>> listByIdentifierAbbrev(java.lang.String identifier, DefinedTerm identifierType, MatchMode matchmode, java.lang.Integer limit)
listByIdentifierAbbrev
in interface IReferenceService
@Transactional(readOnly=true) public java.util.List<IdentifiedEntityDTO<Reference>> listByIdentifierAndTitleCacheAbbrev(java.lang.String identifier, DefinedTerm identifierType, MatchMode matchmode, java.lang.Integer limit)
listByIdentifierAndTitleCacheAbbrev
in interface IReferenceService
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndTitleCacheForUUIDS(java.util.Set<java.util.UUID> uuids, ReferenceType refType)
getUuidAndTitleCacheForUUIDS
in interface IReferenceService
public java.util.List<UuidAndTitleCache<Reference>> getUuidAndTitleCacheForUUIDS(java.util.Set<java.util.UUID> uuids)
getUuidAndTitleCacheForUUIDS
in interface IReferenceService
public java.util.List<Reference> findByTitleAndAbbrevTitle(IIdentifiableEntityServiceConfigurator<Reference> config)
findByTitleAndAbbrevTitle
in interface IReferenceService
Copyright © 2007-2020 EDIT. All Rights Reserved.