/** * List up all {@link NodePropertyDescriptor}s that are applicable for the * given project. */ public static List<NodePropertyDescriptor> for_(Node node) { return NodePropertyDescriptor.for_(all(),node); } }
@Override public Object onConvert(Type targetType, Class targetTypeErasure, Object jsonSource) { if (jsonForProperties != jsonSource) { return old.get().onConvert(targetType, targetTypeErasure, jsonSource); } try { DescribableList<NodeProperty<?>, NodePropertyDescriptor> tmp = new DescribableList<NodeProperty<?>, NodePropertyDescriptor>(Saveable.NOOP,getNodeProperties().toList()); tmp.rebuild(req, jsonForProperties, NodeProperty.all()); return tmp.toList(); } catch (FormException e) { throw new IllegalArgumentException(e); } catch (IOException e) { throw new IllegalArgumentException(e); } } }));
/** * Accepts submission from the node configuration page. */ @RequirePOST public synchronized void doConfigExecutorsSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { checkPermission(ADMINISTER); BulkChange bc = new BulkChange(this); try { JSONObject json = req.getSubmittedForm(); ExtensionList.lookupSingleton(MasterBuildConfiguration.class).configure(req,json); getNodeProperties().rebuild(req, json.optJSONObject("nodeProperties"), NodeProperty.all()); } finally { bc.commit(); } updateComputerList(); rsp.sendRedirect(req.getContextPath()+'/'+toComputer().getUrl()); // back to the computer page }
/** * List up all {@link NodePropertyDescriptor}s that are applicable for the * given project. */ public static List<NodePropertyDescriptor> for_(Node node) { return NodePropertyDescriptor.for_(all(),node); } }
/** * List up all {@link NodePropertyDescriptor}s that are applicable for the * given project. */ public static List<NodePropertyDescriptor> for_(Node node) { return NodePropertyDescriptor.for_(all(),node); } }
/** * List up all {@link NodePropertyDescriptor}s that are applicable for the * given project. */ public static List<NodePropertyDescriptor> for_(Node node) { return NodePropertyDescriptor.for_(all(),node); } }
/** * List up all {@link NodePropertyDescriptor}s that are applicable for the * given project. */ public static List<NodePropertyDescriptor> for_(Node node) { return NodePropertyDescriptor.for_(all(), node); } }
/** * List up all {@link NodePropertyDescriptor}s that are applicable for the * given project. */ public static List<NodePropertyDescriptor> for_(Node node) { return NodePropertyDescriptor.for_(all(),node); } }
@Override public Object onConvert(Type targetType, Class targetTypeErasure, Object jsonSource) { if (jsonForProperties != jsonSource) { return old.get().onConvert(targetType, targetTypeErasure, jsonSource); } try { DescribableList<NodeProperty<?>, NodePropertyDescriptor> tmp = new DescribableList<NodeProperty<?>, NodePropertyDescriptor>(Saveable.NOOP,getNodeProperties().toList()); tmp.rebuild(req, jsonForProperties, NodeProperty.all()); return tmp.toList(); } catch (FormException e) { throw new IllegalArgumentException(e); } catch (IOException e) { throw new IllegalArgumentException(e); } } }));
/** * Accepts submission from the node configuration page. */ @RequirePOST public synchronized void doConfigExecutorsSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException { checkPermission(ADMINISTER); BulkChange bc = new BulkChange(this); try { JSONObject json = req.getSubmittedForm(); MasterBuildConfiguration mbc = MasterBuildConfiguration.all().get(MasterBuildConfiguration.class); if (mbc!=null) mbc.configure(req,json); getNodeProperties().rebuild(req, json.optJSONObject("nodeProperties"), NodeProperty.all()); } finally { bc.commit(); } updateComputerList(); rsp.sendRedirect(req.getContextPath()+'/'+toComputer().getUrl()); // back to the computer page }