Class CachingTerminologyEntryDao
java.lang.Object
com.atlassian.jira.i18n.terminology.CachingTerminologyEntryDao
- All Implemented Interfaces:
- TerminologyEntryDao,- InitializingComponent
public class CachingTerminologyEntryDao
extends Object
implements TerminologyEntryDao, InitializingComponent
A TerminologyEntryDao that caches gets from its delegate.
 
In the past the feature has been called 'Nomenclature'. The new name for the feature is 'Terminology'.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCachingTerminologyEntryDao(TerminologyEntryDao delegate, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled after all the beans are constructed and the ApplicationContext is fully populated.Returns a Collection of all terminology entries with the latest timestamps for each OriginalName.Returns a collection of all terminology entries stored in a database.getTerminologyEntry(String originalName) Returns the terminology entry with the latest timestamp for the given OriginalName.voidonClearCache(ClearCacheEvent event) voidsetTerminologyEntries(Collection<NomenclatureEntryDTO> terminologyEntryDTOs) Writes a new name for multiple Jira entities (e.g.
- 
Field Details- 
TERMINOLOGY_CACHE_NAME
 
- 
- 
Constructor Details- 
CachingTerminologyEntryDaopublic CachingTerminologyEntryDao(TerminologyEntryDao delegate, com.atlassian.cache.CacheManager cacheManager, com.atlassian.event.api.EventPublisher eventPublisher) 
 
- 
- 
Method Details- 
afterInstantiationDescription copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
- afterInstantiationin interface- InitializingComponent
- Throws:
- Exception
 
- 
onClearCache
- 
getTerminologyEntryDescription copied from interface:TerminologyEntryDaoReturns the terminology entry with the latest timestamp for the given OriginalName.- Specified by:
- getTerminologyEntryin interface- TerminologyEntryDao
- Parameters:
- originalName- The original name of a Jira entity (e.g. "Sprint", "Epic").
- Returns:
- The latest terminology entry or null if none has been set.
 
- 
getAllTerminologyEntriesDescription copied from interface:TerminologyEntryDaoReturns a Collection of all terminology entries with the latest timestamps for each OriginalName.- Specified by:
- getAllTerminologyEntriesin interface- TerminologyEntryDao
- Returns:
- A Collection of the latest entries for each Jira entity (e.g. "Sprint", "Epic"). It can be empty.
 
- 
getHistoricalTerminologyEntriesDescription copied from interface:TerminologyEntryDaoReturns a collection of all terminology entries stored in a database. The entries are sorted by a timestamp in descending order.- Specified by:
- getHistoricalTerminologyEntriesin interface- TerminologyEntryDao
- Returns:
- A collection of all terminology entries.
 
- 
setTerminologyEntriesDescription copied from interface:TerminologyEntryDaoWrites a new name for multiple Jira entities (e.g. "Sprint", "Epic") to the database. Note that this is append-only; the other methods in this interface always return the latest entry for each of the entities renamed in this way.- Specified by:
- setTerminologyEntriesin interface- TerminologyEntryDao
- Parameters:
- terminologyEntryDTOs- A collection of new entries to write.
 
 
-