All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rt.web.beans.UserInfo Maven / Gradle / Ivy

The newest version!
package com.rt.web.beans;

import com.json.JSONObject;
import com.rt.core.beans.Property;

import java.util.Map;

/**
 * 用户信息
 *
 * @author msc
 */
public class UserInfo extends Property {

    private static final long serialVersionUID = 1L;

    public UserInfo() {
    }

    public UserInfo(String string) throws Exception {
        super(string);
    }

    public UserInfo(Map map) {
        super(map);
    }

    /**
     * @param id the id to set
     */
    @Override
    public void setId(String id) {
        put(ID, id);
    }

    /**
     * sessionId
     *
     * @return String
     */
    public String getSessionId() {
        return getString("sessionId");
    }

    /**
     * sessionId
     *
     * @param sessionId session id
     */
    public void setSessionId(String sessionId) {
        put("sessionId", sessionId);
    }

    /**
     * 父id
     *
     * @return the parentId
     */
    public String getParentId() {
        return getString("parentId");
    }

    /**
     * 父id
     *
     * @param parentId the parentId to set
     */
    public void setParentId(String parentId) {
        put("parentId", parentId);
    }

    /**
     * 创建日期
     *
     * @return the sysCreatDate
     */
    public Long getSysCreatDate() {
        return getLong("sysCreatDate");
    }

    /**
     * 创建日期
     *
     * @param sysCreatDate the sysCreatDate to set
     */
    public void setSysCreatDate(Long sysCreatDate) {
        put("sysCreatDate", sysCreatDate);
    }

    /**
     * 编辑日期
     *
     * @return the sysEditDate
     */
    public Long getSysEditDate() {
        return getLong("sysEditDate");
    }

    /**
     * 编辑日期
     *
     * @param sysEditDate the sysEditDate to set
     */
    public void setSysEditDate(Long sysEditDate) {
        put("sysEditDate", sysEditDate);
    }

    /**
     * 锁定标记
     *
     * @return the sysLockTag
     */
    public String getSysLockTag() {
        return getString("sysLockTag");
    }

    /**
     * 锁定标记
     *
     * @param sysLockTag the sysLockTag to set
     */
    public void setSysLockTag(String sysLockTag) {
        put("sysLockTag", sysLockTag);
    }

    /**
     * 系统标记
     *
     * @return the sysTag
     */
    public String getSysTag() {
        return getString("sysTag");
    }

    /**
     * 系统标记
     *
     * @param sysTag the sysTag to set
     */
    public void setSysTag(String sysTag) {
        put("sysTag", sysTag);
    }

    /**
     * 角色id JSONArray存储
     *
     * @return the roleId
     */
    public String getRoleId() {
        return getString("roleId");
    }

    /**
     * 角色id JSONArray存储
     *
     * @param roleId the roleId to set
     */
    public void setRoleId(String roleId) {
        put("roleId", roleId);
    }

    /**
     * openAccount
     *
     * @return the openAccount
     */
    public JSONObject getOpenAccount() {
        return getJSONObject("openAccount");
    }

    /**
     * openAccount
     *
     * @param openAccount the openAccount to set
     */
    public void setOpenAccount(JSONObject openAccount) {
        put("openAccount", openAccount);
    }

    /**
     * 角色
     *
     * @return the roleInfo
     */
    public JSONObject getRoleInfo() {
        return getJSONObject("roleInfo");
    }

    /**
     * 角色
     *
     * @param roleInfo the roleInfo to set
     */
    public void setRoleInfo(JSONObject roleInfo) {
        put("roleInfo", roleInfo);
    }

    /**
     * 角色code
     *
     * @return the roleCode
     */
    public String getRoleCode() {
        return getString("roleCode");
    }

    /**
     * 角色code
     *
     * @param roleCode the roleCode to set
     */
    public void setRoleCode(String roleCode) {
        put("roleCode", roleCode);
    }

    /**
     * 获取用户角色
     *
     * @return JSONObject
     */
    public JSONObject getRoleMap() {
        JSONObject array = getJSONObject("roleArray");
        if (array == null) {
            array = new JSONObject();
            put("roleArray", array);
        }
        return array;
    }

