public AkismetCommentValidator(INotifier notifier, IOrchardServices orchardServices) { _notifer = notifier; _orchardServices = orchardServices; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public AdminController( IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public AdminController(IOrchardServices services, IShapeFactory shapeFactory) { Services = services; T = NullLocalizer.Instance; Logger = NullLogger.Instance; Shape = shapeFactory; }
public FolderController(IOrchardServices services, IMediaLibraryService mediaManagerService) { _mediaLibraryService = mediaManagerService; Services = services; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public PublicationService(IOrchardServices orchardServices, IContentManager contentManager, IShapeFactory shapeFactory, ISiteService siteService) { _orchardServices = orchardServices; _contentManager = contentManager; _shapeFactory = shapeFactory; _siteService = siteService; }
public CampaignController( ICampaignService campaignService, ITShirtCostService tshirtService, IProductService productService, IPromotionService promotionService, IRepository<CurrencyRecord> currencyRepository, IWorkContextAccessor wca, INotifier notifier, IOrchardServices services, ICookieCultureService cookieCultureService, ICountryService countryService) { _currencyRepository = currencyRepository; Services = services; _tshirtService = tshirtService; _productService = productService; _campaignService = campaignService; _promotionService = promotionService; _wca = wca; _notifier = notifier; Logger = NullLogger.Instance; _cookieCultureService = cookieCultureService; //var culture = _wca.GetContext().CurrentCulture.Trim(); _cultureUsed = _wca.GetContext().CurrentCulture.Trim(); //cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY"); _countryService = countryService; }
public RateController(IOrchardServices orchardServices, IContentManager contentManager, IVotingService votingService) { _orchardServices = orchardServices; _contentManager = contentManager; _votingService = votingService; T = NullLocalizer.Instance; }
public ArchiveLaterService( IOrchardServices services, IScheduledTaskManager scheduledTaskManager) { Services = services; _scheduledTaskManager = scheduledTaskManager; T = NullLocalizer.Instance; }
public AutoroutePartHandler( IRepository<AutoroutePartRecord> autoroutePartRepository, Lazy<IAutorouteService> autorouteService, IOrchardServices orchardServices) { Filters.Add(StorageFilter.For(autoroutePartRepository)); _autorouteService = autorouteService; _orchardServices = orchardServices; OnUpdated<AutoroutePart>((ctx, part) => CreateAlias(part)); OnCreated<AutoroutePart>((ctx, part) => { // non-draftable items if (part.ContentItem.VersionRecord == null) { PublishAlias(part); } }); // OnVersioned<AutoroutePart>((ctx, part1, part2) => CreateAlias(part1)); OnPublished<AutoroutePart>((ctx, part) => PublishAlias(part)); // Remove alias if removed or unpublished OnRemoved<AutoroutePart>((ctx, part) => RemoveAlias(part)); OnUnpublished<AutoroutePart>((ctx, part) => RemoveAlias(part)); // Register alias as identity OnGetContentItemMetadata<AutoroutePart>((ctx, part) => { if (part.DisplayAlias != null) ctx.Metadata.Identity.Add("alias", part.DisplayAlias); }); }
public AdminController(IOrchardServices services, IMediaService mediaService) { Services = services; _mediaService = mediaService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public ClubAdminController(IOrchardServices orchardServices, IMemberServices memberServices) { _orchardServices = orchardServices; _memberServices = memberServices; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public MovieLookupController( IOrchardServices orchardServices, IMovieService movieService) { _orchardServices = orchardServices; _movieService = movieService; }
public AdminController( IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IDataMigrationManager dataMigraitonManager, IFeatureManager featureManager, ISiteThemeService siteThemeService, IExtensionManager extensionManager, ShellDescriptor shellDescriptor, IPreviewTheme previewTheme, IThemeService themeService, IReportsCoordinator reportsCoordinator) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _dataMigrationManager = dataMigraitonManager; _siteThemeService = siteThemeService; _extensionManager = extensionManager; _shellDescriptor = shellDescriptor; _featureManager = featureManager; _previewTheme = previewTheme; _themeService = themeService; _reportsCoordinator = reportsCoordinator; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public UserManagerController( IMyService myService, ICustomUserEventHandler customUserEventHandler, IOrchardServices orchardServices) : base(myService, customUserEventHandler, orchardServices) { }
public PublishLaterService( IOrchardServices services, IPublishingTaskManager publishingTaskManager) { Services = services; _publishingTaskManager = publishingTaskManager; T = NullLocalizer.Instance; }
public CheckoutController(IWebStoreServices webStoreServices, IOrchardServices orchardServices, IShapeFactory shapeFactory) { this._localizer = NullLocalizer.Instance; this._webStoreServices = webStoreServices; this._orchardServices = orchardServices; this._shapeFactory = shapeFactory; }
public AdminController(IOrchardServices services, IImageGalleryService imageGalleryService) { Services = services; _imageGalleryService = imageGalleryService; T = NullLocalizer.Instance; }
public SettingsController(IOrchardServices services, IWamsClient wamsClient) { _services = services; _wamsClient = wamsClient; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public ReportPostAdminController( IOrchardServices orchardServices, IForumService forumService, IThreadService threadService, IPostService postService, ISiteService siteService, IShapeFactory shapeFactory, IAuthorizationService authorizationService, IAuthenticationService authenticationService, ISubscriptionService subscriptionService, IReportPostService reportPostService, ICountersService countersService ) { _orchardServices = orchardServices; _forumService = forumService; _threadService = threadService; _postService = postService; _siteService = siteService; _subscriptionService = subscriptionService; _authorizationService = authorizationService; _authenticationService = authenticationService; _reportPostService = reportPostService; _countersService = countersService; T = NullLocalizer.Instance; Shape = shapeFactory; }
public AdminController(IContentManager contentManager, IOrchardServices services, IShapeFactory shapeFactory, IContentDefinitionManager contentDefinitionManager, IRemoteContentFetchService remoteContentFetchService, ISynchronisationMapFactory synchronisationMapFactory, IRepository<ContentSyncSettings> contentSyncSettingsRepository, ISignals signals, ILoggerFactory loggerFactory, ICacheManager cacheManager, IImportExportService importExportService, IRecipeParser recipeParser, IRemoteImportService remoteImportService, IEnumerable<IHardComparer> hardComparers, IEnumerable<ISoftComparer> softComparers) { _contentManager = contentManager; _services = services; _shapeFactory = shapeFactory; _contentDefinitionManager = contentDefinitionManager; _remoteContentFetchService = remoteContentFetchService; _synchronisationMapFactory = synchronisationMapFactory; _contentSyncSettingsRepository = contentSyncSettingsRepository; _signals = signals; _loggerFactory = loggerFactory; _cacheManager = cacheManager; _importExportService = importExportService; _recipeParser = recipeParser; _remoteImportService = remoteImportService; _hardComparers = hardComparers; _softComparers = softComparers; Logger = loggerFactory.CreateLogger(typeof (AdminController)); }
public WarmupContentHandler(IOrchardServices orchardServices, IWarmupScheduler warmupScheduler) { _orchardServices = orchardServices; _warmupScheduler = warmupScheduler; OnPublished<ContentPart>(Generate); }
public ModuleService(IOrchardServices orchardServices, IExtensionManager extensionManager, IShellDescriptorManager shellDescriptorManager) { Services = orchardServices; _extensionManager = extensionManager; _shellDescriptorManager = shellDescriptorManager; T = NullLocalizer.Instance; }
public ShoppingCartController(IOrchardServices orchardServices, ICatalogService catalogService, IShoppingCartService shoppingCartService) : base(orchardServices) { _orchardServices = orchardServices; _catalogService = catalogService; _shoppingCartService = shoppingCartService; }
private static string GetNavigationName(string partName, int id, IOrchardServices orchardServices) { string name = ""; switch (partName) { case ("Publications"): var publicationPart = orchardServices.ContentManager.Get<PublicationPart>(id, VersionOptions.Latest); name = publicationPart != null ? publicationPart.Title : partName; break; case ("Issues"): var issuePart = orchardServices.ContentManager.Get<IssuePart>(id, VersionOptions.Latest); name = issuePart != null ? issuePart.Title : partName; break; case ("Articles"): var articlePart = orchardServices.ContentManager.Get<ArticlePart>(id, VersionOptions.Latest); name = articlePart != null ? articlePart.Title : "Article"; break; case ("Categories"): name = "Category"; break; default: name = partName; break; } return name; }
public AdminController(IOrchardServices services, IThemeService themeService, IPreviewTheme previewTheme, IAuthorizer authorizer, INotifier notifier) { Services = services; _themeService = themeService; _previewTheme = previewTheme; T = NullLocalizer.Instance; }
public UsersService( IContentManager contentManager, IOrchardServices orchardServices, IRoleService roleService, IMessageManager messageManager, IScheduledTaskManager taskManager, IRepository<EmailPartRecord> emailRepository, ShellSettings shellSettings, IRepository<UserRolesPartRecord> userRolesRepository, ICacheManager cache, IClock clock, ISignals signals) { _signals = signals; _clock = clock; _cache = cache; _emailRepository = emailRepository; _orchardServices = orchardServices; _contentManager = contentManager; _roleService = roleService; _messageManager = messageManager; _taskManager = taskManager; _shellSettings = shellSettings; _userRolesRepository = userRolesRepository; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public AdminController( IOrchardServices services, IReportsManager reportsManager) { Services = services; _reportsManager = reportsManager; T = NullLocalizer.Instance; }
public TreeController(IEnumerable<ITreeNodeProvider> treeNodeProviders, IOrchardServices services) { _treeNodeProviders = treeNodeProviders; Services = services; T = NullLocalizer.Instance; }
public WikiPageController(IOrchardServices orchardServices, IRepository<WikiPageAttachmentRecord> repoWikiAttachment, ITagService tagService, IAuthorizationService authorizationService, INotifier notifier, ISiteService siteService, ISearchService searchService, IShapeFactory shapeFactory, IWikiPageService wikiPageService, IMediaService mediaService ){ _orchardServices = orchardServices; _repoWikiAttachment = repoWikiAttachment; _tagService = tagService; _authorizationService = authorizationService; _notifier = notifier; _searchService = searchService; _siteService = siteService; _wikiPageService = wikiPageService; _mediaService = mediaService; Logger = NullLogger.Instance; Shape = shapeFactory; }
public SurveyController(IShapeFactory shapeFactory, IOrchardServices orchardServices, ILiveoSurveyService surveyService) { Shape = shapeFactory; _orchardServices = orchardServices; _surveyService = surveyService; }
public ProductListPartDriver(IWebStoreServices webStoreServices, IProductListServices productListServices, ICatalogHierarchyServices catalogHierarchyServices, IOrchardServices orchardServices) { this._orchardServices = orchardServices; this._localizer = NullLocalizer.Instance; this._webStoreServices = webStoreServices; this._productListServices = productListServices; this._catalogHierarchyServices = catalogHierarchyServices; }
public DataRecipeHandler(IOrchardServices orchardServices) { _orchardServices = orchardServices; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public TypePadSpamFilterProvider(IOrchardServices orchardServices) { _orchardServices = orchardServices; }
public GoogleAnalyticsFilter(IResourceManager resourceManager, IOrchardServices orchardServices) { _resourceManager = resourceManager; _orchardServices = orchardServices; }
public AdminController(IOrchardServices services, ITagService tagService) { Services = services; _tagService = tagService; T = NullLocalizer.Instance; }
public PublishingTaskHandler(IContentManager contentManager, IOrchardServices orchardServices) { _contentManager = contentManager; Logger = NullLogger.Instance; }
public AdminController(IOrchardServices orchardServices, IMediaLibraryService mediaLibraryService) { _mediaLibraryService = mediaLibraryService; Services = orchardServices; }
public SeoHandler(IOrchardServices orchardServices, IRepository <SeoVersionRecord> repository, ITokenizer tokenizer) { _orchardServices = orchardServices; _tokenizer = tokenizer; Filters.Add(StorageFilter.For(repository)); //we initialize a date that is valid for the database. OnInitializing <SeoPart>((context, part) => { int currYear = DateTime.Now.Year; int currMonth = DateTime.Now.Month; int currDay = DateTime.Now.Day; part.RobotsUnavailableAfterDate = new DateTime(currYear, currMonth, currDay); }); //load the presets from the settings OnInitialized <SeoPart>((context, part) => { var settings = part.Settings.GetModel <SeoPartSettings>(); //copy presets part.CanonicalUrl = settings.CanonicalUrl; part.RobotsNoIndex = settings.RobotsNoIndex; part.RobotsNoFollow = settings.RobotsNoFollow; part.RobotsNoSnippet = settings.RobotsNoSnippet; part.RobotsNoOdp = settings.RobotsNoOdp; part.RobotsNoArchive = settings.RobotsNoArchive; part.RobotsUnavailableAfter = settings.RobotsUnavailableAfter; part.RobotsNoImageIndex = settings.RobotsNoImageIndex; part.GoogleNoSiteLinkSearchBox = settings.GoogleNoSiteLinkSearchBox; part.GoogleNoTranslate = settings.GoogleNoTranslate; }); OnGetDisplayShape <SeoPart>((context, part) => { if (context.DisplayType == "Detail") { var settings = part.Settings.GetModel <SeoPartSettings>(); var layout = (dynamic)context.Layout; if (!string.IsNullOrEmpty(part.TitleOverride)) { layout.Head.Add(context.New.TitleScript(Title: part.TitleOverride)); } else { if (((dynamic)part.ContentItem).TitlePart?.Title != null) { layout.Head.Add(context.New.TitleScript(Title: ((dynamic)part.ContentItem).TitlePart?.Title)); } } if (!string.IsNullOrEmpty(part.CanonicalUrl)) { var tokensDictionary = new Dictionary <string, object> { { "Content", (dynamic)part.ContentItem } }; layout.Head.Add(context.New.CanonicalUrlScript(CanonicalUrl: _tokenizer.Replace(part.CanonicalUrl, tokensDictionary))); } else { if (!string.IsNullOrEmpty(part.Settings.GetModel <SeoPartSettings>().CanonicalUrl)) { var tokensDictionary = new Dictionary <string, object> { { "Content", (dynamic)part.ContentItem } }; layout.Head.Add(context.New.CanonicalUrlScript(CanonicalUrl: _tokenizer.Replace(part.Settings.GetModel <SeoPartSettings>().CanonicalUrl, tokensDictionary))); } } //eval text box area if (!string.IsNullOrEmpty(settings.JsonLd) && !part.HideDetailMicrodata) { string script = scriptEval(settings, part); layout.Head.Add(context.New.SeoMicrodataScript(ScriptMicrodata: script)); } //carousel microdata - attualmente funzionante per projection e taxonomy term if (layout.SummaryMicrodata != null && settings.ShowAggregatedMicrodata && !part.HideAggregatedMicrodata) { string script = buildCarouselMicrodata(layout.SummaryMicrodata); layout.Head.Add(context.New.SeoMicrodataScript(ScriptMicrodata: script)); } } else if (context.DisplayType == "Summary") { if (!part.HideDetailMicrodata) { var layout = (dynamic)context.Layout; if (layout.SummaryMicrodata == null) { layout.SummaryMicrodata = new List <string>(); } var urlHelper = new UrlHelper(_orchardServices.WorkContext.HttpContext.Request.RequestContext); layout.SummaryMicrodata.Add(urlHelper.MakeAbsolute(urlHelper.ItemDisplayUrl(part))); } } }); }
public QuestionnaireNotAnsweredFilter(IOrchardServices orchardServices, IRepository <UserAnswersRecord> userAnswersRecord) { _orchardServices = orchardServices; _userAnswersRecord = userAnswersRecord; T = NullLocalizer.Instance; }
public CommunicationCampaignPartHandler(ITransactionManager transactions, INotifier notifier, IOrchardServices orchardServices, IPublishLaterService publishLaterService) { _publishLaterService = publishLaterService; _orchardServices = orchardServices; _transactions = transactions; _notifier = notifier; T = NullLocalizer.Instance; OnUpdated <CommunicationAdvertisingPart>((context, communicationAdvertisingPart) => { ContentItem campaign = null; if (communicationAdvertisingPart.CampaignId > 0) { campaign = _orchardServices.ContentManager.Get(communicationAdvertisingPart.CampaignId, VersionOptions.Latest); } ControlDatePublishLater(communicationAdvertisingPart, campaign); }); OnUpdated <CommunicationCampaignPart>((context, communicationCampaignPart) => { var relatedadvertisement = _orchardServices.ContentManager.Query <CommunicationAdvertisingPart, CommunicationAdvertisingPartRecord>().Where(x => x.CampaignId == communicationCampaignPart.Id).List(); ContentItem campaign = communicationCampaignPart.ContentItem; foreach (CommunicationAdvertisingPart cp in relatedadvertisement) { ControlDatePublishLater(cp, campaign); } }); }
public LinkFieldDriver(IOrchardServices services, ITokenizer tokenizer) { Services = services; _tokenizer = tokenizer; T = NullLocalizer.Instance; }
public SpamFilterPartDriver(IOrchardServices services) { T = NullLocalizer.Instance; Services = services; }
public DynamicFormValidatingActivity(ICSharpService csharpService, IOrchardServices orchardServices, IWorkContextAccessor workContextAccessor) { _csharpService = csharpService; _orchardServices = orchardServices; _workContextAccessor = workContextAccessor; }
public VoucherController(IOrchardServices services, IVoucherService voucherService, ICertWordService certWord) { _services = services; _voucher = voucherService; _certWord = certWord; }
//TODO: Remove Image repository as soon as it can cascade the saving public ImageGalleryService(IMediaService mediaService, IRepository <ImageGallerySettingsRecord> repository, IRepository <ImageGalleryImageSettingsRecord> imageRepository, IThumbnailService thumbnailService, IRepository <ImageGalleryRecord> imageGalleryPartRepository, IOrchardServices services, IStorageProvider storageProvider) { _storageProvider = storageProvider; _services = services; _imageGalleryPartRepository = imageGalleryPartRepository; _repository = repository; _mediaService = mediaService; _imageRepository = imageRepository; _thumbnailService = thumbnailService; if (!_mediaService.GetMediaFolders(string.Empty).Any(o => o.Name == ImageGalleriesMediaFolder)) { _mediaService.CreateFolder(string.Empty, ImageGalleriesMediaFolder); } }
public DoNothingWeChatMsgBehavior(IOrchardServices os) : base(os) { }
public AdvertisingExternalController(IContentManager contentManager, ICommunicationEventHandler communicationEventHandlers, IPublishLaterService publishLaterService, IOrchardServices orchardServices) { _contentManager = contentManager; _communicationEventHandlers = communicationEventHandlers; _publishLaterService = publishLaterService; _orchardServices = orchardServices; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public AdminMenuPartDriver(IAuthorizationService authorizationService, INavigationManager navigationManager, IOrchardServices orchardServices) { _authorizationService = authorizationService; _navigationManager = navigationManager; _orchardServices = orchardServices; T = NullLocalizer.Instance; }
public UsageInfoController(ICrud <CompanyModel> service, ICrud <UsageInfoModel> serviceUsageInfo, IMapper mapper, IHttpContextAccessor accessor, IOrchardServices orchardServices, ICrud <UsageInfoModel> usageService) { Services = orchardServices; T = NullLocalizer.Instance; _usageService = usageService; _accessor = accessor; _serviceUsageInfo = serviceUsageInfo; _mapper = mapper; _service = service; }
public ContainerWidgetPartHandler(IRepository <ContainerWidgetPartRecord> repository, IOrchardServices orchardServices) { Filters.Add(StorageFilter.For(repository)); OnInitializing <ContainerWidgetPart>((context, part) => { part.Record.ContainerId = 0; part.Record.PageSize = 5; part.Record.OrderByProperty = part.Is <CommonPart>() ? "CommonPart.CreatedUtc" : string.Empty; part.Record.OrderByDirection = (int)OrderByDirection.Descending; part.Record.FilterByProperty = "CustomPropertiesPart.CustomOne"; part.Record.FilterByOperator = "="; }); }
public BooleanFieldDriver(IOrchardServices services) { Services = services; T = NullLocalizer.Instance; }
public RazorExecuteActivity(IOrchardServices services, IRazorExecuteService razorExecuteService) { _services = services; _razorExecuteService = razorExecuteService; }
public TaobaoOAuthController(IOrchardServices services, ITaobaoOAuthService oauthService) { T = NullLocalizer.Instance; _services = services; _oauthService = oauthService; }
public MissingSettingsBanner(IOrchardServices orchardServices) { _orchardServices = orchardServices; T = NullLocalizer.Instance; }
public CustomQuery(IOrchardServices orchardServices) { _orchardServices = orchardServices; }
public EmailMessagingChannel(IOrchardServices orchardServices) { _orchardServices = orchardServices; Logger = NullLogger.Instance; }
public MemberPartDriver(IMembershipService membershipService, IUserService userService, IOrchardServices orchardServices) { _membershipService = membershipService; _userService = userService; _orchardServices = orchardServices; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }
public ColorPickerTokens(IOrchardServices orchardServices) { T = NullLocalizer.Instance; _orchardServices = orchardServices; }
public AttendeeService(IOrchardServices orchardServices) : base(orchardServices) { }
public RedactedSiteSettingsExportStep(IContentRedactionService textRedactionService, IOrchardServices orchardServices) { _textRedactionService = textRedactionService; _orchardServices = orchardServices; Logger = NullLogger.Instance; T = NullLocalizer.Instance; }