// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Manager.java

package com.keyshop.shop.system.model;

import com.keyshop.pub.model.PubBean;
import java.util.ArrayList;
import java.util.List;

public class Manager extends PubBean
{

    private String name;
    private String password;
    private String realname;
    private String rcle;
    private String email;
    private String msn;
    private String qq;
    private String zhizhe;
    private String message;
    private String createTime;
    private String updateTime;
    private String role;
    private boolean status;
    private List roles;

    public Manager()
    {
        name = "";
        password = "";
        realname = "";
        rcle = "";
        email = "";
        msn = "";
        qq = "";
        zhizhe = "";
        message = "";
        createTime = "";
        updateTime = "";
        role = "";
        status = true;
        roles = new ArrayList();
    }

    public boolean hasRole(String role)
    {
        if(roles != null && roles.size() > 0)
        {
            for(int i = 0; i < roles.size(); i++)
            {
                String trole = (String)roles.get(i);
                if(trole.equals(role))
                    return true;
            }

        }
        return false;
    }

    public void addRole(String role)
    {
        roles.add(role);
    }

    public String getName()
    {
        return name;
    }

    public String getCreateTime()
    {
        return createTime;
    }

    public String getPassword()
    {
        return password;
    }

    public String getRole()
    {
        return role;
    }

    public String getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(String updateTime)
    {
        this.updateTime = updateTime;
    }

    public void setRole(String role)
    {
        this.role = role;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setCreateTime(String createTime)
    {
        this.createTime = createTime;
    }

    public boolean isStatus()
    {
        return status;
    }

    public void setStatus(boolean status)
    {
        this.status = status;
    }

    public List getRoles()
    {
        return roles;
    }

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

    public String getMessage()
    {
        return message;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public String getEmail()
    {
        return email;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getMsn()
    {
        return msn;
    }

    public void setMsn(String msn)
    {
        this.msn = msn;
    }

    public String getQq()
    {
        return qq;
    }

    public void setQq(String qq)
    {
        this.qq = qq;
    }

    public String getRcle()
    {
        return rcle;
    }

    public void setRcle(String rcle)
    {
        this.rcle = rcle;
    }

    public String getZhizhe()
    {
        return zhizhe;
    }

    public void setZhizhe(String zhizhe)
    {
        this.zhizhe = zhizhe;
    }

    public String getRealname()
    {
        return realname;
    }

    public void setRealname(String realname)
    {
        this.realname = realname;
    }
}
