public interface ITermVocabularyDao extends IIdentifiableDao<TermVocabulary>
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>> uuidsRepsonse,
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).
|
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
long countTerms(TermVocabulary termVocabulary)
termVocabulary
- The term vocabulary which 'owns' the terms of interest<T extends DefinedTermBase> java.util.List<T> getTerms(TermVocabulary<T> termVocabulary, java.lang.Integer pageSize, java.lang.Integer pageNumber)
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)<T extends DefinedTermBase> TermVocabulary<T> findByUri(java.lang.String termSourceUri, java.lang.Class<T> clazz)
<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)
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)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepropertyPaths
- properties to be initialized<T extends DefinedTermBase> java.util.List<TermVocabulary<T>> findByTermType(TermType termType, java.util.List<java.lang.String> propertyPaths)
termType
- The term type corresponding to the vocabularies of interestpropertyPaths
- 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)
TermType
e.g. Feature, Modifier, State.TERMTYPE
- 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 initializedvoid 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>> uuidsRepsonse, java.util.Map<java.util.UUID,TermVocabulary<?>> vocabularyResponse)
null
the vocabularies will be fully loaded
and returned within the map. The later is for using this method together with fast termloading.uuidsRequested
- uuidsRepsonse
- vocabularyResponse
- java.util.Collection<TermDto> getTopLevelTerms(java.util.UUID vocabularyUuid)
vocabularyUuid
- the id of the vocabularyjava.util.List<TermVocabularyDto> findVocabularyDtoByTermType(TermType termType)
TermType
e.g. Feature, Modifier, State.termType
- the TermType
of the terms in the vocabulary and of the vocabulary<S extends TermVocabulary> java.util.List<UuidAndTitleCache<S>> getUuidAndTitleCache(java.lang.Class<S> clazz, TermType termType, java.lang.Integer limit, java.lang.String pattern)
IIdentifiableDao.getUuidAndTitleCache(Class, Integer, String)
but filtering
the results by TermType
of the vocabularies.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.