hudson.model.Node.makeSearchIndex()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中hudson.model.Node.makeSearchIndex()方法的一些代码示例,展示了Node.makeSearchIndex()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.makeSearchIndex()方法的具体详情如下:
包路径:hudson.model.Node
类名称:Node
方法名:makeSearchIndex

Node.makeSearchIndex介绍

暂无

代码示例

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

  1. public SearchIndexBuilder superMakeSearchIndex() {
  2. return super.makeSearchIndex();
  3. }

代码示例来源:origin: org.jenkins-ci.plugins/python-wrapper

  1. @Override
  2. public SearchIndexBuilder makeSearchIndex() {
  3. initPython();
  4. if (pexec.isImplemented(16)) {
  5. return (SearchIndexBuilder) pexec.execPython("make_search_index");
  6. } else {
  7. return super.makeSearchIndex();
  8. }
  9. }

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

  1. @Override
  2. public SearchIndexBuilder makeSearchIndex() {
  3. return super.makeSearchIndex().add("configure", "config", "configure").add("manage").add("log").add(getPrimaryView().makeSearchIndex()).add(new CollectionSearchIndex() {// for computers
  4. protected Computer get(String key) {
  5. return getComputer(key);
  6. }
  7. protected Collection<Computer> all() {
  8. return computers.values();
  9. }
  10. }).add(new CollectionSearchIndex() {// for users
  11. protected User get(String key) {
  12. return User.get(key, false);
  13. }
  14. protected Collection<User> all() {
  15. return User.getAll();
  16. }
  17. }).add(new CollectionSearchIndex() {// for views
  18. protected View get(String key) {
  19. return getView(key);
  20. }
  21. protected Collection<View> all() {
  22. return views;
  23. }
  24. });
  25. }

代码示例来源:origin: org.eclipse.hudson/hudson-core

  1. @Override
  2. public SearchIndexBuilder makeSearchIndex() {
  3. return super.makeSearchIndex().add("configure", "config", "configure").add("manage").add("log").add(getPrimaryView().makeSearchIndex()).add(new CollectionSearchIndex() {
  4. // for computers
  5. protected Computer get(String key) {
  6. return getComputer(key);
  7. }
  8. protected Collection<Computer> all() {
  9. return computers.values();
  10. }
  11. }).add(new CollectionSearchIndex() {
  12. // for users
  13. protected User get(String key) {
  14. return User.get(key, false);
  15. }
  16. protected Collection<User> all() {
  17. return User.getAll();
  18. }
  19. }).add(new CollectionSearchIndex() {
  20. // for views
  21. protected View get(String key) {
  22. return getView(key);
  23. }
  24. protected Collection<View> all() {
  25. return views;
  26. }
  27. });
  28. }

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

  1. @Override
  2. public SearchIndexBuilder makeSearchIndex() {
  3. return super.makeSearchIndex().add("configure", "config", "configure").add("manage").add("log").add(getPrimaryView().makeSearchIndex()).add(new CollectionSearchIndex() {// for computers
  4. protected Computer get(String key) {
  5. return getComputer(key);
  6. }
  7. protected Collection<Computer> all() {
  8. return computers.values();
  9. }
  10. }).add(new CollectionSearchIndex() {// for users
  11. protected User get(String key) {
  12. return User.get(key, false);
  13. }
  14. protected Collection<User> all() {
  15. return User.getAll();
  16. }
  17. }).add(new CollectionSearchIndex() {// for views
  18. protected View get(String key) {
  19. return getView(key);
  20. }
  21. protected Collection<View> all() {
  22. return views;
  23. }
  24. });
  25. }

代码示例来源:origin: hudson/hudson-2.x

  1. @Override
  2. public SearchIndexBuilder makeSearchIndex() {
  3. return super.makeSearchIndex().add("configure", "config", "configure").add("manage").add("log").add(getPrimaryView().makeSearchIndex()).add(new CollectionSearchIndex() {// for computers
  4. protected Computer get(String key) {
  5. return getComputer(key);
  6. }
  7. protected Collection<Computer> all() {
  8. return computers.values();
  9. }
  10. }).add(new CollectionSearchIndex() {// for users
  11. protected User get(String key) {
  12. return User.get(key, false);
  13. }
  14. protected Collection<User> all() {
  15. return User.getAll();
  16. }
  17. }).add(new CollectionSearchIndex() {// for views
  18. protected View get(String key) {
  19. return getView(key);
  20. }
  21. protected Collection<View> all() {
  22. return views;
  23. }
  24. });
  25. }

相关文章