package com.tiger.oa.action; import java.util.List; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionSupport; import com.tiger.oa.manager.AclManager; import com.tiger.oa.model.User; @Controller("indexAction") @Scope("prototype") public class IndexAction extends ActionSupport { private AclManager aclManager; public AclManager getAclManager() { return aclManager; } @Resource public void setAclManager(AclManager aclManager) { this.aclManager = aclManager; } //打开outlook界面 public String outlook() throws Exception { //获取当前登录用户的所有授权 User user = (User)ActionContext.getContext().getSession().get("login"); List modules = aclManager.searchModules(user.getId()); ActionContext.getContext().put("modules", modules); return "outlook"; } //打开main界面 public String main() throws Exception { return "main"; } }
最近下载更多
carloscarlos LV1
2023年9月13日
15029223037 LV1
2023年7月18日
linmou LV8
2023年3月19日
微信网友_6376279687794688 LV1
2023年3月5日
快乐的程序员 LV25
2023年1月21日
微信网友_6292700852981760 LV1
2023年1月5日
15342201772 LV7
2022年12月10日
swd287797983 LV1
2022年12月6日
wazp4071 LV1
2022年6月24日
C_mohen
2022年6月8日
暂无贡献等级
最近浏览更多
vluobo LV1
3月19日
cbddbc LV1
2023年12月26日
vanweiai2023
2023年11月30日
暂无贡献等级
fesfefe LV13
2023年11月16日
yuan_bin1990 LV7
2023年11月13日
molu123456
2023年10月16日
暂无贡献等级
2036495585 LV9
2023年9月26日
漫步的海星 LV4
2023年9月21日
carloscarlos LV1
2023年9月13日
3334004690 LV3
2023年8月19日