コード例 #1
0
 public WebsiteAccessPermissionProvider(
     Entity website,
     CacheSupportingCrmEntitySecurityProvider webPageAccessControlSecurityProvider,
     IContentMapProvider contentMapProvider)
     : base(contentMapProvider)
 {
     _webPageAccessControlSecurityProvider = webPageAccessControlSecurityProvider as WebPageAccessControlSecurityProvider;
     _website = website;
 }
コード例 #2
0
            protected UncachedProvider(
                WebPageAccessControlSecurityProvider webPageAccessControlProvider,
                PublishedDatesAccessProvider publishedDatesAccessProvider,
                PublishingStateAccessProvider publishingStateAccessProvider, string portalName = null)
            {
                _webPageAccessControlProvider  = webPageAccessControlProvider;
                _publishedDatesAccessProvider  = publishedDatesAccessProvider;
                _publishingStateAccessProvider = publishingStateAccessProvider;
                _eventAccessPermissionProvider = new EventAccessPermissionProvider();
                _forumAccessPermissionProvider = new ForumAccessPermissionProvider(this.current);
                _blogSecurityProvider          = new BlogSecurityProvider(_webPageAccessControlProvider, this.current, portalName);
                _ideaSecurityProvider          = new IdeaSecurityProvider(this.current, portalName);
                _issueSecurityProvider         = new IssueSecurityProvider(portalName);

                PortalName = portalName;
            }
コード例 #3
0
 protected override WebsiteAccessPermissionProvider CreateWebsiteAccessPermissionProvider(Entity website, WebPageAccessControlSecurityProvider webPageAccessControlProvider)
 {
     return(new WebsiteAccessPermissionProvider(website, webPageAccessControlProvider, _contentMapProvider));
 }
コード例 #4
0
 protected virtual WebsiteAccessPermissionProvider CreateWebsiteAccessPermissionProvider(Entity website, WebPageAccessControlSecurityProvider webPageAccessControlProvider)
 {
     return(new WebsiteAccessPermissionProvider(website, HttpContext.Current));
 }