public WebsiteAccessPermissionProvider(
     Entity website,
     CacheSupportingCrmEntitySecurityProvider webPageAccessControlSecurityProvider,
     IContentMapProvider contentMapProvider)
     : base(contentMapProvider)
 {
     _webPageAccessControlSecurityProvider = webPageAccessControlSecurityProvider as WebPageAccessControlSecurityProvider;
     _website = website;
 }
Ejemplo n.º 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;
            }
Ejemplo n.º 3
0
 protected override WebsiteAccessPermissionProvider CreateWebsiteAccessPermissionProvider(Entity website, WebPageAccessControlSecurityProvider webPageAccessControlProvider)
 {
     return(new WebsiteAccessPermissionProvider(website, webPageAccessControlProvider, _contentMapProvider));
 }
Ejemplo n.º 4
0
 protected virtual WebsiteAccessPermissionProvider CreateWebsiteAccessPermissionProvider(Entity website, WebPageAccessControlSecurityProvider webPageAccessControlProvider)
 {
     return(new WebsiteAccessPermissionProvider(website, HttpContext.Current));
 }