using System;
using System.Collections.Generic;
using MrCMS.Entities.Documents;
using MrCMS.Entities.Documents.Metadata;
using MrCMS.Web.Apps.Ecommerce.Pages;

namespace MrCMS.Web.Apps.Ecommerce.Metadata
{
    public class ProductContainerMetadata : DocumentMetadataMap<ProductContainer>
    {
        public override ChildrenListType ChildrenListType
        {
            get { return ChildrenListType.WhiteList; }
        }

        public override IEnumerable<Type> ChildrenList
        {
            get { yield return typeof(Product); }
        }

        public override string WebGetController
        {
            get { return "ProductContainer"; }
        } 
        public override bool ChildrenMaintainHierarchy
        {
            get { return false; }
        }
    }
}