Revision d7919b1c
Added by Andreas Müller over 7 years ago
cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/name/TestingZoologicalNameCacheStrategy.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import java.util.List; |
13 | 13 |
|
14 |
import eu.etaxonomy.cdm.model.name.ZoologicalName; |
|
14 |
import eu.etaxonomy.cdm.model.name.IZoologicalName;
|
|
15 | 15 |
import eu.etaxonomy.cdm.strategy.cache.HTMLTagRules; |
16 | 16 |
import eu.etaxonomy.cdm.strategy.cache.TaggedText; |
17 | 17 |
import eu.etaxonomy.cdm.strategy.cache.name.INonViralNameCacheStrategy; |
18 | 18 |
|
19 |
public class TestingZoologicalNameCacheStrategy implements INonViralNameCacheStrategy<ZoologicalName> { |
|
19 |
public class TestingZoologicalNameCacheStrategy implements INonViralNameCacheStrategy<IZoologicalName> {
|
|
20 | 20 |
|
21 | 21 |
@Override |
22 |
public String getAuthorshipCache(ZoologicalName nonViralName) { |
|
22 |
public String getAuthorshipCache(IZoologicalName nonViralName) {
|
|
23 | 23 |
return "test.zoological.authorshipCache"+ nonViralName.getId(); |
24 | 24 |
} |
25 | 25 |
|
26 | 26 |
@Override |
27 |
public String getLastEpithet(ZoologicalName taxonNameBase) { |
|
27 |
public String getLastEpithet(IZoologicalName taxonNameBase) {
|
|
28 | 28 |
return "test.zoological.lastEpithet"+ taxonNameBase.getId(); |
29 | 29 |
} |
30 | 30 |
|
31 | 31 |
@Override |
32 |
public String getNameCache(ZoologicalName taxonNameBase) { |
|
32 |
public String getNameCache(IZoologicalName taxonNameBase) {
|
|
33 | 33 |
return "test.zoological.nameCache"+ taxonNameBase.getId(); |
34 | 34 |
} |
35 | 35 |
|
36 | 36 |
@Override |
37 |
public String getFullTitleCache(ZoologicalName taxonNameBase) { |
|
37 |
public String getFullTitleCache(IZoologicalName taxonNameBase) {
|
|
38 | 38 |
return "test.zoological.fullTitleCache"+ taxonNameBase.getId(); |
39 | 39 |
} |
40 | 40 |
|
41 | 41 |
|
42 | 42 |
@Override |
43 |
public String getTitleCache(ZoologicalName object) { |
|
43 |
public String getTitleCache(IZoologicalName object) {
|
|
44 | 44 |
return "test.zoological.titleCache"+ object.getId(); |
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
@Override |
48 |
public List<TaggedText> getTaggedTitle(ZoologicalName taxonName) { |
|
48 |
public List<TaggedText> getTaggedTitle(IZoologicalName taxonName) {
|
|
49 | 49 |
// TODO Auto-generated method stub |
50 | 50 |
return null; |
51 | 51 |
} |
52 | 52 |
|
53 | 53 |
@Override |
54 |
public List<TaggedText> getTaggedFullTitle(ZoologicalName taxonName) { |
|
54 |
public List<TaggedText> getTaggedFullTitle(IZoologicalName taxonName) {
|
|
55 | 55 |
// TODO Auto-generated method stub |
56 | 56 |
return null; |
57 | 57 |
} |
58 | 58 |
|
59 | 59 |
@Override |
60 |
public List<TaggedText> getTaggedName(ZoologicalName taxonName) { |
|
60 |
public List<TaggedText> getTaggedName(IZoologicalName taxonName) {
|
|
61 | 61 |
// TODO Auto-generated method stub |
62 | 62 |
return null; |
63 | 63 |
} |
64 | 64 |
|
65 | 65 |
@Override |
66 |
public String getTitleCache(ZoologicalName nonViralName, HTMLTagRules htmlTagRules) { |
|
66 |
public String getTitleCache(IZoologicalName nonViralName, HTMLTagRules htmlTagRules) {
|
|
67 | 67 |
// TODO Auto-generated method stub |
68 | 68 |
return null; |
69 | 69 |
} |
70 | 70 |
|
71 | 71 |
@Override |
72 |
public String getFullTitleCache(ZoologicalName nonViralName, |
|
72 |
public String getFullTitleCache(IZoologicalName nonViralName,
|
|
73 | 73 |
HTMLTagRules htmlTagRules) { |
74 | 74 |
// TODO Auto-generated method stub |
75 | 75 |
return null; |
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
@Override |
79 |
public List<TaggedText> getNomStatusTags(ZoologicalName taxonName, boolean includeSeparatorBefore, |
|
79 |
public List<TaggedText> getNomStatusTags(IZoologicalName taxonName, boolean includeSeparatorBefore,
|
|
80 | 80 |
boolean includeSeparatorAfter) { |
81 | 81 |
// TODO Auto-generated method stub |
82 | 82 |
return null; |
Also available in: Unified diff
ref #6362, ref #6365 remove occurrence of NonViralName, BotanicalName, ZoologicalName and others