|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package cokr.xit.fims.base;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
@ -13,6 +15,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
import cokr.xit.base.user.ManagedUser;
|
|
|
|
|
import cokr.xit.fims.cmmn.DirectoryStructureToJson;
|
|
|
|
|
import cokr.xit.fims.cmmn.DirectoryStructureToJson.Node;
|
|
|
|
|
import cokr.xit.fims.crdn.service.bean.ImportServiceBean;
|
|
|
|
|
import cokr.xit.interfaces.smg.service.bean.SmgServiceBean;
|
|
|
|
|
|
|
|
|
|
@Controller
|
|
|
|
@ -20,6 +23,9 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
|
|
|
|
|
@Resource
|
|
|
|
|
SmgServiceBean smgServiceBean;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
ImportServiceBean importServiceBean;
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="최고관리자 메인",value="/superUser/main.do")
|
|
|
|
|
public ModelAndView superUserMain() {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
@ -55,6 +61,41 @@ public class UserController extends cokr.xit.base.user.web.UserController<Manage
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="업무통보 수동 실행",value="/superUser/executeAlert.do")
|
|
|
|
|
public ModelAndView executeAlert(String alertName, String interfaceKey) {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
|
|
|
|
switch (alertName) {
|
|
|
|
|
case "smgReceive" : {
|
|
|
|
|
|
|
|
|
|
if(interfaceKey == null || interfaceKey.equals("")) {
|
|
|
|
|
new RuntimeException("인터페이스키 없음");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<String> interfaceKeys = new ArrayList<String>();
|
|
|
|
|
interfaceKeys.add(interfaceKey);
|
|
|
|
|
importServiceBean.createCrdns(interfaceKeys);
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case "smgSend" : {
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case "epostSend" : {
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case "epostReceive" : {
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
mav.setViewName("jsonView");
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@RequestMapping(name="서버 파일 현황 조회",value="/superUser/getFileTree.do")
|
|
|
|
|
public ModelAndView getFileTree() throws Exception {
|
|
|
|
|