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

📄 userbean.java~

📁 J2EE & Tomcat books published by hope
💻 JAVA~
字号:
/* */package com.sun.j2ee.workflow.control.web;import com.sun.j2ee.workflow.util.JNDINames;import com.sun.j2ee.workflow.user.model.UserModel;import com.sun.j2ee.workflow.control.exceptions.GeneralFailureException;import com.sun.j2ee.workflow.control.exceptions.WorkflowAppException;import com.sun.j2ee.workflow.util.Debug;/** * This class is the web-tier representation of the User. */public class UserBean implements java.io.Serializable {        private String userId;    private boolean loggedIn = false;    private String userRole;    private UserModel user = null;        public UserBean() {}            public void setUserId(String userId) {        this.userId = userId;    }        public void setUserModel(UserModel um) {        this.user = um;    }        public String getUserId() {        return userId;    }        public String getUserRole() {        if (user!=null) {            return user.getRole();        }        else {            return "None";        }    }            public UserModel getUser() {        return user;    }        /**     *  Set by the SigninHandler.doAfter() method     */        public void setLoggedIn(boolean loggedIn) {        this.loggedIn = loggedIn;    }        public boolean isLoggedIn() {        return loggedIn;    }        public void performUpdate()  throws WorkflowAppException {    }}

⌨️ 快捷键说明

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