Revision 90046bc4
Added by Andreas Müller almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/taxon/TaxonBaseShortSecCacheStrategy.java | ||
---|---|---|
73 | 73 |
*/ |
74 | 74 |
private String getSecundumPart(T taxonBase) { |
75 | 75 |
String result = "???"; |
76 |
Reference<?> sec = taxonBase.getSec();
|
|
76 |
Reference sec = taxonBase.getSec(); |
|
77 | 77 |
sec = HibernateProxyHelper.deproxy(sec, Reference.class); |
78 | 78 |
if (sec != null){ |
79 | 79 |
if (sec.isProtectedTitleCache()){ |
... | ... | |
174 | 174 |
|
175 | 175 |
//ref. |
176 | 176 |
List<TaggedText> secTags; |
177 |
Reference<?> ref = taxonBase.getSec();
|
|
177 |
Reference ref = taxonBase.getSec(); |
|
178 | 178 |
ref = HibernateProxyHelper.deproxy(ref, Reference.class); |
179 | 179 |
if (ref != null){ |
180 | 180 |
secTags = getSecReferenceTags(ref); |
... | ... | |
196 | 196 |
/** |
197 | 197 |
* @param ref |
198 | 198 |
*/ |
199 |
private List<TaggedText> getSecReferenceTags(Reference<?> sec) {
|
|
199 |
private List<TaggedText> getSecReferenceTags(Reference sec) { |
|
200 | 200 |
List<TaggedText> tags = new ArrayList<TaggedText>(); |
201 | 201 |
|
202 | 202 |
if (sec.isProtectedTitleCache()){ |
... | ... | |
231 | 231 |
return tags; |
232 | 232 |
} |
233 | 233 |
|
234 |
private List<TaggedText> handlePerson(Reference<?> sec) {
|
|
234 |
private List<TaggedText> handlePerson(Reference sec) { |
|
235 | 235 |
List<TaggedText> tags = new ArrayList<TaggedText>(); |
236 | 236 |
|
237 | 237 |
Person author = HibernateProxyHelper.deproxy(sec.getAuthorship(), Person.class); |
... | ... | |
245 | 245 |
return tags; |
246 | 246 |
} |
247 | 247 |
|
248 |
private List<TaggedText> handleTeam(Reference<?> sec) {
|
|
248 |
private List<TaggedText> handleTeam(Reference sec) { |
|
249 | 249 |
List<TaggedText> tags = new ArrayList<TaggedText>(); |
250 | 250 |
|
251 | 251 |
Team authorTeam = HibernateProxyHelper.deproxy(sec.getAuthorship(), Team.class); |
Also available in: Unified diff
Remove generics from Reference in cdmlib-model #5830