Revision 826c86cb
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Classification.java | ||
---|---|---|
633 | 633 |
|
634 | 634 |
@Override |
635 | 635 |
public String generateTitle() { |
636 |
return name.getText(); |
|
636 |
//TODO implement as cache strategy |
|
637 |
if (protectedTitleCache){ |
|
638 |
return this.titleCache; |
|
639 |
}else if (name != null){ |
|
640 |
return name.getText(); |
|
641 |
}else if (reference != null){ |
|
642 |
return this.reference.getTitleCache(); |
|
643 |
}else{ |
|
644 |
return this.toString(); |
|
645 |
} |
|
637 | 646 |
} |
638 | 647 |
|
639 | 648 |
public int compareTo(Object o) { |
649 |
//TODO needs to be implemented |
|
640 | 650 |
return 0; |
641 | 651 |
} |
642 | 652 |
|
... | ... | |
691 | 701 |
return null; |
692 | 702 |
} |
693 | 703 |
|
694 |
|
|
695 |
|
|
696 |
|
|
697 |
|
|
698 | 704 |
} |
699 | 705 |
|
700 |
|
|
701 | 706 |
} |
Also available in: Unified diff
Fill empty titleCache only during save and improve classification titleCache generation #5849