作者:问晓 | 来源:互联网 | 2023-09-04 18:59
本文整理了Java中hudson.model.Hudson.getViews()
方法的一些代码示例,展示了Hudson.getViews()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hudson.getViews()
方法的具体详情如下:
包路径:hudson.model.Hudson
类名称:Hudson
方法名:getViews
Hudson.getViews介绍
[英]Gets the read-only list of all Views.
[中]获取所有视图的只读列表。
代码示例
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
public boolean isActivated() {
Hudson h = Hudson.getInstance();
return h.getViews().size()==1 && h.getItemMap().size()> THRESHOLD;
}
代码示例来源:origin: hudson/hudson-2.x
public boolean isActivated() {
Hudson h = Hudson.getInstance();
return h.getViews().size()==1 && h.getItemMap().size()> THRESHOLD;
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
public boolean isActivated() {
Hudson h = Hudson.getInstance();
return h.getViews().size()==1 && h.getItemMap().size()> THRESHOLD;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
public boolean isActivated() {
Hudson h = Hudson.getInstance();
return h.getViews().size() == 1 && h.getItemMap().size() > THRESHOLD;
}
代码示例来源:origin: com.marvelution.jira.plugins/hudson-apiv2-plugin
/**
* {@inheritDoc}
*/
@Override
public Views getViews() {
Views views = new Views();
for (hudson.model.View view : Hudson.getInstance().getViews()) {
log.fine("Found view '" + view.getViewName() + "'. checking permissions");
if (view.hasPermission(Hudson.READ)) {
views.add(DozerUtils.getMapper().map(view, View.class, DozerUtils.NAMEONLY_MAP_ID));
}
}
return views;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
primaryView = json.has("primaryView") ? json.getString("primaryView") : getViews().iterator().next().getViewName();
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
primaryView = json.has("primaryView") ? json.getString("primaryView") : getViews().iterator().next().getViewName();
代码示例来源:origin: hudson/hudson-2.x
primaryView = json.has("primaryView") ? json.getString("primaryView") : getViews().iterator().next().getViewName();
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
primaryView = json.has("primaryView") ? json.getString("primaryView") : getViews().iterator().next().getViewName();