Project

General

Profile

task #6512

document eu.etaxonomy.cdm.model.common.IIdentifiableEntity.generateTitle()

Added by Andreas Kohlbecker about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
New
Category:
cdm
Target version:
Start date:
03/15/2017
Due date:
% Done:

50%

Severity:
normal

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?

Associated revisions

Revision 9ff954bd (diff)
Added by unknown about 2 years ago

fix #6512 documentation added to generateTitle and getTitleCache

History

#1 Updated by Anonymous about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#2 Updated by Andreas Müller about 2 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.

#3 Updated by Andreas Kohlbecker about 2 years ago

the given documentation is sufficient - ticket closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)