Revision c508431a
Added by Andreas Müller over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/SearchManager.java | ||
---|---|---|
53 | 53 |
*/ |
54 | 54 |
public class SearchManager { |
55 | 55 |
|
56 |
public static final List NO_RESULTS = Arrays.asList(new Object[]{}); |
|
57 |
|
|
58 | 56 |
public static final String WILDCARD = "*"; //$NON-NLS-1$ |
59 | 57 |
|
60 | 58 |
public static int NO_COUNT = -1; |
... | ... | |
75 | 73 |
IIdentifiableEntityServiceConfigurator configurator) { |
76 | 74 |
if(true){ |
77 | 75 |
//if activated again remember to add uuid search results like in other searches |
78 |
return NO_RESULTS;
|
|
76 |
return Arrays.asList(new NameRelationship[]{});
|
|
79 | 77 |
} |
80 | 78 |
|
81 | 79 |
List<NameRelationship> relationships = new ArrayList<>(); |
82 | 80 |
List<RelationshipBase> all = CdmStore.getService(INameService.class).getAllRelationships(0, 0); |
83 | 81 |
|
84 |
for (RelationshipBase relationship : all){ |
|
82 |
for (RelationshipBase<?,?,?> relationship : all){
|
|
85 | 83 |
if(relationship instanceof NameRelationship){ |
86 | 84 |
relationships.add((NameRelationship) relationship); |
87 | 85 |
} |
Also available in: Unified diff
cleanup