Advertisement
Guest User

Untitled

a guest
Jul 1st, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. package org.openmrs.module.web.controller;
  2.  
  3. /**
  4. * The contents of this file are subject to the OpenMRS Public License
  5. * Version 1.0 (the "License"); you may not use this file except in
  6. * compliance with the License. You may obtain a copy of the License at
  7. * http://license.openmrs.org
  8. *
  9. * Software distributed under the License is distributed on an "AS IS"
  10. * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  11. * License for the specific language governing rights and limitations
  12. * under the License.
  13. *
  14. * Copyright (C) OpenMRS, LLC. All Rights Reserved.
  15. */
  16.  
  17. import java.io.IOException;
  18. import java.util.List;
  19.  
  20. import javax.servlet.http.HttpServletRequest;
  21. import javax.servlet.http.HttpServletResponse;
  22.  
  23. import org.apache.commons.logging.Log;
  24. import org.apache.commons.logging.LogFactory;
  25. import org.openmrs.module.ModuleFactory;
  26. import org.springframework.stereotype.Controller;
  27. import org.springframework.web.bind.annotation.RequestMapping;
  28. import org.springframework.web.bind.annotation.RequestMethod;
  29. import org.springframework.web.bind.annotation.RequestParam;
  30. import org.springframework.web.bind.annotation.ResponseBody;
  31.  
  32. /**
  33. * The main controller.
  34. */
  35. @Controller
  36. @RequestMapping(value = "/admin/modules/manage/")
  37. public class ModuleManagementController {
  38.  
  39. protected final Log log = LogFactory.getLog(getClass());
  40.  
  41. @RequestMapping(value = "/checkdependencies", method = RequestMethod.GET)
  42. @ResponseBody
  43. public String manage(@RequestParam(value = "moduleId", required = true) String moduleId, HttpServletRequest request,
  44. HttpServletResponse response) throws IOException {
  45. System.out.println("Test ! triggered by the patient search action" + moduleId);
  46. return ModuleFactory.validateDependencies(moduleId);
  47.  
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement