@Service @Transactional(readOnly=false) public class FeatureTreeServiceImpl extends IdentifiableServiceBase<TermTree,ITermTreeDao> implements IFeatureTreeService
logger, UPDATE_TITLE_CACHE_DEFAULT_STEP_SIZE
commonService
appContext, dao, INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
FeatureTreeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
TermTree |
createTransientDefaultFeatureTree() |
DeleteResult |
delete(java.util.UUID featureTreeUuid)
Delete an existing persistent object
|
java.util.List<TermNode> |
getFeatureNodesAll() |
<S extends TermTree> |
getUuidAndTitleCacheByTermType(java.lang.Class<S> clazz,
TermType termType,
java.lang.Integer limit,
java.lang.String pattern) |
TermTree |
load(java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths)
Returns the featureTree specified by the given
uuid . |
TermTree |
loadWithNodes(java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths,
java.util.List<java.lang.String> nodePaths)
Loads a feature tree including all of its nodes (all the way down to the tips of the tree).
|
java.util.Map<java.util.UUID,TermNode> |
saveFeatureNodesAll(java.util.Collection<TermNode> featureNodeCollection) |
java.util.Map<java.util.UUID,TermNode> |
saveOrUpdateFeatureNodesAll(java.util.Collection<TermNode> featureNodeCollection) |
protected void |
setDao(ITermTreeDao dao) |
protected void |
setTermNodeDao(ITermNodeDao termNodeDao) |
UpdateResult |
updateCaches(java.lang.Class<? extends TermTree> clazz,
java.lang.Integer stepSize,
IIdentifiableEntityCacheStrategy<TermTree> 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, 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, isDeletable, 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(ITermTreeDao dao)
setDao
in class ServiceBase<TermTree,ITermTreeDao>
@Autowired protected void setTermNodeDao(ITermNodeDao termNodeDao)
@Transactional(readOnly=false) public UpdateResult updateCaches(java.lang.Class<? extends TermTree> clazz, java.lang.Integer stepSize, IIdentifiableEntityCacheStrategy<TermTree> cacheStrategy, IProgressMonitor monitor)
IIdentifiableEntityService
updateCaches
in interface IIdentifiableEntityService<TermTree>
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 java.util.List<TermNode> getFeatureNodesAll()
getFeatureNodesAll
in interface IFeatureTreeService
public java.util.Map<java.util.UUID,TermNode> saveFeatureNodesAll(java.util.Collection<TermNode> featureNodeCollection)
saveFeatureNodesAll
in interface IFeatureTreeService
public java.util.Map<java.util.UUID,TermNode> saveOrUpdateFeatureNodesAll(java.util.Collection<TermNode> featureNodeCollection)
saveOrUpdateFeatureNodesAll
in interface IFeatureTreeService
public TermTree loadWithNodes(java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths, java.util.List<java.lang.String> nodePaths)
IFeatureTreeService
loadWithNodes
in interface IFeatureTreeService
public TermTree load(java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths)
uuid
.
The specified featureTree either can be one of those stored in the CDM database or can be the
DefaultFeatureTree (contains all Features in use).
The uuid of the DefaultFeatureTree is defined in IFeatureTreeService#DefaultFeatureTreeUuid
.
The DefaultFeatureTree is also returned if no feature tree at all is stored in the cdm database.load
in interface IService<TermTree>
load
in class ServiceBase<TermTree,ITermTreeDao>
null
if not object with given uuid exists or uuid is null
ServiceBase.load(java.util.UUID, java.util.List)
public TermTree createTransientDefaultFeatureTree()
createTransientDefaultFeatureTree
in interface IFeatureTreeService
public DeleteResult delete(java.util.UUID featureTreeUuid)
IService
delete
in interface IService<TermTree>
delete
in class ServiceBase<TermTree,ITermTreeDao>
public <S extends TermTree> java.util.List<UuidAndTitleCache<S>> getUuidAndTitleCacheByTermType(java.lang.Class<S> clazz, TermType termType, java.lang.Integer limit, java.lang.String pattern)
getUuidAndTitleCacheByTermType
in interface IFeatureTreeService
Copyright © 2007-2020 EDIT. All Rights Reserved.