示例#1
0
 public Tracker(Persistence.IPersister persister, Persistence.Finder.IItemFinder find, N2.Web.IUrlParser urlParser, N2.Web.IErrorHandler errorHandler)
 {
     this.persister    = persister;
     this.find         = find;
     this.urlParser    = urlParser;
     this.errorHandler = errorHandler;
 }
示例#2
0
文件: Tracker.cs 项目: spmason/n2cms
 public Tracker(Persistence.IPersister persister, Persistence.Finder.IItemFinder find, N2.Web.IUrlParser urlParser, N2.Web.IErrorHandler errorHandler)
 {
     this.persister = persister;
     this.find = find;
     this.urlParser = urlParser;
     this.errorHandler = errorHandler;
 }
示例#3
0
 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, Web.IUrlParser urlParser, Web.IWebContext webContext)
 {
     this.webContext = webContext;
     this.persister  = persister;
     this.security   = security;
     this.activator  = activator;
     this.urlParser  = urlParser;
 }
示例#4
0
 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, Web.IUrlParser urlParser, Web.IWebContext webContext)
 {
     this.webContext = webContext;
     this.persister = persister;
     this.security = security;
     this.activator = activator;
     this.urlParser = urlParser;
 }
示例#5
0
 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, Definitions.IDefinitionManager definitions, Web.IUrlParser urlParser, Web.IWebContext webContext)
 {
     this.webContext = webContext;
     this.persister = persister;
     this.security = security;
     this.definitions = definitions;
     this.urlParser = urlParser;
 }
 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, Web.IUrlParser urlParser, Web.IWebContext webContext, Configuration.HostSection config)
 {
     this.webContext = webContext;
     this.persister  = persister;
     this.security   = security;
     this.activator  = activator;
     this.urlParser  = urlParser;
     this.permissionDeniedHttpCode = config.Web.PermissionDeniedHttpCode;
 }
示例#7
0
 public SecurityEnforcer(Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, Web.IUrlParser urlParser, Web.IWebContext webContext, Configuration.HostSection config)
 {
     this.webContext = webContext;
     this.persister = persister;
     this.security = security;
     this.activator = activator;
     this.urlParser = urlParser;
     this.permissionDeniedHttpCode = config.Web.PermissionDeniedHttpCode;
 }
示例#8
0
        protected override void OnInit(EventArgs e)
        {
            Page.Title = string.Format("{0}: {1}", GetLocalResourceString("VersionsPage.Title"), Selection.SelectedItem.Title);

            persister = Engine.Persister;
            versioner = Engine.Resolve<Persistence.IVersionManager>();

            bool isVersionable = versioner.IsVersionable(SelectedItem);
            cvVersionable.IsValid = isVersionable;

            publishedItem = Selection.SelectedItem.VersionOf ?? SelectedItem;

            base.OnInit(e);
        }
示例#9
0
        protected override void OnInit(EventArgs e)
        {
            Page.Title = string.Format("{0}: {1}", GetLocalResourceString("VersionsPage.Title"), Selection.SelectedItem.Title);

            persister = Engine.Persister;
            versioner = Engine.Resolve <Persistence.IVersionManager>();

            bool isVersionable = versioner.IsVersionable(Selection.SelectedItem);

            cvVersionable.IsValid = isVersionable;

            publishedItem = Selection.SelectedItem.VersionOf ?? Selection.SelectedItem;

            base.OnInit(e);
        }
示例#10
0
        public Tracker(Persistence.IPersister persister, Persistence.Finder.IItemFinder find, N2.Web.IUrlParser urlParser, ConnectionMonitor connections, N2.Web.IErrorNotifier errorHandler)
        {
            this.persister    = persister;
            this.find         = find;
            this.urlParser    = urlParser;
            this.errorHandler = errorHandler;

            connections.Online += delegate
            {
                persister.ItemSaving += persister_ItemSaving;
            };
            connections.Offline += delegate
            {
                persister.ItemSaving -= persister_ItemSaving;
            };
        }
示例#11
0
文件: Tracker.cs 项目: steeintw/n2cms
        public Tracker(Persistence.IPersister persister, IRepository<ContentDetail> detailRepository, N2.Web.IUrlParser urlParser, ConnectionMonitor connections, N2.Web.IErrorNotifier errorHandler)
        {
            this.persister = persister;
            this.detailRepository = detailRepository;
            this.urlParser = urlParser;
            this.errorHandler = errorHandler;

            connections.Online += delegate
            {
                persister.ItemSaving += persister_ItemSaving;
            };
            connections.Offline += delegate
            {
                persister.ItemSaving -= persister_ItemSaving;
            };
        }
示例#12
0
        public Tracker(Persistence.IPersister persister, N2.Web.IUrlParser urlParser, ConnectionMonitor connections, N2.Web.IErrorNotifier errorHandler, Configuration.EditSection config)
        {
            this.repository   = persister.Repository;
            this.urlParser    = urlParser;
            this.errorHandler = errorHandler;

            if (config.LinkTracker.Enabled)
            {
                connections.Online += delegate
                {
                    persister.ItemSaving += persister_ItemSaving;
                };
                connections.Offline += delegate
                {
                    persister.ItemSaving -= persister_ItemSaving;
                };
            }
        }
示例#13
0
 public FakeDocumentSession(Persistence.IPersister persister)
 {
     this.persister = persister;
 }
示例#14
0
 public FakeStoreFactory(Persistence.IPersister persister)
     : base(new Configuration.DatabaseSection())
 {
     this.persister = persister;
 }