首页>代码>java OA开源办公系统源码下载>/myOA/src/com/tiger/oa/action/IndexAction.java
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日
最近浏览更多
xiaohuaidan455  LV2 2月21日
lvyga1  LV2 2024年12月20日
gxh999810  LV1 2024年11月30日
最代码11111 2024年10月14日
暂无贡献等级
krispeng  LV14 2024年8月12日
校园网  LV9 2024年8月4日
yunsgui  LV1 2024年6月25日
vluobo  LV1 2024年3月19日
cbddbc  LV1 2023年12月26日
vanweiai2023 2023年11月30日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友