/** * All {@link AxisDescriptor}s that contribute to the UI. */ public List<AxisDescriptor> getAxisDescriptors() { List<AxisDescriptor> r = new ArrayList<AxisDescriptor>(); for (AxisDescriptor d : Axis.all()) { if (d.isInstantiable()) r.add(d); } return r; }
/** * All {@link AxisDescriptor}s that contribute to the UI. */ public List<AxisDescriptor> getAxisDescriptors() { List<AxisDescriptor> r = new ArrayList<AxisDescriptor>(); for (AxisDescriptor d : Axis.all()) { if (d.isInstantiable()) r.add(d); } return r; } }
/** * All {@link AxisDescriptor}s that contribute to the UI. */ public List<AxisDescriptor> getAxisDescriptors() { List<AxisDescriptor> r = new ArrayList<AxisDescriptor>(); for (AxisDescriptor d : Axis.all()) { if (d.isInstantiable()) r.add(d); } return r; } }
/** * All {@link AxisDescriptor}s that contribute to the UI. */ public List<AxisDescriptor> getAxisDescriptors() { List<AxisDescriptor> r = new ArrayList<AxisDescriptor>(); for (AxisDescriptor d : Axis.all()) { if (d.isInstantiable()) r.add(d); } return r; } }
/** * All {@link AxisDescriptor}s that contribute to the UI. */ public List<AxisDescriptor> getAxisDescriptors() { List<AxisDescriptor> r = new ArrayList<AxisDescriptor>(); for (AxisDescriptor d : Axis.all()) { if (d.isInstantiable()) { r.add(d); } } return r; } }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); if(req.getParameter("hasCombinationFilter")!=null) { this.combinationFilter = Util.nullify(req.getParameter("combinationFilter")); } else { this.combinationFilter = null; } if(json.optBoolean("hasChildCustomWorkspace", json.has("childCustomWorkspace"))) { setChildCustomWorkspace(Util.fixEmptyAndTrim(json.optString("childCustomWorkspace"))); } else { setChildCustomWorkspace(null); } List<MatrixExecutionStrategyDescriptor> esd = getDescriptor().getExecutionStrategyDescriptors(); if (esd.size()>1) executionStrategy = req.bindJSON(MatrixExecutionStrategy.class,json.getJSONObject("executionStrategy")); else executionStrategy = req.bindJSON(esd.get(0).clazz,json.getJSONObject("executionStrategy")); DescribableList<Axis,AxisDescriptor> newAxes = new DescribableList<Axis,AxisDescriptor>(this); newAxes.rebuildHetero(req, json, Axis.all(),"axis"); checkAxes(newAxes); this.axes = new AxisList(newAxes.toList()); buildWrappers.rebuild(req, json, BuildWrappers.getFor(this)); builders.rebuildHetero(req, json, Builder.all(), "builder"); publishers.rebuildHetero(req, json, Publisher.all(), "publisher"); rebuildConfigurations(null); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); setCombinationFilter( req.getParameter(HAS_COMBINATION_FILTER_PARAM) != null ? Util.nullify(req.getParameter( COMBINATION_FILTER_PROPERTY_NAME)) : null); if (req.getParameter(HAS_TOUCH_STONE_COMBINATION_FILTER_PARAM)!=null) { setTouchStoneCombinationFilter(Util.nullify(req.getParameter(TOUCH_STONE_COMBINATION_FILTER_PARAM))); setTouchStoneResultCondition(Result.fromString(req.getParameter(TOUCH_STONE_RESULT_CONDITION_PARAM))); } else { setTouchStoneCombinationFilter(null); } setCustomWorkspace( req.hasParameter(CUSTOM_WORKSPACE_PARAM) ? req.getParameter(CUSTOM_WORKSPACE_DIRECTORY_PARAM) : null); // parse system axes DescribableList<Axis, AxisDescriptor> newAxes = DescribableListUtil.buildFromHetero(this, req, json, "axis", Axis.all()); checkAxisNames(newAxes); setAxes(new AxisList(newAxes.toList())); setRunSequentially(json.has(RUN_SEQUENTIALLY_PROPERTY_NAME)); rebuildConfigurations(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); setCombinationFilter( req.getParameter(HAS_COMBINATION_FILTER_PARAM) != null ? Util.nullify(req.getParameter( COMBINATION_FILTER_PROPERTY_NAME)) : null); if (req.getParameter(HAS_TOUCH_STONE_COMBINATION_FILTER_PARAM)!=null) { setTouchStoneCombinationFilter(Util.nullify(req.getParameter(TOUCH_STONE_COMBINATION_FILTER_PARAM))); setTouchStoneResultCondition(Result.fromString(req.getParameter(TOUCH_STONE_RESULT_CONDITION_PARAM))); } else { setTouchStoneCombinationFilter(null); } setCustomWorkspace( req.hasParameter(CUSTOM_WORKSPACE_PARAM) ? req.getParameter(CUSTOM_WORKSPACE_DIRECTORY_PARAM) : null); // parse system axes DescribableList<Axis, AxisDescriptor> newAxes = DescribableListUtil.buildFromHetero(this, req, json, "axis", Axis.all()); checkAxisNames(newAxes); setAxes(new AxisList(newAxes.toList())); setRunSequentially(json.has(RUN_SEQUENTIALLY_PROPERTY_NAME)); rebuildConfigurations(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); setCombinationFilter( req.getParameter(HAS_COMBINATION_FILTER_PARAM) != null ? Util.nullify(req.getParameter( COMBINATION_FILTER_PROPERTY_NAME)) : null); if (req.getParameter(HAS_TOUCH_STONE_COMBINATION_FILTER_PARAM)!=null) { setTouchStoneCombinationFilter(Util.nullify(req.getParameter(TOUCH_STONE_COMBINATION_FILTER_PARAM))); setTouchStoneResultCondition(Result.fromString(req.getParameter(TOUCH_STONE_RESULT_CONDITION_PARAM))); } else { setTouchStoneCombinationFilter(null); } setCustomWorkspace( req.hasParameter(CUSTOM_WORKSPACE_PARAM) ? req.getParameter(CUSTOM_WORKSPACE_DIRECTORY_PARAM) : null); // parse system axes DescribableList<Axis, AxisDescriptor> newAxes = DescribableListUtil.buildFromHetero(this, req, json, "axis", Axis.all()); checkAxisNames(newAxes); setAxes(new AxisList(newAxes.toList())); setRunSequentially(json.has(RUN_SEQUENTIALLY_PROPERTY_NAME)); rebuildConfigurations(); }
@Override protected void submit(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException, FormException { configSubmit = true; super.submit(req, rsp); JSONObject json = req.getSubmittedForm(); setCombinationFilter( req.getParameter(HAS_COMBINATION_FILTER_PARAM) != null ? Util.nullify(req.getParameter( COMBINATION_FILTER_PROPERTY_NAME)) : null); if (req.getParameter(HAS_TOUCH_STONE_COMBINATION_FILTER_PARAM) != null) { setTouchStoneCombinationFilter(Util.nullify(req.getParameter(TOUCH_STONE_COMBINATION_FILTER_PARAM))); setTouchStoneResultCondition(Result.fromString(req.getParameter(TOUCH_STONE_RESULT_CONDITION_PARAM))); } else { setTouchStoneCombinationFilter(null); } setCustomWorkspace( req.hasParameter(CUSTOM_WORKSPACE_PARAM) ? req.getParameter(CUSTOM_WORKSPACE_DIRECTORY_PARAM) : null); // parse system axes DescribableList<Axis, AxisDescriptor> newAxes = DescribableListUtil.buildFromHetero(this, req, json, "axis", Axis.all()); checkAxisNames(newAxes); setAxes(new AxisList(newAxes.toList())); setRunSequentially(json.has(RUN_SEQUENTIALLY_PROPERTY_NAME)); rebuildConfigurations(); configSubmit = false; }