/// <summary></summary> /// <param name="page"></param> /// <returns></returns> private bool HasAccess(ManagedFusion.Modules.Configuration.ConfigurationPage page) { if (page == null) return false; return this.SectionInformation.UserInTasks(page.Tasks); }
/// <summary> /// Assigns a <see cref="HttpContext.RewritePath"/> using portal specific logic to /// determin the correct URL to rewrite. /// </summary> /// <param name="page">The page to rewrite the path for.</param> private void RewritePath(ManagedFusion.Modules.Configuration.ConfigurationPage page) { // checks to see if there is a transform attribute // sends the transformed path on to get rewritten // else just stops at this point and does nothing if (page.Transform != null) RewritePath(page.TransformPath(this.InternalLocation)); else return; }
/// <summary>Gets the controls that is called from the current module for the location.</summary> /// <remarks>Gets the controls that is called from the current module for the location. /// This method splits the <see cref="ManagedFusion.Modules.ModuleBase.Location">Location</see> /// with the <see cref="ManagedFusion.Common.Delimiter">Delimiter</see> and then gets each control. /// If a control cannot be found then it goes to the default theme and gets that version /// of the control.</remarks> /// <param name="page">The page to get the controls from.</param> /// <returns>The control that was loaded.</returns> private Control[] GetControls(ManagedFusion.Modules.Configuration.ConfigurationPage page) { List<Control> controls = new List<Control>(0); // add all the controls to the controls list if (page.Control != null) foreach (string controlLocation in page.Controls) controls.Add(GetControl(controlLocation)); return controls.ToArray(); }