// implementation of Hudson is immune to view name change.
}
@Override
public SearchIndexBuilder makeSearchIndex() {
return super.makeSearchIndex().add("configure", "config", "configure").add("manage").add("log").add(getPrimaryView().makeSearchIndex()).add(new CollectionSearchIndex() {// for computers
protected Computer get(String key) {
return getComputer(key);
}
protected Collection<Computer> all() {
return computers.values();
}
}).add(new CollectionSearchIndex() {// for users
protected User get(String key) {
return User.get(key, false);
}
protected Collection<User> all() {
return User.getAll();
}
}).add(new CollectionSearchIndex() {// for views
protected View get(String key) {
return getView(key);
}