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";
}
}
最近下载更多
校园网 LV9
2024年8月4日
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 LV9
2022年12月10日
swd287797983 LV1
2022年12月6日
wazp4071 LV1
2022年6月24日

最近浏览