예제 #1
0
        internal static bool IsMatched(this BranchStepInfo info, string productID, bool checkProduct = true)
        {
            if (checkProduct == false)
            {
                return(true);
            }

            if (string.IsNullOrEmpty(productID))
            {
                return(false);
            }

            if (info.IsAllProduct)
            {
                return(true);
            }

            if (info.ProductList == null || info.ProductList.Count == 0)
            {
                return(true);
            }

            if (info.ProductList.Contains(productID))
            {
                return(true);
            }

            return(false);
        }
예제 #2
0
        internal static bool IsLoadable(this BranchStepInfo info, string productID, string ownerType)
        {
            string defaultOwnerType = SiteConfigHelper.GetDefaultOwnerType();

            if (ownerType != defaultOwnerType)
            {
                return(false);
            }

            if (info.IsAllProduct || info.IsMatched(productID))
            {
                return(true);
            }

            return(false);
        }