Beispiel #1
0
        public CatalogItemContextBase <TPathStorageType> Combine(string url, bool checkProtocol, bool externalFormat)
        {
            bool flag = default(bool);

            if (!this.IsReportServerPathOrUrl(url, checkProtocol, out flag))
            {
                return(null);
            }
            if (flag)
            {
                string text = this.MapUserProvidedPath(url);
                if (externalFormat && this.m_PathTranslator != null)
                {
                    string text2 = this.m_PathTranslator.PathToExternal(text);
                    if (text2 != null)
                    {
                        text = text2;
                    }
                }
                CatalogItemContextBase <TPathStorageType> catalogItemContextBase = this.CreateContext(this.m_PathTranslator);
                ItemPathOptions itemPathOptions = ItemPathOptions.Validate;
                itemPathOptions = (ItemPathOptions)((int)itemPathOptions | (externalFormat ? 4 : 2));
                if (!catalogItemContextBase.SetPath(text, itemPathOptions))
                {
                    throw new ItemNotFoundException(text.MarkAsPrivate());
                }
                catalogItemContextBase.RSRequestParameters.SetCatalogParameters(null);
                return(catalogItemContextBase);
            }
            return(null);
        }
 public override bool SetPath(string path, ItemPathOptions pathOptions)
 {
     base.m_ItemPath         = path;
     base.m_OriginalItemPath = path;
     return(true);
 }
Beispiel #3
0
 public abstract bool SetPath(string path, ItemPathOptions pathOptions);