@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. |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes,
boolean includeSubtypes)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes,
java.lang.String pattern,
boolean includeSubtypes)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
TermVocabularyDto |
findVocabularyDtoByUuid(java.util.UUID vocUuid)
Returns term vocabulary for UUID
|
java.util.List<TermVocabularyDto> |
findVocabularyDtoByUuids(java.util.List<java.util.UUID> vocUuids)
Returns list of term vocabularies for list of UUIDs
|
java.util.Collection<TermDto> |
getNamedAreaTerms(java.util.List<java.util.UUID> vocabularyUuids)
Loads all namedArea term dtos with level information for the given vocabularies
|
java.util.Collection<TermDto> |
getTerms(java.util.List<java.util.UUID> vocabularyUuids)
Loads all terms for the given vocabularies
|
<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> |
getTerms(java.util.UUID vocabularyUuid)
Loads all terms for the given vocabulary
|
java.util.Collection<TermDto> |
getTopLevelTerms(java.util.UUID vocabularyUuid)
Loads all top level terms, i.e.
|
java.util.Collection<TermDto> |
getTopLevelTerms(java.util.UUID vocabularyUuid,
TermType type)
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, 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, findByParam, 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, 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
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> getTerms(java.util.List<java.util.UUID> vocabularyUuids)
ITermVocabularyDao
getTerms
in interface ITermVocabularyDao
vocabularyUuids
- the ids of the vocabulariespublic java.util.Collection<TermDto> getTerms(java.util.UUID vocabularyUuid)
ITermVocabularyDao
getTerms
in interface ITermVocabularyDao
vocabularyUuid
- the id of the vocabularypublic java.util.Collection<TermDto> getNamedAreaTerms(java.util.List<java.util.UUID> vocabularyUuids)
ITermVocabularyDao
getNamedAreaTerms
in interface ITermVocabularyDao
vocabularyUuids
- the ids of the vocabulariespublic java.util.Collection<TermDto> getTopLevelTerms(java.util.UUID vocabularyUuid)
ITermVocabularyDao
getTopLevelTerms
in interface ITermVocabularyDao
vocabularyUuid
- the id of the vocabularypublic java.util.Collection<TermDto> getTopLevelTerms(java.util.UUID vocabularyUuid, TermType type)
ITermVocabularyDao
getTopLevelTerms
in interface ITermVocabularyDao
vocabularyUuid
- the id of the vocabularypublic java.util.List<TermVocabularyDto> findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes)
ITermVocabularyDao
TermType
e.g. Feature, Modifier, State.findVocabularyDtoByTermTypes
in interface ITermVocabularyDao
termTypes
- the TermType
of the terms in the vocabulary and of the vocabularypublic java.util.List<TermVocabularyDto> findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes, boolean includeSubtypes)
ITermVocabularyDao
TermType
e.g. Feature, Modifier, State.findVocabularyDtoByTermTypes
in interface ITermVocabularyDao
termTypes
- the TermType
of the terms in the vocabulary and of the vocabularyincludeSubtypes
- if true
also the sub types of the given term types
will be consideredpublic java.util.List<TermVocabularyDto> findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes, java.lang.String pattern, boolean includeSubtypes)
ITermVocabularyDao
TermType
e.g. Feature, Modifier, State. containing patternfindVocabularyDtoByTermTypes
in interface ITermVocabularyDao
public 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))
public TermVocabularyDto findVocabularyDtoByUuid(java.util.UUID vocUuid)
ITermVocabularyDao
findVocabularyDtoByUuid
in interface ITermVocabularyDao
public java.util.List<TermVocabularyDto> findVocabularyDtoByUuids(java.util.List<java.util.UUID> vocUuids)
ITermVocabularyDao
findVocabularyDtoByUuids
in interface ITermVocabularyDao
vocUuids
- the UUID
of the vocabulariesCopyright © 2007-2020 EDIT. All Rights Reserved.