    /**
     * 设置用户角色
     *
     * @param roleMap role roleMap
     */
    public void setRoleMap(JSONObject roleMap) {
        put("roleMap", roleMap);
    }

    /**
     * 获取角色资源
     *
     * @return JSONObject
     */
    public JSONObject getResourceMap() {
        return getJSONObject("resourceMap", true);
    }

    /**
     * 获取角色资源
     *
     * @param resourceMap resource resourceMap
     */
    public void setResourceMap(JSONObject resourceMap) {
        put("resourceMap", resourceMap);
    }

    /**
     * 密码
     *
     * @return the password
     */
    public String getPassword() {
        return getString("password");
    }

    /**
     * 密码
     *
     * @param password the password to set
     */
    public void setPassword(String password) {
        put("password", password);
    }

    /**
     * 所属组
     *
     * @return the groupId
     */
    public String getGroupId() {
        return getString("groupId");
    }

    /**
     * 所属组
     *
     * @param groupId the groupId to set
     */
    public void setGroupId(String groupId) {
        put("groupId", groupId);
    }

    /**
     * 所属组id列表字符串
     *
     * @return the String
     */
    public String getGroups() {
        return getString("groups");
    }

    /**
     * 所属组id列表
     *
     * @return the JSONObject
     */
    public JSONObject getGroupMap() {
        return getJSONObject("groups", false);
    }

    /**
     * 所属组id列表
     * @param groupMap groupMap
     */
    public void setGroupMap(JSONObject groupMap) {
        put("groups", groupMap);
    }

    /**
     * 性别
     *
     * @return the sex
     */
    public String getSex() {
        return getString("sex");
    }

    /**
     * 性别
     *
     * @param sex the sex to set
     */
    public void setSex(String sex) {
        put("sex", sex);
    }

    /**
     * 电子邮件
     *
     * @return the email
     */
    public String getEmail() {
        return getString("email");
    }

    /**
     * 电子邮件
     *
     * @param email the email to set
     */
    public void setEmail(String email) {
        put("email", email);
    }

    /**
     * 电话
     *
     * @return the phone
     */
    public String getPhone() {
        return getString("phone");
    }

    /**
     * 电话
     *
     * @param phone the phone to set
     */
    public void setPhone(String phone) {
        put("phone", phone);
    }

    /**
     * 证件类型
     *
     * @return the cardType
     */
    public String getCardType() {
        return getString("cardType");
    }

    /**
     * 证件类型
     *
     * @param cardType the cardType to set
     */
    public void setCardType(String cardType) {
        put("cardType", cardType);
    }

    /**
     * 证件号码
     *
     * @return the cardCode
     */
    public String getCardCode() {
        return getString("cardCode");
    }

    /**
     * 证件号码
     *
     * @param cardCode the cardCode to set
     */
    public void setCardCode(String cardCode) {
        put("cardCode", cardCode);
    }

    /**
     * 生日
     *
     * @return the birthday
     */
    public Long getBirthday() {
        return getLong("birthday");
    }

    /**
     * 生日
     *
     * @param birthday the birthday to set
     */
    public void setBirthday(Long birthday) {
        put("birthday", birthday);
    }

    /**
     * 最后登录时间
     *
     * @return the lastDate
     */
    public Long getLastDate() {
        return getLong("lastDate");
    }

    /**
     * 最后登录时间
     *
     * @param lastDate the lastDate to set
     */
    public void setLastDate(Long lastDate) {
        put("lastDate", lastDate);
    }

    /**
     * 登录次数统计
     *
     * @return the loginCount
     */
    public Long getLoginCount() {
        return getLong("loginCount");
    }

    /**
     * 登录次数统计
     *
     * @param loginCount the loginCount to set
     */
    public void setLoginCount(Long loginCount) {
        put("loginCount", loginCount);
    }

    /**
     * 地址
     *
     * @return the address
     */
    public String getAddress() {
        return getString("address");
    }

    /**
     * 地址
     *
     * @param address the address to set
     */
    public void setAddress(String address) {
        put("address", address);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy