@Service @Transactional(readOnly=false) public class PolytomousKeyServiceImpl extends IdentifiableServiceBase<PolytomousKey,IPolytomousKeyDao> implements IPolytomousKeyService
logger, UPDATE_TITLE_CACHE_DEFAULT_STEP_SIZE
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
PolytomousKeyServiceImpl() |
Modifier and Type | Method and Description |
---|---|
DeleteResult |
delete(PolytomousKey key) |
Pager<PolytomousKey> |
findByTaxonomicScope(TaxonBase taxon,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths,
java.util.List<java.lang.String> nodePaths) |
DeleteResult |
isDeletable(java.util.UUID keyUuid,
DeleteConfiguratorBase config)
the basic isDeletable method return false if the object is referenced from any other object.
|
PolytomousKey |
load(java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths)
Returns the polytomous key specified by the given
uuid . |
PolytomousKey |
loadWithNodes(java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths,
java.util.List<java.lang.String> nodePaths)
Loads a polytomous key including all of its nodes (all the way down to the tips of the tree).
|
protected void |
setDao(IIdentificationKeyDao identificationKeyDao) |
protected void |
setDao(IPolytomousKeyDao dao) |
UpdateResult |
updateAllNodeNumberings()
Refreshes all node numberings for all polytomous keys recursively from the root node downwards.
|
UpdateResult |
updateAllNodeNumberings(java.util.UUID polytomousKeyUuid)
Refreshes all node numberings recursively from the root node downwards.
|
UpdateResult |
updateCaches(java.lang.Class<? extends PolytomousKey> clazz,
java.lang.Integer stepSize,
IIdentifiableEntityCacheStrategy<PolytomousKey> 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, pageAuditEvents, pageAuditEvents
checkPublished, clear, count, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, 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
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, updateCaches
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
@Autowired protected void setDao(IPolytomousKeyDao dao)
setDao
in class ServiceBase<PolytomousKey,IPolytomousKeyDao>
@Autowired protected void setDao(IIdentificationKeyDao identificationKeyDao)
public UpdateResult updateCaches(java.lang.Class<? extends PolytomousKey> clazz, java.lang.Integer stepSize, IIdentifiableEntityCacheStrategy<PolytomousKey> cacheStrategy, IProgressMonitor monitor)
IIdentifiableEntityService
updateCaches
in interface IIdentifiableEntityService<PolytomousKey>
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.public PolytomousKey loadWithNodes(java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths, java.util.List<java.lang.String> nodePaths)
IPolytomousKeyService
loadWithNodes
in interface IPolytomousKeyService
public PolytomousKey load(java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths)
uuid
.load
in interface IService<PolytomousKey>
load
in class ServiceBase<PolytomousKey,IPolytomousKeyDao>
null
if not object with given uuid exists or uuid is null
ServiceBase.load(java.util.UUID, java.util.List)
public Pager<PolytomousKey> findByTaxonomicScope(TaxonBase taxon, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths, java.util.List<java.lang.String> nodePaths)
findByTaxonomicScope
in interface IPolytomousKeyService
public UpdateResult updateAllNodeNumberings(java.util.UUID polytomousKeyUuid)
IPolytomousKeyService
updateAllNodeNumberings
in interface IPolytomousKeyService
public UpdateResult updateAllNodeNumberings()
IPolytomousKeyService
updateAllNodeNumberings
in interface IPolytomousKeyService
public DeleteResult delete(PolytomousKey key)
delete
in interface IService<PolytomousKey>
delete
in class ServiceBase<PolytomousKey,IPolytomousKeyDao>
public DeleteResult isDeletable(java.util.UUID keyUuid, DeleteConfiguratorBase config)
VersionableServiceBase
isDeletable
in interface IVersionableService<PolytomousKey>
isDeletable
in class VersionableServiceBase<PolytomousKey,IPolytomousKeyDao>
Copyright © 2007-2020 EDIT. All Rights Reserved.