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

package com.keyshop.shop.channel.controller;

import com.keyshop.pub.controller.PubForm;
import com.keyshop.pub.model.PubBean;
import com.keyshop.shop.channel.model.*;
import java.util.List;

public class ChannelForm extends PubForm
{

    public PubBean bean;
    public List jspModelConfigList;
    public List channelPrdouctCategoryList;
    public List channelAdList;
    public String contentType;
    public String contentName;
    public String configFlag;

    public ChannelForm()
    {
        bean = new Channel();
        jspModelConfigList = null;
        channelPrdouctCategoryList = null;
        channelAdList = null;
        contentType = "";
        contentName = "";
        configFlag = "";
    }

    public void setBean(PubBean bean)
    {
        this.bean = bean;
    }

    public PubBean getBean()
    {
        return bean;
    }

    public void clear()
    {
        super.clear();
        bean = new Channel();
        jspModelConfigList = null;
        channelPrdouctCategoryList = null;
        channelAdList = null;
    }

    public List getChannelAdList()
    {
        return channelAdList;
    }

    public List getChannelPrdouctCategoryList()
    {
        return channelPrdouctCategoryList;
    }

    public List getJspModelConfigList()
    {
        return jspModelConfigList;
    }

    public void setJspModelConfigList(List jspModelConfigList)
    {
        this.jspModelConfigList = jspModelConfigList;
    }

    public void setChannelPrdouctCategoryList(List channelPrdouctCategoryList)
    {
        this.channelPrdouctCategoryList = channelPrdouctCategoryList;
    }

    public void setChannelAdList(List channelAdList)
    {
        this.channelAdList = channelAdList;
    }

    public String getContentType()
    {
        return contentType;
    }

    public void setContentType(String contentType)
    {
        this.contentType = contentType;
    }

    public ChannelProductCategory getChannelProductCategory(String configId)
    {
        if(channelPrdouctCategoryList != null && channelPrdouctCategoryList.size() > 0)
        {
            for(int i = 0; i < channelPrdouctCategoryList.size(); i++)
            {
                ChannelProductCategory c = (ChannelProductCategory)channelPrdouctCategoryList.get(i);
                if(c.getConfigId().equals(configId))
                    return c;
            }

        }
        return null;
    }

    public ChannelAd getChannelAd(String configId)
    {
        if(channelAdList != null && channelAdList.size() > 0)
        {
            for(int i = 0; i < channelAdList.size(); i++)
            {
                ChannelAd c = (ChannelAd)channelAdList.get(i);
                if(c.getConfigId().equals(configId))
                    return c;
            }

        }
        return null;
    }

    public String getConfigFlag()
    {
        return configFlag;
    }

    public void setConfigFlag(String configFlag)
    {
        this.configFlag = configFlag;
    }

    public String getContentName()
    {
        return contentName;
    }

    public void setContentName(String contentName)
    {
        this.contentName = contentName;
    }
}
