Revision 3267b6d8
Added by Andreas Müller over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/CollectorSelectionDialog.java | ||
---|---|---|
18 | 18 |
import eu.etaxonomy.cdm.model.agent.AgentBase; |
19 | 19 |
import eu.etaxonomy.cdm.model.agent.Person; |
20 | 20 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
21 |
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity; |
|
22 | 21 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
23 | 22 |
import eu.etaxonomy.cdm.persistence.dto.TeamOrPersonUuidAndTitleCache; |
24 | 23 |
import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache; |
... | ... | |
97 | 96 |
|
98 | 97 |
model = CdmStore.getService(IAgentService.class).getUuidAndTitleCacheWithCollectorTitleCache(clazz, limitOfInitialElements, pattern); |
99 | 98 |
} |
100 |
|
|
101 |
protected String getTitle(AgentBase cdmObject) { |
|
99 |
|
|
100 |
@Override |
|
101 |
protected String getTitle(AgentBase<?> cdmObject) { |
|
102 | 102 |
if(cdmObject == null){ |
103 | 103 |
return ""; |
104 | 104 |
} |
105 | 105 |
|
106 | 106 |
if (cdmObject instanceof TeamOrPersonBase) { |
107 |
return ((TeamOrPersonBase) cdmObject).getCollectorTitleCache(); |
|
107 |
return ((TeamOrPersonBase<?>) cdmObject).getCollectorTitleCache();
|
|
108 | 108 |
} |
109 | 109 |
|
110 | 110 |
throw new IllegalArgumentException("Generic method only" + |
111 | 111 |
" supports cdmObject of type TeamOrPersonBase." + |
112 | 112 |
" Please implement specific method in subclass."); |
113 | 113 |
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 | 114 |
} |
Also available in: Unified diff
cleanup