Revision 212e328c
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java | ||
---|---|---|
18 | 18 |
import org.eclipse.jface.dialogs.MessageDialog; |
19 | 19 |
import org.eclipse.swt.widgets.Display; |
20 | 20 |
|
21 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
21 | 22 |
import eu.etaxonomy.cdm.api.service.IAgentService; |
22 | 23 |
import eu.etaxonomy.cdm.api.service.IGroupService; |
23 | 24 |
import eu.etaxonomy.cdm.api.service.IMediaService; |
... | ... | |
58 | 59 |
public static final String WILDCARD = "*"; |
59 | 60 |
|
60 | 61 |
public static int NO_COUNT = -1; |
62 |
|
|
61 | 63 |
|
62 | 64 |
// TODO make this configurable via preferences |
63 | 65 |
private static final int MAX_RESULTS_BEFORE_WARNING = 500; |
64 | 66 |
|
65 |
public List<TaxonNameBase> findNames(IIdentifiableEntityServiceConfigurator configurator){ |
|
67 |
public List<TaxonNameBase> findNames(IIdentifiableEntityServiceConfigurator configurator, ConversationHolder conversation){ |
|
68 |
|
|
66 | 69 |
if(checkLargeResult(CdmStore.getService(INameService.class).countByTitle(configurator))){ |
67 | 70 |
List<TaxonNameBase> records = CdmStore.getService(INameService.class).findByTitle(configurator).getRecords(); |
68 | 71 |
addUuidSearchResults(records, configurator, INameService.class); |
... | ... | |
121 | 124 |
String titleSearchString = configurator.getTitleSearchString(); |
122 | 125 |
try { |
123 | 126 |
UUID uuid = UUID.fromString(titleSearchString); |
124 |
T foundRecord = CdmStore.getService(service).find(uuid);
|
|
127 |
T foundRecord = CdmStore.getService(service).load(uuid, configurator.getPropertyPaths());
|
|
125 | 128 |
if(foundRecord!=null){ |
126 | 129 |
records.add(foundRecord); |
127 | 130 |
} |
Also available in: Unified diff
missed to commit changes in search manager