adding users to the search index.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4929 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-09-26 16:24:12 +00:00
1 parent 4ae7e62fa7
commit bf591b8cb4
1 file changed
+4
@@ -700,6 +700,10 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
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 getUser(key); }
protected Collection<User> all() { return Collections.emptySet(); } // TODO
})
.add(new CollectionSearchIndex() {// for views
protected View get(String key) { return getView(key); }
protected Collection<ListView> all() { return views; }