Revision 8aa8877b
Added by Katja Luther about 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java | ||
---|---|---|
106 | 106 |
} |
107 | 107 |
|
108 | 108 |
public List<AgentBase> findAgents(IIdentifiableEntityServiceConfigurator configurator){ |
109 |
|
|
109 | 110 |
if(checkLargeResult(CdmStore.getService(IAgentService.class).countByTitle(configurator))){ |
110 | 111 |
List<AgentBase> records = CdmStore.getService(IAgentService.class).findByTitle(configurator).getRecords(); |
111 | 112 |
addUuidSearchResults(records, configurator, IAgentService.class); |
... | ... | |
124 | 125 |
String titleSearchString = configurator.getTitleSearchString(); |
125 | 126 |
try { |
126 | 127 |
UUID uuid = UUID.fromString(titleSearchString); |
127 |
T foundRecord = CdmStore.getService(service).load(uuid, configurator.getPropertyPaths()); |
|
128 |
T foundRecord = (T) CdmStore.getService(service).load(uuid, configurator.getPropertyPaths());
|
|
128 | 129 |
if(foundRecord!=null){ |
129 | 130 |
records.add(foundRecord); |
130 | 131 |
} |
Also available in: Unified diff
minor adaption to java 1.8