use of org.mifos.reports.business.ReportsParamsMapValue in project head by mifos.
the class ReportsParamsMapAction method deleteParamsMap.
/**
* Controls the deletion of a link between Parameter and a report
*/
public ActionForward deleteParamsMap(ActionMapping mapping, ActionForm form, @SuppressWarnings("unused") HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
logger.debug("In ReportsParamsAction:deleteParams Method: ");
ReportsParamsMapActionForm actionForm = (ReportsParamsMapActionForm) form;
ReportsParamsMapValue objParams = new ReportsParamsMapValue();
objParams.setMapId(actionForm.getMapId());
reportsPersistence.deleteReportsParamsMap(objParams);
return mapping.findForward("reportparamsmap_path");
}
use of org.mifos.reports.business.ReportsParamsMapValue in project head by mifos.
the class ReportsParamsMapAction method createParamsMap.
/**
* Controls the creation of a link between parameter and a report
*/
public ActionForward createParamsMap(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
logger.debug("In ReportsParamsAction:createParamsMap Method: ");
ReportsParamsMapActionForm actionForm = (ReportsParamsMapActionForm) form;
ReportsParamsMapValue objParams = new ReportsParamsMapValue();
objParams.setReportId(actionForm.getReportId());
objParams.setParameterId(actionForm.getParameterId());
String error = reportsBusinessService.createReportsParamsMap(objParams);
request.getSession().setAttribute("addError", error);
return mapping.findForward("reportparamsmap_path");
}
Aggregations