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

tech.hdis.framework.security.session.entity.Session Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package tech.hdis.framework.security.session.entity;

import java.util.Date;
import java.util.Set;

/**
 * Session
 *
 * @author 黄志文
 */
public class Session {

    /**
     * 会话ID(必填)
     */
    private String sessionId;
    /**
     * 最后访问时间
     */
    private Date lastAccessedTime;
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 角色集
     */
    private Set roles;
    /**
     * 权限集
     */
    private Set permissions;

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Date getLastAccessedTime() {
        return lastAccessedTime;
    }

    public void setLastAccessedTime(Date lastAccessedTime) {
        this.lastAccessedTime = lastAccessedTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Set getRoles() {
        return roles;
    }

    public void setRoles(Set roles) {
        this.roles = roles;
    }

    public Set getPermissions() {
        return permissions;
    }

    public void setPermissions(Set permissions) {
        this.permissions = permissions;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy