1
|
/**
|
2
|
* Copyright (C) 2009 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
|
|
10
|
package eu.etaxonomy.cdm.persistence.dao.hibernate.name;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.name.ZoologicalName;
|
15
|
import eu.etaxonomy.cdm.strategy.cache.HTMLTagRules;
|
16
|
import eu.etaxonomy.cdm.strategy.cache.TaggedText;
|
17
|
import eu.etaxonomy.cdm.strategy.cache.name.INonViralNameCacheStrategy;
|
18
|
|
19
|
public class TestingZoologicalNameCacheStrategy implements INonViralNameCacheStrategy<ZoologicalName> {
|
20
|
|
21
|
@Override
|
22
|
public String getAuthorshipCache(ZoologicalName nonViralName) {
|
23
|
return "test.zoological.authorshipCache"+ nonViralName.getId();
|
24
|
}
|
25
|
|
26
|
@Override
|
27
|
public String getLastEpithet(ZoologicalName taxonNameBase) {
|
28
|
return "test.zoological.lastEpithet"+ taxonNameBase.getId();
|
29
|
}
|
30
|
|
31
|
@Override
|
32
|
public String getNameCache(ZoologicalName taxonNameBase) {
|
33
|
return "test.zoological.nameCache"+ taxonNameBase.getId();
|
34
|
}
|
35
|
|
36
|
@Override
|
37
|
public String getFullTitleCache(ZoologicalName taxonNameBase) {
|
38
|
return "test.zoological.fullTitleCache"+ taxonNameBase.getId();
|
39
|
}
|
40
|
|
41
|
|
42
|
@Override
|
43
|
public String getTitleCache(ZoologicalName object) {
|
44
|
return "test.zoological.titleCache"+ object.getId();
|
45
|
}
|
46
|
|
47
|
@Override
|
48
|
public List<TaggedText> getTaggedTitle(ZoologicalName taxonName) {
|
49
|
// TODO Auto-generated method stub
|
50
|
return null;
|
51
|
}
|
52
|
|
53
|
@Override
|
54
|
public List<TaggedText> getTaggedFullTitle(ZoologicalName taxonName) {
|
55
|
// TODO Auto-generated method stub
|
56
|
return null;
|
57
|
}
|
58
|
|
59
|
@Override
|
60
|
public List<TaggedText> getTaggedName(ZoologicalName taxonName) {
|
61
|
// TODO Auto-generated method stub
|
62
|
return null;
|
63
|
}
|
64
|
|
65
|
@Override
|
66
|
public String getTitleCache(ZoologicalName nonViralName, HTMLTagRules htmlTagRules) {
|
67
|
// TODO Auto-generated method stub
|
68
|
return null;
|
69
|
}
|
70
|
|
71
|
@Override
|
72
|
public String getFullTitleCache(ZoologicalName nonViralName,
|
73
|
HTMLTagRules htmlTagRules) {
|
74
|
// TODO Auto-generated method stub
|
75
|
return null;
|
76
|
}
|
77
|
|
78
|
@Override
|
79
|
public List<TaggedText> getNomStatusTags(ZoologicalName taxonName, boolean includeSeparatorBefore,
|
80
|
boolean includeSeparatorAfter) {
|
81
|
// TODO Auto-generated method stub
|
82
|
return null;
|
83
|
}
|
84
|
|
85
|
}
|