Fix
This commit is contained in:
@@ -859,7 +859,7 @@ public class EmsController {
|
||||
}
|
||||
|
||||
@RequestMapping(value = EmsRestConstants.PATH_DOWNLOAD_DTB_DOC_PDF, method = RequestMethod.GET)
|
||||
public byte[] downloadDtbDocPdf(HttpServletRequest request, HttpServletResponse response,
|
||||
public byte[] downloadDtbDocPdf(HttpServletResponse response,
|
||||
@RequestParam(CommonConstants.PROFILE_DB) String config,
|
||||
@RequestParam String dataDoc,
|
||||
@RequestParam String serDoc,
|
||||
@@ -1147,8 +1147,7 @@ public class EmsController {
|
||||
|
||||
@RequestMapping(value = EmsRestConstants.PATH_CLEAN_DIRECTORIES, method = RequestMethod.POST)
|
||||
public @ResponseBody
|
||||
ServiceRestResponse cleanDirectories(HttpServletRequest httpRequest, HttpServletResponse httpResponse,
|
||||
@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
|
||||
ServiceRestResponse cleanDirectories(@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
|
||||
try {
|
||||
emsServices.cleanDirectories();
|
||||
return ServiceRestResponse.createPositiveResponse();
|
||||
@@ -1167,9 +1166,7 @@ public class EmsController {
|
||||
|
||||
@RequestMapping(value = EmsRestConstants.PATH_GET_ENTITY_MAPPING, method = RequestMethod.GET)
|
||||
public @ResponseBody
|
||||
ServiceRestResponse getEntityMapping(HttpServletRequest httpRequest,
|
||||
HttpServletResponse httpResponse,
|
||||
@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
|
||||
ServiceRestResponse getEntityMapping(@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
|
||||
try {
|
||||
List<EntityHierarchyDTO> mapping = emsServices.getEntityMapping();
|
||||
return ServiceRestResponse.createPositiveResponse(mapping);
|
||||
@@ -1181,9 +1178,7 @@ public class EmsController {
|
||||
|
||||
@RequestMapping(value = EmsRestConstants.PATH_GET_HISTORY_PROFILE_DB, method = RequestMethod.GET)
|
||||
public @ResponseBody
|
||||
ServiceRestResponse getHistoryProfileDb(HttpServletRequest httpRequest,
|
||||
HttpServletResponse httpResponse,
|
||||
@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
|
||||
ServiceRestResponse getHistoryProfileDb(@RequestParam(CommonConstants.PROFILE_DB) String config) throws Exception {
|
||||
try {
|
||||
String historyProfileDb = settingsController.getHistoryProfileDb();
|
||||
return ServiceRestResponse.createPositiveResponse(historyProfileDb);
|
||||
@@ -1195,9 +1190,7 @@ public class EmsController {
|
||||
|
||||
@RequestMapping(value = EmsRestConstants.PATH_GET_ENTITY_DETAILS, method = RequestMethod.GET)
|
||||
public @ResponseBody
|
||||
ServiceRestResponse getEntityDetails(HttpServletRequest httpRequest,
|
||||
HttpServletResponse httpResponse,
|
||||
@RequestParam("entityName") String entityName,
|
||||
ServiceRestResponse getEntityDetails(@RequestParam("entityName") String entityName,
|
||||
@RequestParam(CommonConstants.PROFILE_DB) String config
|
||||
) throws Exception {
|
||||
try {
|
||||
|
||||
@@ -15,7 +15,7 @@ public class UtilityHashMap {
|
||||
return value;
|
||||
}
|
||||
|
||||
public static <T> T getValueIfExists(HashMap<?, ?> map, String key) {
|
||||
public static <T> T getValueIfExists(Map<?, ?> map, String key) {
|
||||
return getValueIfExists(map, key, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user