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

lodsve.security.core.Account Maven / Gradle / Ivy

/*
 * Copyright (C) 2018  Sun.Hao
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */

package lodsve.security.core;

import java.io.Serializable;

/**
 * 账号.
 *
 * @author sunhao([email protected])
 * @date 2016-2-19 12:14
 */
public class Account implements Serializable {
    /**
     * 主键
     */
    private Long id;
    /**
     * 登录名
     */
    private String loginName;
    /**
     * 业务系统中的用户或者其他额外数据
     */
    private Object source;

    public Account() {
    }

    public Account(Long id, String loginName) {
        this.id = id;
        this.loginName = loginName;
    }

    public Account(Long id, String loginName, Object source) {
        this.id = id;
        this.loginName = loginName;
        this.source = source;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Object getSource() {
        return source;
    }

    public void setSource(Object source) {
        this.source = source;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy