1
|
/**
|
2
|
* Copyright (C) 2019 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.strategy.cache.description;
|
10
|
|
11
|
import java.util.UUID;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
|
14
|
import eu.etaxonomy.cdm.model.description.TaxonNameDescription;
|
15
|
|
16
|
/**
|
17
|
* @author k.luther
|
18
|
* @since 27 Feb 2019
|
19
|
*
|
20
|
*/
|
21
|
public class TaxonNameDescriptionDefaultCacheStrategy extends DescriptionBaseDefaultCacheStrategy<TaxonNameDescription> {
|
22
|
|
23
|
private static final long serialVersionUID = -5395563265358892266L;
|
24
|
final static UUID uuid = UUID.fromString("8fa98b76-f52a-4f5d-aaaf-77addda5f9df");
|
25
|
|
26
|
@Override
|
27
|
protected UUID getUuid() {
|
28
|
return uuid;
|
29
|
}
|
30
|
|
31
|
@Override
|
32
|
public String getTitleCache(TaxonNameDescription nameDescription) {
|
33
|
String title = super.getTitleCache(nameDescription);
|
34
|
|
35
|
return title;
|
36
|
}
|
37
|
|
38
|
@Override
|
39
|
protected String getDescriptionName() {
|
40
|
return "Factual data set";
|
41
|
}
|
42
|
|
43
|
@Override
|
44
|
protected IdentifiableEntity getDescriptionEntity(TaxonNameDescription description) {
|
45
|
return description.getTaxonName();
|
46
|
}
|
47
|
|
48
|
}
|