Project

General

Profile

Actions

task #6512

closed

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

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

Status:
Worksforme
Priority:
New
Category:
cdm
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
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?

Actions #1

Updated by Anonymous about 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50
Actions #2

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.

Actions #3

Updated by Andreas Kohlbecker almost 7 years ago

the given documentation is sufficient - ticket closed

Actions #4

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
Actions

Also available in: Atom PDF