@ParametersAreNonnullByDefault public class TerminologyEntryReaderImpl extends Object implements TerminologyEntryReader
Constructor and Description |
---|
TerminologyEntryReaderImpl(TerminologyEntryDao terminologyEntryDao) |
Modifier and Type | Method and Description |
---|---|
Collection<TerminologyEntry> |
getAllTerminologyEntries()
Collection of
TerminologyEntry active on this instance. |
Collection<TerminologyEntry> |
getHistoricalTerminologyEntries(String originalName)
Collection of all
TerminologyEntry that have been applied to the originalName . |
Optional<TerminologyEntry> |
getTerminologyEntry(String originalName) |
public TerminologyEntryReaderImpl(TerminologyEntryDao terminologyEntryDao)
public Optional<TerminologyEntry> getTerminologyEntry(String originalName)
getTerminologyEntry
in interface TerminologyEntryReader
originalName
- of the renamed field. Names that are allowed to be renamed are 'sprint' or 'epic'.TerminologyEntry
, or Optional.empty()
if the provided name is not one of allowed names.public Collection<TerminologyEntry> getAllTerminologyEntries()
TerminologyEntryReader
TerminologyEntry
active on this instance.
For each allowed name the collection contains either an entry created by TerminologyEntryWriter.changeTerminology(com.atlassian.jira.i18n.terminology.TerminologyEntryWriter.TerminologyValidationResult)
or a default entry.
A default entry represents original terminology used in Jira, for example where an original name is 'sprint' and new name is also 'sprint'. It is returned when terminology hasn't been changed.
getAllTerminologyEntries
in interface TerminologyEntryReader
public Collection<TerminologyEntry> getHistoricalTerminologyEntries(String originalName)
TerminologyEntryReader
TerminologyEntry
that have been applied to the originalName
.
It includes both active and not active entries. The entries are sorted by a timestamp in descending order.getHistoricalTerminologyEntries
in interface TerminologyEntryReader
originalName
- a name of a renamed field.TerminologyEntry
set to the specified original name.Copyright © 2002-2023 Atlassian. All Rights Reserved.