// 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:   Provider.java

package com.keyshop.shop.system.model;

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

public class Provider extends PubBean
{

    private String name;
    private String password;
    private String createTime;
    private String updateTime;
    private String productroles;
    private boolean status;
    private String fullname;
    private String address;
    private String contact;
    private String phone;
    private List productCategorys;
    private List productTemplates;

    public void addProductCategory(String categoryId)
    {
        if(StringUtil.isEmpty(categoryId))
            return;
        if(productCategorys != null)
        {
            productCategorys.add(categoryId);
        } else
        {
            productCategorys = new ArrayList();
            productCategorys.add(categoryId);
        }
    }

    public void addProductTemplate(String templateId)
    {
        if(StringUtil.isEmpty(templateId))
            return;
        if(productTemplates != null)
        {
            productTemplates.add(templateId);
        } else
        {
            productTemplates = new ArrayList();
            productTemplates.add(templateId);
        }
    }

    public void clear()
    {
        name = "";
        password = "";
        createTime = "";
        updateTime = "";
        productroles = "";
        status = true;
        fullname = "";
        address = "";
        contact = "";
        phone = "";
    }

    public Provider()
    {
        name = "";
        password = "";
        createTime = "";
        updateTime = "";
        productroles = "";
        status = true;
        fullname = "";
        address = "";
        contact = "";
        phone = "";
        productCategorys = new ArrayList();
        productTemplates = new ArrayList();
    }

    public String getContact()
    {
        return contact;
    }

    public String getCreateTime()
    {
        return createTime;
    }

    public String getFullname()
    {
        return fullname;
    }

    public String getName()
    {
        return name;
    }

    public String getPassword()
    {
        return password;
    }

    public String getPhone()
    {
        return phone;
    }

    public String getProductroles()
    {
        return productroles;
    }

    public String getUpdateTime()
    {
        return updateTime;
    }

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

    public void setProductroles(String productroles)
    {
        this.productroles = productroles;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

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

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

    public void setFullname(String fullname)
    {
        this.fullname = fullname;
    }

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

    public void setContact(String contact)
    {
        this.contact = contact;
    }

    public boolean isStatus()
    {
        return status;
    }

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

    public List getProductTemplates()
    {
        return productTemplates;
    }

    public List getProductCategorys()
    {
        return productCategorys;
    }

    public void setProductCategorys(List productCategorys)
    {
        this.productCategorys = productCategorys;
    }

    public void setProductTemplates(List productTemplates)
    {
        this.productTemplates = productTemplates;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }
}
