@Repository public class TermVocabularyDaoImpl extends IdentifiableDaoBase<TermVocabulary> implements ITermVocabularyDao
defaultField, indexedClasses
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
TermVocabularyDaoImpl() |
Modifier and Type | Method and Description |
---|---|
long |
countTerms(TermVocabulary termVocabulary)
Return a count of terms that belong to the termVocabulary supplied
|
<T extends DefinedTermBase> |
findByTermType(TermType termType,
java.util.List<java.lang.String> propertyPaths)
Return a List of vocabularies that belong to the term type supplied
|
<T extends DefinedTermBase> |
findByUri(java.lang.String termSourceUri,
java.lang.Class<T> clazz) |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermType(TermType termType)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
<T extends DefinedTermBase> |
getTerms(TermVocabulary<T> termVocabulary,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a List of terms that belong to the termVocabulary supplied
|
<T extends DefinedTermBase> |
getTerms(TermVocabulary<T> vocabulary,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of terms that belong to the termVocabulary supplied
|
java.util.Collection<TermDto> |
getTopLevelTerms(java.util.UUID vocabularyUuid)
Loads all top level terms, i.e.
|
<S extends TermVocabulary> |
getUuidAndTitleCache(java.lang.Class<S> clazz,
TermType termType,
java.lang.Integer limit,
java.lang.String pattern)
Like
IIdentifiableDao.getUuidAndTitleCache(Class, Integer, String) but filtering
the results by TermType of the vocabularies. |
java.util.List<TermVocabulary> |
listByTermType(TermType termType,
boolean includeSubTypes,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
void |
missingTermUuids(java.util.Map<java.util.UUID,java.util.Set<java.util.UUID>> uuidsRequested,
java.util.Map<java.util.UUID,java.util.Set<java.util.UUID>> uuidMissingTermsRepsonse,
java.util.Map<java.util.UUID,TermVocabulary<?>> vocabularyResponse)
Fills the response map with those term uuids which do exist in the requested map
but not in the repository (missing terms).
|
count, countByIdentifier, countByMarker, countByReferenceTitle, countByReferenceTitleWithRestrictions, countByTitle, countByTitle, countByTitle, countByTitle, countByTitleWithRestrictions, countRights, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitle, findByTitle, findByTitle, findByTitleAndClass, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getCredits, getRights, getSources, getTitleCache, getUuidAndAbbrevTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCacheByMarker, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
addCriteria, addOrder, checkNotInPriorView, count, count, count, countAuditEvents, countAuditEvents, countByParam, exists, findByParam, findByParamWithRestrictions, findByUuid, getAuditEventFromContext, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent, list, list, list, list, load, load, load
addExample, addGroups, clear, count, countByParamWithRestrictions, countGroups, createCriteria, delete, entityType, findById, findByUuid, findByUuidWithoutFlush, getAuditReader, getCriteria, getSession, getType, group, list, list, list, list, list, list, load, loadList, lock, makeAuditQuery, merge, merge, refresh, refresh, replace, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update
addCriteria, addFieldPredicate, addLimitAndStart, addLimitAndStart, addLimitAndStart, addOrder, addOrder, addOrder, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, flush, getSessionFactory, orderByClause, setSessionFactory, splitCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countByIdentifier, countByMarker, countByReferenceTitle, countByReferenceTitleWithRestrictions, countByTitle, countByTitleWithRestrictions, countRights, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getRights, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCacheByMarker
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle, findByTitleAndClass
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery
public long countTerms(TermVocabulary termVocabulary)
ITermVocabularyDao
countTerms
in interface ITermVocabularyDao
termVocabulary
- The term vocabulary which 'owns' the terms of interestpublic <T extends DefinedTermBase> java.util.List<T> getTerms(TermVocabulary<T> vocabulary, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
ITermVocabularyDao
getTerms
in interface ITermVocabularyDao
pageSize
- The maximum number of terms returned (can be null for all terms)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to be initializedpublic <T extends DefinedTermBase> TermVocabulary<T> findByUri(java.lang.String termSourceUri, java.lang.Class<T> clazz)
findByUri
in interface ITermVocabularyDao
public <T extends DefinedTermBase> java.util.List<T> getTerms(TermVocabulary<T> termVocabulary, java.lang.Integer pageSize, java.lang.Integer pageNumber)
ITermVocabularyDao
getTerms
in interface ITermVocabularyDao
termVocabulary
- The term vocabulary which 'owns' the terms of interestpageSize
- The maximum number of terms returned (can be null for all terms)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)public <T extends DefinedTermBase> java.util.List<TermVocabulary<T>> findByTermType(TermType termType, java.util.List<java.lang.String> propertyPaths)
ITermVocabularyDao
findByTermType
in interface ITermVocabularyDao
termType
- The term type corresponding to the vocabularies of interestpublic java.util.List<TermVocabulary> listByTermType(TermType termType, boolean includeSubTypes, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
ITermVocabularyDao
TermType
e.g. Feature, Modifier, State.listByTermType
in interface ITermVocabularyDao
termType
- the TermType
of the terms in the vocabulary and of the vocabularyincludeSubTypes
- if true
all subtypes will be included for computation of the resultlimit
- The maximum number of vocabularies returned (can be null for all vocabularies)start
- The offset from the start of the result set (0 - based, can be null - equivalent of starting at the beginning of the recordset)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to be initializedpublic void missingTermUuids(java.util.Map<java.util.UUID,java.util.Set<java.util.UUID>> uuidsRequested, java.util.Map<java.util.UUID,java.util.Set<java.util.UUID>> uuidMissingTermsRepsonse, java.util.Map<java.util.UUID,TermVocabulary<?>> vocabularyResponse)
ITermVocabularyDao
null
the vocabularies will be fully loaded
and returned within the map. The later is for using this method together with fast termloading.missingTermUuids
in interface ITermVocabularyDao
public java.util.Collection<TermDto> getTopLevelTerms(java.util.UUID vocabularyUuid)
ITermVocabularyDao
getTopLevelTerms
in interface ITermVocabularyDao
vocabularyUuid
- the id of the vocabularypublic java.util.List<TermVocabularyDto> findVocabularyDtoByTermType(TermType termType)
ITermVocabularyDao
TermType
e.g. Feature, Modifier, State.findVocabularyDtoByTermType
in interface ITermVocabularyDao
termType
- the TermType
of the terms in the vocabulary and of the vocabularypublic <S extends TermVocabulary> java.util.List<UuidAndTitleCache<S>> getUuidAndTitleCache(java.lang.Class<S> clazz, TermType termType, java.lang.Integer limit, java.lang.String pattern)
ITermVocabularyDao
IIdentifiableDao.getUuidAndTitleCache(Class, Integer, String)
but filtering
the results by TermType
of the vocabularies.getUuidAndTitleCache
in interface ITermVocabularyDao
clazz
- the (sub)classtermType
- the TermType
of the vocabularies to be retrievedlimit
- max number of resultspattern
- search patternUuidAndTitleCache
#getUuidAndTitleCache(Class, Integer, String))
Copyright © 2007-2019 EDIT. All Rights Reserved.