⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sessionoperate.java

📁 Can tell the new comer whether is the right user,and checks the information from Database.
💻 JAVA
字号:
package base;

import javax.faces.context.FacesContext;

import authorize.UserObject;

public class SessionOperate {

	public void sessionPut(String name, Object object) {
		FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
				.put(name, object);
	}

	public Object sessionGet(String name) {
		return FacesContext.getCurrentInstance().getExternalContext()
				.getSessionMap().get(name);
	}

	public UserObject getUserInfo() {
		return (UserObject) FacesContext.getCurrentInstance()
				.getExternalContext().getSessionMap().get("UserInfo");
	}


	public ACL[] getACL() {
		return (ACL[]) FacesContext.getCurrentInstance().getExternalContext()
				.getSessionMap().get("ACL");
	}
//鑾峰彇褰撳墠鐧诲綍绯荤粺鐨勭敤鎴风殑鐢ㄦ埛鍚

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -