public interface IVocabularyService extends IIdentifiableEntityService<TermVocabulary>
Modifier and Type | Method and Description |
---|---|
TermDto |
addNewTerm(TermType termType,
java.util.UUID vocabularyUUID)
Creates a new term as a direct child of the given vocabulary.
|
<T extends DefinedTermBase> |
findByTermType(TermType termType,
java.util.List<java.lang.String> propertyPaths)
Returns a list of term vocabularies corresponding to a term type
|
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermType(TermType termType)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermType(TermType termType,
boolean includeSubtypes)
Returns term vocabularies that contain terms of a certain
TermType e.g. |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermTypeAndPattern(java.lang.String pattern,
TermType termType) |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes)
Returns term vocabularies that contain terms of the given types
TermType e.g. |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes,
boolean includeSubtypes)
Returns term vocabularies that contain terms of the given types
TermType e.g. |
TermVocabularyDto |
findVocabularyDtoByVocabularyUuid(java.util.UUID vocUuid) |
java.util.List<TermVocabularyDto> |
findVocabularyDtoByVocabularyUuids(java.util.List<java.util.UUID> vocUuid) |
java.util.Collection<TermDto> |
getCompleteTermHierarchy(TermVocabularyDto vocabularyDto)
Initializes the complete term hierarchy consisting of
TermDto s
for the given vocabulary |
TermVocabulary<Language> |
getLanguageVocabulary()
Returns Language Vocabulary
|
java.util.Collection<TermDto> |
getNamedAreaTerms(java.util.List<java.util.UUID> vocabularyUuids)
Loads all namedArea term dtos with level informations for the given vocabularies
|
java.util.Collection<TermDto> |
getTerms(java.util.List<java.util.UUID> vocabularyUuids)
Loads all terms for the given vocabularies
|
Pager<DefinedTermBase> |
getTerms(TermVocabulary vocabulary,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a list of terms belonging to the vocabulary passed as an argument
|
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.
|
<S extends TermVocabulary> |
getUuidAndTitleCache(java.lang.Class<S> clazz,
TermType termType,
java.lang.Integer limit,
java.lang.String pattern)
Like
IIdentifiableEntityService.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. |
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, updateCaches
countMarkers, getAnnotations, getMarkers, groupMarkers
getNextAuditEvent, getPreviousAuditEvent, isDeletable, pageAuditEvents, pageAuditEvents
clear, count, delete, delete, delete, exists, find, find, find, find, findById, findWithoutFlush, getSession, group, list, list, load, load, load, load, loadByIds, loadByIds, loadWithUpdate, lock, merge, merge, merge, merge, page, page, page, pageByParamWithRestrictions, refresh, refresh, save, save, saveOrUpdate, saveOrUpdate, update
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 initializedTermVocabulary<Language> getLanguageVocabulary()
Pager<DefinedTermBase> getTerms(TermVocabulary vocabulary, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
vocabulary
- The vocabulary for which the list of terms is desiredlimit
- The maximum number of terms returned (can be null for all terms in the vocabulary)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 initialized<T extends DefinedTermBase> java.util.List<TermVocabulary<T>> findByTermType(TermType termType, java.util.List<java.lang.String> propertyPaths)
termType
- The term type for which the list of vocabularies is desiredjava.util.Collection<TermDto> getTopLevelTerms(java.util.UUID vocabularyUuid)
vocabularyUuid
- the uuid of the vocabularyjava.util.Collection<TermDto> getTerms(java.util.UUID vocabularyUuid)
vocabularyUuid
- the id of the vocabularyjava.util.Collection<TermDto> getTerms(java.util.List<java.util.UUID> vocabularyUuids)
vocabularyUuids
- the ids of the vocabulariesjava.util.Collection<TermDto> getNamedAreaTerms(java.util.List<java.util.UUID> vocabularyUuids)
vocabularyUuids
- the ids of the vocabulariesjava.util.Collection<TermDto> getCompleteTermHierarchy(TermVocabularyDto vocabularyDto)
TermDto
s
for the given vocabularyvocabularyDto
- the dto of the term 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 vocabularyjava.util.List<TermVocabularyDto> findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes)
TermType
e.g. Feature, Modifier, State.termTypes
- a set of TermType
s of the terms in the vocabulary and of the vocabularyjava.util.List<TermVocabularyDto> findVocabularyDtoByTermType(TermType termType, boolean includeSubtypes)
TermType
e.g. Feature, Modifier, State.termType
- the TermType
of the terms in the vocabulary and of the vocabularyincludeSubtypes
- if true
also vocabularies with subtypes of the given type
will be returnedjava.util.List<TermVocabularyDto> findVocabularyDtoByTermTypes(java.util.Set<TermType> termTypes, boolean includeSubtypes)
TermType
e.g. Feature, Modifier, State.termTypes
- a set of TermType
s of the terms in the vocabulary and of the vocabularyincludeSubtypes
- if true
also vocabularies with subtypes of the given type
will be returnedTermDto addNewTerm(TermType termType, java.util.UUID vocabularyUUID)
termType
- the TermType
of the term to createvocabularyUUID
- the UUID
of the vocabulary
kindOf relation. Otherwise it will added via a partOf relation<S extends TermVocabulary> java.util.List<UuidAndTitleCache<S>> getUuidAndTitleCache(java.lang.Class<S> clazz, TermType termType, java.lang.Integer limit, java.lang.String pattern)
IIdentifiableEntityService.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))
TermVocabularyDto findVocabularyDtoByVocabularyUuid(java.util.UUID vocUuid)
vocUuid
- java.util.List<TermVocabularyDto> findVocabularyDtoByVocabularyUuids(java.util.List<java.util.UUID> vocUuid)
vocUuid
- java.util.List<TermVocabularyDto> findVocabularyDtoByTermTypeAndPattern(java.lang.String pattern, TermType termType)
Copyright © 2007-2020 EDIT. All Rights Reserved.