Advertisement
Guest User

sdss

a guest
Aug 2nd, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. /**
  2. * The contents of this file are subject to the OpenMRS Public License
  3. * Version 1.0 (the "License"); you may not use this file except in
  4. * compliance with the License. You may obtain a copy of the License at
  5. * http://license.openmrs.org
  6. *
  7. * Software distributed under the License is distributed on an "AS IS"
  8. * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  9. * License for the specific language governing rights and limitations
  10. * under the License.
  11. *
  12. * Copyright (C) OpenMRS, LLC. All Rights Reserved.
  13. */
  14.  
  15.  
  16.  
  17. package org.openmrs.module.feedback.web;
  18.  
  19. //~--- non-JDK imports --------------------------------------------------------
  20.  
  21. import org.openmrs.api.context.Context;
  22. import org.openmrs.module.feedback.FeedbackService;
  23. import org.openmrs.web.controller.PortletController;
  24.  
  25. //~--- JDK imports ------------------------------------------------------------
  26.  
  27. import java.util.Map;
  28.  
  29. import javax.servlet.http.HttpServletRequest;
  30.  
  31. public class SubmitFeedbackController extends PortletController {
  32. @Override
  33. protected void populateModel(HttpServletRequest request, Map<String, Object> model) {
  34. FeedbackService hService = (FeedbackService) Context.getService(FeedbackService.class);
  35.  
  36. model.put("predefinedsubjects", hService.getPredefinedSubjects());
  37. model.put("severities", hService.getSeverities());
  38. model.put("allusers", Context.getUserService().getAllUsers());
  39.  
  40. }
  41. }
  42.  
  43.  
  44. //~ Formatted by Jindent --- http://www.jindent.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement