/// <summary>
 /// Determines whether the specified page has any associated Page Control rules.
 /// </summary>
 /// <param name="url">The url to the page</param>
 /// <param name="ruleType">Type of the rule.</param>
 /// <returns>
 ///      <c>true</c> if the page specified by the url has rules otherwise, <c>false</c>.
 /// </returns>
 public static bool IsPageControlled(SPWebApplication Webapp, Uri url, string ruleType)
 {
     WebApp = Webapp;
     return(IsPageControlled(url, ruleType, WebSiteControllerModule.GetUser(url.ToString())));
 }
 public static List <WebSiteControllerRule> GetRulesForPage(SPWebApplication Webapp, Uri url)
 {
     return(GetRulesForPage(WebApp, url, String.Empty, WebSiteControllerModule.GetUser(url.ToString())));
 }
 /// <summary>
 /// Determines whether the specified page has any associated Page Control rules.
 /// </summary>
 /// <param name="url">The url to the page</param>
 /// <param name="ruleType">Type of the rule.</param>
 /// <returns>
 ///      <c>true</c> if the page specified by the url has rules otherwise, <c>false</c>.
 /// </returns>
 public static bool IsPageControlled(Uri url, string ruleType)
 {
     return(IsPageControlled(url, ruleType, WebSiteControllerModule.GetUser(url.ToString())));
 }