Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display a confirmation box if stopping a module will automatically sh…
…ut down other dependent modules - TRUNK-4011 Cleaning up the moduleList.jsp file Adding review changes
- Loading branch information
Showing
4 changed files
with
138 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
web/src/main/java/org/openmrs/module/web/controller/ModuleManagementController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* The contents of this file are subject to the OpenMRS Public License | ||
* Version 1.0 (the "License"); you may not use this file except in | ||
* compliance with the License. You may obtain a copy of the License at | ||
* http://license.openmrs.org | ||
* | ||
* Software distributed under the License is distributed on an "AS IS" | ||
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing rights and limitations | ||
* under the License. | ||
* | ||
* Copyright (C) OpenMRS, LLC. All Rights Reserved. | ||
*/ | ||
package org.openmrs.module.web.controller; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
import org.apache.commons.logging.Log; | ||
import org.apache.commons.logging.LogFactory; | ||
import org.openmrs.module.ModuleFactory; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.ResponseBody; | ||
|
||
/** | ||
* Controller which allows users to identify dependencies between modules for shutdown/restart purposes. | ||
*/ | ||
@Controller | ||
@RequestMapping(value = "/admin/modules/manage/") | ||
public class ModuleManagementController { | ||
|
||
/** | ||
* Logger for this class and subclasses | ||
*/ | ||
protected final Log log = LogFactory.getLog(getClass()); | ||
|
||
@RequestMapping(value = "/checkdependencies", method = RequestMethod.GET) | ||
@ResponseBody | ||
public List<String> manage(@RequestParam(value = "moduleId") String moduleId, HttpServletRequest request, | ||
HttpServletResponse response) throws IOException { | ||
return ModuleFactory.getDependencies(moduleId); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters