@Override public int compare(View o1, View o2) { return o1.getDisplayName().compareTo(o2.getDisplayName()); } });
@Override public int compare(View o1, View o2) { return o1.getDisplayName().compareTo(o2.getDisplayName()); } });
@Override protected int run() throws Exception { view.checkPermission(View.CONFIGURE); if (!(view instanceof DirectlyModifiableView)) throw new IllegalStateException("'" + view.getDisplayName() + "' view can not be modified directly"); for (TopLevelItem job: jobs) { ((DirectlyModifiableView) view).remove(job); } return 0; } }
@Override protected int run() throws Exception { view.checkPermission(View.CONFIGURE); if (!(view instanceof DirectlyModifiableView)) throw new IllegalStateException( "'" + view.getDisplayName() + "' view can not be modified directly"); for (TopLevelItem job: jobs) { ((DirectlyModifiableView) view).add(job); } return 0; } }
public void doRssLatest( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { List<Run> lastBuilds = new ArrayList<Run>(); for (TopLevelItem item : getItems()) { if (item instanceof Job) { Job job = (Job) item; Run lb = job.getLastBuild(); if(lb!=null) lastBuilds.add(lb); } } RSS.forwardToRss(getDisplayName()+" last builds only", getUrl(), lastBuilds, Run.FEED_ADAPTER_LATEST, req, rsp ); }
/** * Validation of the display name field. * * @param view the view to check the new display name of. * @param value the proposed new display name. * @return the validation result. * @since 2.37 */ @SuppressWarnings("unused") // expose utility check method to subclasses protected FormValidation checkDisplayName(@Nonnull View view, @CheckForNull String value) { if (StringUtils.isBlank(value)) { // no custom name, no need to check return FormValidation.ok(); } for (View v: view.owner.getViews()) { if (v.getViewName().equals(view.getViewName())) { continue; } if (StringUtils.equals(v.getDisplayName(), value)) { return FormValidation.warning(Messages.View_DisplayNameNotUniqueWarning(value)); } } return FormValidation.ok(); }
"Failed to find root task for queue item '%s' for " + "view '%s' in under %d iterations, aborting!", item.getDisplayName(), getDisplayName(), FILTER_LOOP_MAX_COUNT)); break;
private void rss(StaplerRequest req, StaplerResponse rsp, String suffix, RunList runs) throws IOException, ServletException { RSS.forwardToRss(getDisplayName()+ suffix, getUrl(), runs.newBuilds(), Run.FEED_ADAPTER, req, rsp ); }
public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { ContextMenu menu = new ContextMenu(); for (View view : getViews()) { menu.add(view.getViewUrl(),view.getDisplayName()); } return menu; }
@Override public int compare(View o1, View o2) { return o1.getDisplayName().compareTo(o2.getDisplayName()); } });
@Override public int compare(View o1, View o2) { return o1.getDisplayName().compareTo(o2.getDisplayName()); } });
@Override protected int run() throws Exception { view.checkPermission(View.CONFIGURE); if (!(view instanceof DirectlyModifiableView)) throw new IllegalStateException( "'" + view.getDisplayName() + "' view can not be modified directly"); for (TopLevelItem job: jobs) { ((DirectlyModifiableView) view).add(job); } return 0; } }
@Override protected int run() throws Exception { view.checkPermission(View.CONFIGURE); if (!(view instanceof DirectlyModifiableView)) throw new IllegalStateException("'" + view.getDisplayName() + "' view can not be modified directly"); for (TopLevelItem job: jobs) { ((DirectlyModifiableView) view).remove(job); } return 0; } }
public void doRssLatest( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { List<Run> lastBuilds = new ArrayList<Run>(); for (TopLevelItem item : getItems()) { if (item instanceof Job) { Job job = (Job) item; Run lb = job.getLastBuild(); if(lb!=null) lastBuilds.add(lb); } } RSS.forwardToRss(getDisplayName()+" last builds only", getUrl(), lastBuilds, Run.FEED_ADAPTER_LATEST, req, rsp ); }
public void doRssLatest( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { List<Run> lastBuilds = new ArrayList<Run>(); for (TopLevelItem item : getItems()) { if (item instanceof Job) { Job job = (Job) item; Run lb = job.getLastBuild(); if(lb!=null) lastBuilds.add(lb); } } RSS.forwardToRss(getDisplayName()+" last builds only", getUrl(), lastBuilds, Run.FEED_ADAPTER_LATEST, req, rsp ); }
@Override public String getDisplayName() { initPython(); if (pexec.isImplemented(13)) { return (String) pexec.execPython("get_display_name"); } else { return super.getDisplayName(); } }
private void rss(StaplerRequest req, StaplerResponse rsp, String suffix, RunList runs) throws IOException, ServletException { RSS.forwardToRss(getDisplayName()+ suffix, getUrl(), runs.newBuilds(), Run.FEED_ADAPTER, req, rsp ); }
/** * {@inheritDoc} */ @Override public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) { ContextMenu menu = new ContextMenu(); for (View view : getViews()) { menu.add(view.getAbsoluteUrl(),view.getDisplayName()); } return menu; }
/** * {@inheritDoc} */ @Override public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) { ContextMenu menu = new ContextMenu(); for (View view : getViews()) { menu.add(view.getAbsoluteUrl(),view.getDisplayName()); } return menu; }
public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { ContextMenu menu = new ContextMenu(); for (View view : getViews()) { menu.add(view.getViewUrl(),view.getDisplayName()); } return menu; }