"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/main/java/net/anotheria/moskito/webui/dashboards/action/DashboardAddChartAction.java" between
moskito-moskito-2.8.9.tar.gz and moskito-moskito-2.9.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

DashboardAddChartAction.java  (moskito-moskito-2.8.9):DashboardAddChartAction.java  (moskito-moskito-2.9.0)
skipping to change at line 21 skipping to change at line 21
/** /**
* This action creates a new accumulator. * This action creates a new accumulator.
* @author lrosenberg * @author lrosenberg
*/ */
public class DashboardAddChartAction extends BaseDashboardAction { public class DashboardAddChartAction extends BaseDashboardAction {
@Override @Override
public ActionCommand execute(ActionMapping mapping, FormBean formBean, Ht tpServletRequest request, HttpServletResponse response) throws Exception { public ActionCommand execute(ActionMapping mapping, FormBean formBean, Ht tpServletRequest request, HttpServletResponse response) throws Exception {
String accNamesConcat = request.getParameter("pName"); String accNamesConcat = request.getParameter("pName");
String[] accNames = accNamesConcat.split(","); String[] accNames = accNamesConcat.split(",");
String[] dashboardsName = request.getParameterValues("pDashboards "); String[] dashboardsName = request.getParameterValues("pDashboards ");
String targetChartCaption = request.getParameter("caption");
if (dashboardsName == null || dashboardsName.length == 0 || accNa mes.length == 0) { if (dashboardsName == null || dashboardsName.length == 0 || accNa mes.length == 0) {
setInfoMessage("Nothing selected!"); setInfoMessage("Nothing selected!");
return mapping.redirect(); return mapping.redirect();
} }
for(String dashboard : dashboardsName) { for(String dashboard : dashboardsName) {
getDashboardAPI().addChartToDashboard(dashboard, accNames ); getDashboardAPI().addChartToDashboard(dashboard, targetCh artCaption, accNames);
} }
setInfoMessage(createInfoMessage(accNames, dashboardsName)); setInfoMessage(createInfoMessage(accNames, dashboardsName));
return mapping.redirect().addParameter("dashboard", dashboardsNam e[0]); return mapping.redirect().addParameter("dashboard", dashboardsNam e[0]);
} }
private String createInfoMessage(String[] accNames, String[] dashboardsNa me) { private String createInfoMessage(String[] accNames, String[] dashboardsNa me) {
String accums; String accums;
if (accNames.length > 1) if (accNames.length > 1)
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)