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

package com.keyshop.shop.content.model;

import com.keyshop.pub.model.PubBean;
import com.keyshop.pub.util.StringUtil;
import com.keyshop.shop.channel.bo.AdContentBO;
import com.keyshop.shop.channel.model.AdContent;

public class Content extends PubBean
{

    String name;
    String categoryId;
    String content;
    String createTime;
    String adId;
    String leftAdId;
    String linkurl;
    String type;
    int index;
    String note;
    String fileName;
    String navImage;
    AdContent ad;
    AdContent leftAd;
    String creator;
    boolean status;
    boolean isnew;

    public Content()
    {
        name = "";
        categoryId = "";
        content = "";
        createTime = "";
        adId = "";
        leftAdId = "";
        linkurl = "";
        type = "";
        note = "";
        fileName = "";
        navImage = "";
        ad = null;
        leftAd = null;
        creator = "";
        status = true;
        isnew = true;
    }

    public String getName()
    {
        return name;
    }

    public AdContent getAd()
    {
        if(StringUtil.isEmpty(adId))
        {
            ad = null;
            return null;
        }
        if(ad != null)
            return ad;
        try
        {
            AdContentBO bo = new AdContentBO();
            ad = (AdContent)bo.get(adId);
            return ad;
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
        return ad;
    }

    public AdContent getLeftAd()
    {
        if(StringUtil.isEmpty(leftAdId))
        {
            leftAd = null;
            return null;
        }
        if(leftAd != null)
            return leftAd;
        try
        {
            AdContentBO bo = new AdContentBO();
            leftAd = (AdContent)bo.get(leftAdId);
            return leftAd;
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
        return leftAd;
    }

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

    public String getContent()
    {
        return content;
    }

    public int getIndex()
    {
        return index;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public void setIndex(int index)
    {
        this.index = index;
    }

    public String getCreateTime()
    {
        return createTime;
    }

    public String getCategoryId()
    {
        return categoryId;
    }

    public void setCategoryId(String categoryId)
    {
        this.categoryId = categoryId;
    }

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

    public boolean isStatus()
    {
        return status;
    }

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

    public String getAdId()
    {
        return adId;
    }

    public void setAdId(String adId)
    {
        this.adId = adId;
    }

    public String getType()
    {
        return type;
    }

    public String getLinkurl()
    {
        return linkurl;
    }

    public void setLinkurl(String linkurl)
    {
        this.linkurl = linkurl;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getLeftAdId()
    {
        return leftAdId;
    }

    public void setLeftAdId(String leftAdId)
    {
        this.leftAdId = leftAdId;
    }

    public String getNote()
    {
        return note;
    }

    public void setNote(String note)
    {
        this.note = note;
    }

    public String getFileName()
    {
        return fileName;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getNavImage()
    {
        return navImage;
    }

    public void setNavImage(String navImage)
    {
        this.navImage = navImage;
    }

    public String getCreator()
    {
        return creator;
    }

    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public void setIsnew(boolean isnew)
    {
        this.isnew = isnew;
    }

    public boolean isIsnew()
    {
        return isnew;
    }
}
