public interface ITermService extends IIdentifiableEntityService<DefinedTermBase>
Modifier and Type | Method and Description |
---|---|
TermDto |
addNewTerm(TermType termType,
java.util.UUID parentUuid,
boolean isKindOf)
Creates a new term as a child of the given parent.
|
DeleteResult |
delete(DefinedTermBase term,
TermDeletionConfigurator config)
Delete the given term according to the given delete configuration.
|
DeleteResult |
delete(java.util.UUID termUuid,
TermDeletionConfigurator config) |
<TERM extends DefinedTermBase> |
findByIdInVocabulary(java.lang.String id,
java.util.UUID vocabularyUuid,
java.lang.Class<TERM> clazz)
Returns the term with the given idInVocabulary for the given vocabulary.
|
<T extends DefinedTermBase> |
findByRepresentationAbbreviation(java.lang.String abbrev,
java.lang.Class<T> clazz,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a paged list of terms which have representations that match the supplied string in the abbreviated label
|
<T extends DefinedTermBase> |
findByRepresentationText(java.lang.String label,
java.lang.Class<T> clazz,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a paged list of terms which have representations that match the supplied string in the text (description)
|
java.util.Collection<TermDto> |
findByTitleAsDto(java.lang.String title,
TermType termType)
Returns a collection of
TermDto s that match the given search parameters. |
java.util.Collection<TermDto> |
findByUriAsDto(java.net.URI uri,
java.lang.String termLabel,
TermType termType)
Returns a collection of
TermDto s that match the given search parameters. |
java.util.Collection<TermDto> |
findByUUIDsAsDto(java.util.List<java.util.UUID> uuidList)
Returns a list of
TermDto of terms with uuid matches one of uuids in list |
java.util.List<LanguageString> |
getAllLanguageStrings(int limit,
int start) |
java.util.List<Representation> |
getAllRepresentations(int limit,
int start) |
NamedArea |
getAreaByTdwgAbbreviation(java.lang.String tdwgAbbreviation) |
DefinedTermBase |
getByUri(java.net.URI uri)
Returns a term according to it's uri
|
<T extends DefinedTermBase> |
getGeneralizationOf(T definedTerm,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a paged list of terms which are specializations of a given definedTerm
|
<T extends DefinedTermBase> |
getIncludes(java.util.Collection<T> definedTerms,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a paged list of terms which are part of the terms supplied
|
java.util.Collection<TermDto> |
getIncludesAsDto(TermDto parentTerm)
Returns all terms that are included in the given parent term resp.
|
java.util.Collection<TermDto> |
getKindOfsAsDto(TermDto parentTerm)
Returns all terms that the given term is a generalization of resp.
|
Language |
getLanguageByIso(java.lang.String iso639) |
Language |
getLanguageByLabel(java.lang.String label) |
java.util.List<Language> |
getLanguagesByLocale(java.util.Enumeration<java.util.Locale> locales) |
Pager<Media> |
getMedia(DefinedTermBase definedTerm,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Returns a paged list of Media that represent a given DefinedTerm instance
|
<T extends DefinedTermBase> |
getPartOf(java.util.Set<T> definedTerms,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a paged list of distinct terms which include the terms supplied
|
java.util.List<UuidAndTitleCache<NamedArea>> |
getUuidAndTitleCacheNamedArea(java.util.List<TermVocabulary> vocs,
java.lang.Integer limit,
java.lang.String pattern,
Language lang) |
java.util.List<UuidAndTitleCache<NamedArea>> |
getUuidAndTitleCacheNamedAreaByAbbrev(java.util.List<TermVocabulary> vocs,
java.lang.Integer limit,
java.lang.String pattern,
Language lang,
NamedAreaSearchField type)
Returns a list of
UuidAndTitleCache of named areas with IdInVocabulary matches search parameter |
Pager<NamedArea> |
list(NamedAreaLevel level,
NamedAreaType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a paged list of NamedArea instances (optionally filtered by type or level)
|
<T extends DefinedTermBase> |
listByTermType(TermType termType,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Retrieves all
DefinedTermBase s with the given TermType |
UpdateResult |
moveTerm(TermDto termDto,
java.util.UUID parentUuid)
Move the given term to the given parent
|
UpdateResult |
moveTerm(TermDto termDto,
java.util.UUID parentUuid,
TermServiceImpl.TermMovePosition termMovePosition)
Move the given term to the given parent
|
java.util.UUID |
saveLanguageData(LanguageStringBase languageData) |
java.util.Map<java.util.UUID,Representation> |
saveOrUpdateRepresentations(java.util.Collection<Representation> representations) |
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
DefinedTermBase getByUri(java.net.URI uri)
uri
- java.util.UUID saveLanguageData(LanguageStringBase languageData)
java.util.List<LanguageString> getAllLanguageStrings(int limit, int start)
java.util.List<Representation> getAllRepresentations(int limit, int start)
Language getLanguageByIso(java.lang.String iso639)
java.util.List<Language> getLanguagesByLocale(java.util.Enumeration<java.util.Locale> locales)
NamedArea getAreaByTdwgAbbreviation(java.lang.String tdwgAbbreviation)
Pager<Media> getMedia(DefinedTermBase definedTerm, java.lang.Integer pageSize, java.lang.Integer pageNumber)
definedTerm
- the definedTerm represented by these mediapageSize
- The maximum number of media returned (can be null for all related media)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)Pager<NamedArea> list(NamedAreaLevel level, NamedAreaType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
level
- restrict the result set to named areas of a certain level (can be null)type
- restrict the result set to named areas of a certain type (can be null)pageSize
- The maximum number of namedAreas returned (can be null for all named areas)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)<T extends DefinedTermBase> Pager<T> getGeneralizationOf(T definedTerm, java.lang.Integer pageSize, java.lang.Integer pageNumber)
definedTerm
- The term which is a generalization of the terms returnedpageSize
- The maximum number of terms returned (can be null for all specializations)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)<T extends DefinedTermBase> Pager<T> getPartOf(java.util.Set<T> definedTerms, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
definedTerms
- the set of terms which are part of 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)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
<T extends DefinedTermBase> Pager<T> getIncludes(java.util.Collection<T> definedTerms, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
definedTerms
- the set of terms which include 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)propertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
<T extends DefinedTermBase> Pager<T> findByRepresentationText(java.lang.String label, java.lang.Class<T> clazz, java.lang.Integer pageSize, java.lang.Integer pageNumber)
label
- a string to match (exactly)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)<T extends DefinedTermBase> Pager<T> findByRepresentationAbbreviation(java.lang.String abbrev, java.lang.Class<T> clazz, java.lang.Integer pageSize, java.lang.Integer pageNumber)
label
- a string to match (exactly)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)<T extends DefinedTermBase> java.util.List<T> listByTermType(TermType termType, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
DefinedTermBase
s with the given TermType
termType
- the term type to filter the termslimit
- start
- orderHints
- propertyPaths
- DeleteResult delete(DefinedTermBase term, TermDeletionConfigurator config)
term
- the term to deleteconfig
- the configurator<TERM extends DefinedTermBase> TERM findByIdInVocabulary(java.lang.String id, java.util.UUID vocabularyUuid, java.lang.Class<TERM> clazz) throws java.lang.IllegalArgumentException
id
- idInVocabularyvocabularyUuid
- uuid of vocabularyclazz
- term clazz filter on certain term classes. May be null
for no filter.java.lang.IllegalArgumentException
- if id or vocabularyUuid is null
DeleteResult delete(java.util.UUID termUuid, TermDeletionConfigurator config)
termUuid
- config
- Language getLanguageByLabel(java.lang.String label)
label
- java.util.Map<java.util.UUID,Representation> saveOrUpdateRepresentations(java.util.Collection<Representation> representations)
representations
- java.util.List<UuidAndTitleCache<NamedArea>> getUuidAndTitleCacheNamedArea(java.util.List<TermVocabulary> vocs, java.lang.Integer limit, java.lang.String pattern, Language lang)
vocs
- limit
- pattern
- lang
- java.util.Collection<TermDto> getIncludesAsDto(TermDto parentTerm)
parentTerm
- the parent termjava.util.Collection<TermDto> getKindOfsAsDto(TermDto parentTerm)
parentTerm
- the parent termUpdateResult moveTerm(TermDto termDto, java.util.UUID parentUuid, TermServiceImpl.TermMovePosition termMovePosition)
termDto
- the TermDto
of the term to moveparentUuid
- the UUID
of the new parent termtermMovePosition
- enum to specify the position for OrderedTermBase
s in an OrderedTermVocabulary
UpdateResult moveTerm(TermDto termDto, java.util.UUID parentUuid)
termDto
- the TermDto
of the term to moveparentUuid
- the UUID
of the new parent termTermDto addNewTerm(TermType termType, java.util.UUID parentUuid, boolean isKindOf)
termType
- the TermType
of the term to createparentUuid
- the UUID
of the parent termisKindOf
- if true
the term will be added via a
kindOf relation. Otherwise it will added via a partOf relationjava.util.Collection<TermDto> findByTitleAsDto(java.lang.String title, TermType termType)
TermDto
s that match the given search parameters.title
- the term label that the terms have to matchtermType
- the termType that the terms have to matchjava.util.Collection<TermDto> findByUriAsDto(java.net.URI uri, java.lang.String termLabel, TermType termType)
TermDto
s that match the given search parameters.uri
- the URI
that the terms have to matchtermLabel
- the term label that the terms have to matchtermType
- the termType that the terms have to matchjava.util.List<UuidAndTitleCache<NamedArea>> getUuidAndTitleCacheNamedAreaByAbbrev(java.util.List<TermVocabulary> vocs, java.lang.Integer limit, java.lang.String pattern, Language lang, NamedAreaSearchField type)
UuidAndTitleCache
of named areas with IdInVocabulary matches search parametervocs
- limit
- pattern
- lang
- Copyright © 2007-2020 EDIT. All Rights Reserved.