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

package com.keyshop.shop.channel.model;

import com.keyshop.pub.model.PubBean;
import com.keyshop.pub.util.StringUtil;
import com.keyshop.shop.channel.bo.*;
import com.keyshop.shop.channel.util.ChannelConst;

// Referenced classes of package com.keyshop.shop.channel.model:
//            ChannelJspModel, ChannelCss

public class Channel extends PubBean
{

    String channelZhName;
    String channelEnName;
    String cssId;
  

    public Channel()
    {
        channelZhName = "";
        channelEnName = "";
        cssId = "";
        pageName = "";
        jspModelId = "";
        configId = "";
        linkUrl = "";
        status = false;
        enableStatus = false;
        description = "";
        parentId = "";
        parentChannel = null;
        pageType = ChannelConst.CHANNEL_JSP_PAGE;
        isdefault = false;
    }

    public Channel getParentChannel()
    {
        if(StringUtil.isEmpty(parentId))
        {
            parentChannel = null;
            return null;
        }
        if(parentChannel != null)
            return parentChannel;
        try
        {
            ChannelBO bo = new ChannelBO();
            parentChannel = (Channel)bo.get(parentId);
            return parentChannel;
        }
        catch(Exception ex)
        {
            ex.printStackTrace();
        }
        return null;
    }

  
    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getParentId()
    {
        return parentId;
    }

    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getChannelEnName()
    {
        return channelEnName;
    }

    public void setChannelEnName(String channelEnName)
    {
        this.channelEnName = channelEnName;
    }
}
