task #6512
closed
document eu.etaxonomy.cdm.model.common.IIdentifiableEntity.generateTitle()
Added by Andreas Kohlbecker about 7 years ago.
Updated about 2 years ago.
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?
- Status changed from New to Resolved
- % Done changed from 0 to 50
- 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.
the given documentation is sufficient - ticket closed
- Status changed from Resolved to Worksforme
- Target version deleted (
Unassigned CDM tickets)
- % Done changed from 50 to 100
Also available in: Atom
PDF