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; }
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; }
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; }
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); }
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); }
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; }; }
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; }; }
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; }; } }
public FakeDocumentSession(Persistence.IPersister persister) { this.persister = persister; }
public FakeStoreFactory(Persistence.IPersister persister) : base(new Configuration.DatabaseSection()) { this.persister = persister; }