task #6512
closeddocument eu.etaxonomy.cdm.model.common.IIdentifiableEntity.generateTitle()
100%
Description
The method IdentifiableEntity.generateTitle() is completely undocumented. For References I only get a citation string using generateTitle() not with getTitleCache(), what's the difference and why do I need to call getTitleCache() some some cdm types while I need to use generateTitle() for others?
Updated by Anonymous about 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|9ff954bd55f6217c9f235c6c632a9175cdea9263.
Updated by Andreas Müller about 7 years ago
- Tracker changed from bug to task
- Assignee changed from Andreas Müller to Andreas Kohlbecker
Documentation added.
For References I only get a citation string using generateTitle() not with getTitleCache()
I can't see this. Generally getTitleCache returns the titleCache. This is either the protected titleCache or the precomputed titleCache or the titleCache computed with generateTitle. But it is up to the implementing classes if they require a recompute each time or only if data has obviously changed (e.g. setXXX or addXXX was called on the entity). If external objects have changed (e.g. the title of the author) the titleCache may not be refreshed.
Can you give an example why you think behavior is different? And in which context you use it. Or just close the ticket if the given documentation is sufficient.
Updated by Andreas Kohlbecker almost 7 years ago
the given documentation is sufficient - ticket closed
Updated by Andreas Müller about 2 years ago
- Status changed from Resolved to Worksforme
- Target version deleted (
Unassigned CDM tickets) - % Done changed from 50 to 100