hudson.model.Hudson.getPrimaryView()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(126)

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

Hudson.getPrimaryView介绍

[英]Returns the primary View that renders the top-page of Hudson.
[中]返回呈现Hudson顶部页面的主视图。

代码示例

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

/**
 * Fallback to the primary view.
 */
public View getStaplerFallback() {
  return getPrimaryView();
}

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

/**
 * Fallback to the primary view.
 */
public View getStaplerFallback() {
  return getPrimaryView();
}

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

/**
 * Fallback to the primary view.
 */
public View getStaplerFallback() {
  return getPrimaryView();
}

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

/**
 * Fallback to the primary view.
 */
public View getStaplerFallback() {
  return getPrimaryView();
}

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

/**
 * Accepts the new description.
 */
public synchronized void doSubmitDescription(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
  getPrimaryView().doSubmitDescription(req, rsp);
}

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

/**
 * Accepts the new description.
 */
public synchronized void doSubmitDescription(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
  getPrimaryView().doSubmitDescription(req, rsp);
}

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

/**
 * Accepts the new description.
 */
public synchronized void doSubmitDescription(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
  getPrimaryView().doSubmitDescription(req, rsp);
}

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

/**
 * If true, this is a view that renders the top page of Hudson.
 */
public boolean isDefault() {
  return Hudson.getInstance().getPrimaryView()==this;
}

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

/**
 * If true, this is a view that renders the top page of Hudson.
 */
public boolean isDefault() {
  return Hudson.getInstance().getPrimaryView()==this;
}

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

/**
 * Accepts the new description.
 */
public synchronized void doSubmitDescription(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
  getPrimaryView().doSubmitDescription(req, rsp);
}

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

/**
 * If true, this is a view that renders the top page of Hudson.
 */
public boolean isDefault() {
  return Hudson.getInstance().getPrimaryView() == this;
}

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

/**
 * If true, this is a view that renders the top page of Hudson.
 */
public boolean isDefault() {
  return Hudson.getInstance().getPrimaryView()==this;
}

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

public synchronized View getView(String name) {
  for (View v : views) {
    if (v.getViewName().equals(name)) {
      return v;
    }
  }
  if (name != null && !name.equals(primaryView)) {
    // Fallback to subview of primary view if it is a ViewGroup
    View pv = getPrimaryView();
    if (pv instanceof ViewGroup) {
      return ((ViewGroup) pv).getView(name);
    }
  }
  return null;
}

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

public synchronized View getView(String name) {
  for (View v : views) {
    if (v.getViewName().equals(name)) {
      return v;
    }
  }
  if (name != null && !name.equals(primaryView)) {
    // Fallback to subview of primary view if it is a ViewGroup
    View pv = getPrimaryView();
    if (pv instanceof ViewGroup) {
      return ((ViewGroup) pv).getView(name);
    }
  }
  return null;
}

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

public synchronized View getView(String name) {
  for (View v : views) {
    if (v.getViewName().equals(name)) {
      return v;
    }
  }
  if (name != null && !name.equals(primaryView)) {
    // Fallback to subview of primary view if it is a ViewGroup
    View pv = getPrimaryView();
    if (pv instanceof ViewGroup) {
      return ((ViewGroup) pv).getView(name);
    }
  }
  return null;
}

代码示例来源:origin: org.hudsonci.plugins/claim

public View getOwner() {
  View view = Stapler.getCurrentRequest().findAncestorObject(View.class);
  if (view != null) {
    return view;
  } else {
    return Hudson.getInstance().getPrimaryView();
  }
}

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

public View getProxiedView() {
  if (proxiedViewName == null) {
    // just so we avoid errors just after creation
    return Hudson.getInstance().getPrimaryView();
  } else {
    return Hudson.getInstance().getView(proxiedViewName);
  }
}

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

public View getProxiedView() {
  if (proxiedViewName == null) {
    // just so we avoid errors just after creation
    return Hudson.getInstance().getPrimaryView();
  } else {
    return Hudson.getInstance().getView(proxiedViewName);
  }
}

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

public View getProxiedView() {
  if (proxiedViewName == null) {
    // just so we avoid errors just after creation
    return Hudson.getInstance().getPrimaryView();
  } else {
    return Hudson.getInstance().getView(proxiedViewName);
  }
}

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

public View getProxiedView() {
  if (proxiedViewName == null) {
    // just so we avoid errors just after creation
    return Hudson.getInstance().getPrimaryView();
  } else {
    return Hudson.getInstance().getView(proxiedViewName);
  }
}

相关文章

Hudson类方法