use of org.mifos.application.admin.servicefacade.SystemInformationDto in project head by mifos.
the class SystemInformationController method viewSystemInformation.
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "NP_UNWRITTEN_FIELD", justification = "request is not null")
@RequestMapping(method = RequestMethod.GET)
public ModelAndView viewSystemInformation(HttpServletRequest request) {
ServletContext context = request.getSession().getServletContext();
RequestContext requestContext = new RequestContext(request);
Locale locale = requestContext.getLocale();
SystemInformationDto systemInformationDto = systemInformationServiceFacade.getSystemInformation(context, locale);
Map<String, Object> model = new HashMap<String, Object>();
model.put("request", request);
model.put("systemInformationDto", systemInformationDto);
Map<String, Object> status = new HashMap<String, Object>();
List<String> errorMessages = new ArrayList<String>();
status.put("errorMessages", errorMessages);
ModelAndView modelAndView = new ModelAndView("systemInformation", "model", model);
modelAndView.addObject("status", status);
return modelAndView;
}
Aggregations