本文整理了Java中hudson.model.Hudson.getPrimaryView()
方法的一些代码示例,展示了Hudson.getPrimaryView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.getPrimaryView()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!