mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-05 20:41:34 +08:00
Remove access = false
This commit is contained in:
parent
75f7ce79d4
commit
1034f752b6
@ -130,7 +130,7 @@ public class AdminController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping("/admin/auth/infoacq")
|
||||
@Menu(type = "admin", subtype = "infoacq", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "infoacq", admin = true)
|
||||
public ModelAndView infoacq(ModelMap map, HttpServletRequest request) {
|
||||
String inacq = (String) request.getSession().getAttribute(Constants.CSKEFU_SYSTEM_INFOACQ);
|
||||
if (StringUtils.isNotBlank(inacq)) {
|
||||
|
@ -79,7 +79,7 @@ public class CallCenterIvrController extends Handler {
|
||||
|
||||
|
||||
@RequestMapping(value = "/ivr/delete")
|
||||
@Menu(type = "callcenter", subtype = "ivr", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "ivr", admin = true)
|
||||
public ModelAndView extentiondelete(@Valid String id, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(id)) {
|
||||
extentionRes.deleteById(id);
|
||||
|
@ -55,7 +55,7 @@ public class CallCenterMediaController extends Handler {
|
||||
private String path;
|
||||
|
||||
@RequestMapping(value = "/media")
|
||||
@Menu(type = "callcenter", subtype = "callcentermedia", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcentermedia", admin = true)
|
||||
public ModelAndView media(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(hostid)) {
|
||||
map.addAttribute("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -65,14 +65,14 @@ public class CallCenterMediaController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/media/add")
|
||||
@Menu(type = "callcenter", subtype = "media", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "media", admin = true)
|
||||
public ModelAndView mediaadd(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
return request(super.createRequestPageTempletResponse("/admin/callcenter/media/add"));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/media/save")
|
||||
@Menu(type = "callcenter", subtype = "media", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "media", admin = true)
|
||||
public ModelAndView mediasave(HttpServletRequest request, @RequestParam(value = "mediafile", required = false) MultipartFile mediafile) throws IOException {
|
||||
Media media = new Media();
|
||||
media.setName(request.getParameter("name"));
|
||||
@ -105,7 +105,7 @@ public class CallCenterMediaController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/media/edit")
|
||||
@Menu(type = "callcenter", subtype = "media", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "media", admin = true)
|
||||
public ModelAndView mediaedit(ModelMap map, HttpServletRequest request, @Valid String id, @Valid String hostid) {
|
||||
map.addAttribute("media", mediaRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -113,7 +113,7 @@ public class CallCenterMediaController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/media/update")
|
||||
@Menu(type = "callcenter", subtype = "media", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "media", admin = true)
|
||||
public ModelAndView pbxhostupdate(HttpServletRequest request, @RequestParam(value = "mediafile", required = false) MultipartFile mediafile) throws IOException {
|
||||
Media media = new Media();
|
||||
media.setName(request.getParameter("name"));
|
||||
@ -149,7 +149,7 @@ public class CallCenterMediaController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/media/delete")
|
||||
@Menu(type = "callcenter", subtype = "media", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "media", admin = true)
|
||||
public ModelAndView mediadelete(@Valid String id, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(id)) {
|
||||
mediaRes.deleteById(id);
|
||||
|
@ -52,7 +52,7 @@ public class CallCenterResourceController extends Handler {
|
||||
private final ServiceAiRepository serviceAiRes;
|
||||
|
||||
@RequestMapping(value = "/resource")
|
||||
@Menu(type = "callcenter", subtype = "callcenter", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenter", admin = true)
|
||||
public ModelAndView index(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
List<PbxHost> pbxHostList = pbxHostRes.findByOrgi(super.getOrgi(request));
|
||||
map.addAttribute("pbxHostList", pbxHostList);
|
||||
@ -69,7 +69,7 @@ public class CallCenterResourceController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/resource/config")
|
||||
@Menu(type = "callcenter", subtype = "callcenter", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenter", admin = true)
|
||||
public ModelAndView config(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
List<PbxHost> pbxHostList = pbxHostRes.findByOrgi(super.getOrgi(request));
|
||||
map.addAttribute("pbxHostList", pbxHostList);
|
||||
@ -83,7 +83,7 @@ public class CallCenterResourceController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/resource/save")
|
||||
@Menu(type = "callcenter", subtype = "callcenter", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenter", admin = true)
|
||||
public ModelAndView save(HttpServletRequest request, @Valid PbxHost pbxHost) throws Exception {
|
||||
PbxHost tempPbxHost = pbxHostRes.findByIdAndOrgi(pbxHost.getId(), super.getOrgi(request));
|
||||
if (tempPbxHost != null) {
|
||||
@ -106,7 +106,7 @@ public class CallCenterResourceController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/resource/pbxhost")
|
||||
@Menu(type = "callcenter", subtype = "callcenter", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenter", admin = true)
|
||||
public ModelAndView resourcepbx(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
List<PbxHost> pbxHostList = pbxHostRes.findByOrgi(super.getOrgi(request));
|
||||
map.addAttribute("pbxHostList", pbxHostList);
|
||||
|
@ -47,7 +47,7 @@ public class CallCenterRouterController extends Handler {
|
||||
|
||||
|
||||
@RequestMapping(value = "/router")
|
||||
@Menu(type = "callcenter", subtype = "callcenterresource", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenterresource", admin = true)
|
||||
public ModelAndView skill(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
List<PbxHost> pbxHostList = pbxHostRes.findByOrgi(super.getOrgi(request));
|
||||
map.addAttribute("pbxHostList", pbxHostList);
|
||||
@ -59,14 +59,14 @@ public class CallCenterRouterController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/add")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionadd(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
return request(super.createRequestPageTempletResponse("/admin/callcenter/peer/add"));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/save")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionsave(HttpServletRequest request, @Valid RouterRules router) {
|
||||
if (!StringUtils.isBlank(router.getName())) {
|
||||
int count = routerRulesRes.countByNameAndOrgi(router.getName(), super.getOrgi(request));
|
||||
@ -80,7 +80,7 @@ public class CallCenterRouterController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/edit")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView routeredit(ModelMap map, HttpServletRequest request, @Valid String id, @Valid String hostid) {
|
||||
map.addAttribute("routerRules", routerRulesRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -88,7 +88,7 @@ public class CallCenterRouterController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/update")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView pbxhostupdate(HttpServletRequest request, @Valid RouterRules router) {
|
||||
if (!StringUtils.isBlank(router.getId())) {
|
||||
RouterRules oldRouter = routerRulesRes.findByIdAndOrgi(router.getId(), super.getOrgi(request));
|
||||
@ -105,7 +105,7 @@ public class CallCenterRouterController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/code")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView routercode(ModelMap map, HttpServletRequest request, @Valid String id, @Valid String hostid) {
|
||||
map.addAttribute("routerRules", routerRulesRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -113,7 +113,7 @@ public class CallCenterRouterController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/code/update")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView routercodeupdate(HttpServletRequest request, @Valid RouterRules router) {
|
||||
if (!StringUtils.isBlank(router.getId())) {
|
||||
RouterRules oldRouter = routerRulesRes.findByIdAndOrgi(router.getId(), super.getOrgi(request));
|
||||
@ -126,7 +126,7 @@ public class CallCenterRouterController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/router/delete")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentiondelete(@Valid String id, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(id)) {
|
||||
routerRulesRes.deleteById(id);
|
||||
|
@ -48,7 +48,7 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
private final Cache cache;
|
||||
|
||||
@RequestMapping(value = "/siptrunk")
|
||||
@Menu(type = "callcenter", subtype = "callcenterresource", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenterresource", admin = true)
|
||||
public ModelAndView skill(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(hostid)) {
|
||||
map.addAttribute("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -58,14 +58,14 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/add")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionadd(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
return request(super.createRequestPageTempletResponse("/admin/callcenter/siptrunk/add"));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/save")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionsave(HttpServletRequest request, @Valid SipTrunk siptrunk) {
|
||||
if (!StringUtils.isBlank(siptrunk.getName())) {
|
||||
int count = sipTrunkRes.countByNameAndOrgi(siptrunk.getName(), super.getOrgi(request));
|
||||
@ -81,7 +81,7 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/edit")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView siptrunkedit(ModelMap map, HttpServletRequest request, @Valid String id, @Valid String hostid) {
|
||||
map.addAttribute("siptrunk", sipTrunkRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -89,7 +89,7 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/update")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView pbxhostupdate(HttpServletRequest request, @Valid SipTrunk siptrunk) {
|
||||
if (!StringUtils.isBlank(siptrunk.getId())) {
|
||||
SipTrunk oldSipTrunk = sipTrunkRes.findByIdAndOrgi(siptrunk.getId(), super.getOrgi(request));
|
||||
@ -122,7 +122,7 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/code")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView siptrunkcode(ModelMap map, HttpServletRequest request, @Valid String id, @Valid String hostid) {
|
||||
map.addAttribute("siptrunk", sipTrunkRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -130,7 +130,7 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/code/update")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView siptrunkcodeupdate(HttpServletRequest request, @Valid SipTrunk siptrunk) {
|
||||
if (!StringUtils.isBlank(siptrunk.getId())) {
|
||||
SipTrunk oldSipTrunk = sipTrunkRes.findByIdAndOrgi(siptrunk.getId(), super.getOrgi(request));
|
||||
@ -144,7 +144,7 @@ public class CallCenterSipTrunkController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/siptrunk/delete")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentiondelete(@Valid String id, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(id)) {
|
||||
sipTrunkRes.deleteById(id);
|
||||
|
@ -56,7 +56,7 @@ public class CallCenterSkillController extends Handler {
|
||||
private final SkillExtentionRepository skillExtentionRes;
|
||||
|
||||
@RequestMapping(value = "/skill")
|
||||
@Menu(type = "callcenter", subtype = "callcenterresource", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "callcenterresource", admin = true)
|
||||
public ModelAndView skill(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
List<PbxHost> pbxHostList = pbxHostRes.findByOrgi(super.getOrgi(request));
|
||||
map.addAttribute("pbxHostList", pbxHostList);
|
||||
@ -83,14 +83,14 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/add")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionadd(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
return request(super.createRequestPageTempletResponse("/admin/callcenter/skill/add"));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/save")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionsave(HttpServletRequest request, @Valid CallCenterSkill skill) {
|
||||
if (!StringUtils.isBlank(skill.getSkill())) {
|
||||
int count = skillRes.countBySkillAndOrgi(skill.getSkill(), super.getOrgi(request));
|
||||
@ -104,7 +104,7 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/edit")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentionedit(ModelMap map, HttpServletRequest request, @Valid String id, @Valid String hostid) {
|
||||
map.addAttribute("extention", extentionRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -112,7 +112,7 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/update")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView pbxhostupdate(HttpServletRequest request, @Valid Extention extention) {
|
||||
if (!StringUtils.isBlank(extention.getId())) {
|
||||
Extention ext = extentionRes.findByIdAndOrgi(extention.getId(), super.getOrgi(request));
|
||||
@ -129,7 +129,7 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/delete")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView extentiondelete(@Valid String id, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(id)) {
|
||||
extentionRes.deleteById(id);
|
||||
@ -138,7 +138,7 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/imp")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView skillimp(ModelMap map, HttpServletRequest request, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(hostid)) {
|
||||
map.put("pbxHost", pbxHostRes.findByIdAndOrgi(hostid, super.getOrgi(request)));
|
||||
@ -149,7 +149,7 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/extention/delete")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView skillextentiondelete(@Valid String id, @Valid String hostid) {
|
||||
if (!StringUtils.isBlank(id)) {
|
||||
skillExtentionRes.deleteById(id);
|
||||
@ -158,7 +158,7 @@ public class CallCenterSkillController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/skill/extention/save")
|
||||
@Menu(type = "callcenter", subtype = "extention", access = false, admin = true)
|
||||
@Menu(type = "callcenter", subtype = "extention", admin = true)
|
||||
public ModelAndView skillextentionsave(HttpServletRequest request, @Valid SkillExtention skillExtention, @Valid String hostid, @Valid String[] exts) {
|
||||
if (exts != null && exts.length > 0) {
|
||||
List<SkillExtention> skillExtentionList = skillExtentionRes.findByHostidAndOrgi(hostid, super.getOrgi(request));
|
||||
|
@ -61,7 +61,7 @@ public class SNSAccountIMController extends Handler {
|
||||
private SecretRepository secRes;
|
||||
|
||||
@RequestMapping("/index")
|
||||
@Menu(type = "admin", subtype = "im", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "im", admin = true)
|
||||
public ModelAndView index(ModelMap map, HttpServletRequest request, @Valid String execute,@RequestParam(name = "status",required = false) String status ) {
|
||||
map.addAttribute("snsAccountList", snsAccountRes.findBySnstypeAndOrgi(MainContext.ChannelType.WEBIM.toString(), super.getOrgi(request), PageRequest.of(super.getP(request), super.getPs(request))));
|
||||
map.addAttribute("status", status);
|
||||
@ -76,7 +76,7 @@ public class SNSAccountIMController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping("/add")
|
||||
@Menu(type = "admin", subtype = "send", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "send", admin = true)
|
||||
public ModelAndView add(ModelMap map, HttpServletRequest request) {
|
||||
return request(super.createRequestPageTempletResponse("/admin/channel/im/add"));
|
||||
}
|
||||
@ -140,14 +140,14 @@ public class SNSAccountIMController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping("/edit")
|
||||
@Menu(type = "admin", subtype = "send", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "send", admin = true)
|
||||
public ModelAndView edit(ModelMap map, HttpServletRequest request, @Valid String id) {
|
||||
map.addAttribute("snsAccount", snsAccountRes.findByIdAndOrgi(id, super.getOrgi(request)));
|
||||
return request(super.createRequestPageTempletResponse("/admin/channel/im/edit"));
|
||||
}
|
||||
|
||||
@RequestMapping("/update")
|
||||
@Menu(type = "admin", subtype = "send", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "send", admin = true)
|
||||
public ModelAndView update(HttpServletRequest request, @Valid SNSAccount snsAccount) throws NoSuchAlgorithmException {
|
||||
SNSAccount oldSnsAccount = snsAccountRes.findByIdAndOrgi(snsAccount.getId(), super.getOrgi(request));
|
||||
if (oldSnsAccount != null) {
|
||||
|
@ -137,7 +137,7 @@ public class SystemConfigController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping("/stopimserver")
|
||||
@Menu(type = "admin", subtype = "stopimserver", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "stopimserver", admin = true)
|
||||
public ModelAndView stopimserver(ModelMap map, HttpServletRequest request, @Valid String confirm) throws SQLException {
|
||||
boolean execute;
|
||||
if (execute = MainUtils.secConfirm(secRes, super.getOrgi(request), confirm)) {
|
||||
@ -148,14 +148,14 @@ public class SystemConfigController extends Handler {
|
||||
}
|
||||
|
||||
@RequestMapping("/startentim")
|
||||
@Menu(type = "admin", subtype = "startentim", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "startentim", admin = true)
|
||||
public ModelAndView startentim(ModelMap map, HttpServletRequest request) throws SQLException {
|
||||
MainContext.enableModule(Constants.CSKEFU_MODULE_ENTIM);
|
||||
return request(super.createRequestPageTempletResponse("redirect:/admin/config/index.html"));
|
||||
}
|
||||
|
||||
@RequestMapping("/stopentim")
|
||||
@Menu(type = "admin", subtype = "stopentim", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "stopentim", admin = true)
|
||||
public ModelAndView stopentim(ModelMap map, HttpServletRequest request) throws SQLException {
|
||||
MainContext.removeModule(Constants.CSKEFU_MODULE_ENTIM);
|
||||
return request(super.createRequestPageTempletResponse("redirect:/admin/config/index.html"));
|
||||
@ -170,7 +170,7 @@ public class SystemConfigController extends Handler {
|
||||
* @throws SQLException
|
||||
*/
|
||||
@RequestMapping("/stop")
|
||||
@Menu(type = "admin", subtype = "stop", access = false, admin = true)
|
||||
@Menu(type = "admin", subtype = "stop", admin = true)
|
||||
public ModelAndView stop(ModelMap map, HttpServletRequest request, @Valid String confirm) throws SQLException {
|
||||
boolean execute = false;
|
||||
if (execute = MainUtils.secConfirm(secRes, super.getOrgi(request), confirm)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user