Beispiel #1
0
 public SitecoreSaverUtil(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil, IArticleSearch searcher, EmailUtil emailUtil, ISitePublicationWorkflow siteWorkflow)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     TempFileLocation       = IsNullOrEmpty(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)) ?
                              TempFolderFallover : Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\temp.";
     _articleUtil     = articleUtil;
     _articleSearcher = searcher;
     _emailUtil       = emailUtil;
     _siteWorkflow    = siteWorkflow;
 }
Beispiel #2
0
        //protected readonly ISiteRootContext _siteRootContext;

        public EmailUtil(
            ArticleUtil articleUtil,
            Func <string, ISitecoreService>
            sitecoreFactory,
            IEmailSender emailSender,
            IHtmlEmailTemplateFactory htmlEmailTemplateFactory,
            ILogWrapper logger,
            ISitePublicationWorkflow siteWorkflow)
        {
            EmailSender              = emailSender;
            _articleUtil             = articleUtil;
            _service                 = sitecoreFactory(Constants.MasterDb);
            HtmlEmailTemplateFactory = htmlEmailTemplateFactory;
            Logger        = logger;
            _siteWorkflow = siteWorkflow;
            // _siteRootContext = siteRootContext;
        }
Beispiel #3
0
 public GetWordVersionNumByNumberController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #4
0
 public GetArticlePreviewInfoController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #5
0
 public GetArticlePreviewInfoByGuidsController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
Beispiel #6
0
 public GetArticleUrlController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #7
0
 public GetArticleGuidByNumController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #8
0
 public CheckInArticleByGuidController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
Beispiel #9
0
 public GetLockedStatusController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #10
0
 public SaveArticleTextController(SitecoreSaverUtil sitecoreSaverUtil, ArticleUtil articleUtil)
 {
     _sitecoreSaverUtil = sitecoreSaverUtil;
     _articleUtil       = articleUtil;
 }
Beispiel #11
0
 public GetArticleActualPublishedDateController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #12
0
 public GetArticleDetailsBgController(ArticleUtil articleUtil, Func <string, ISitecoreService> sitecoreFactory)
 {
     _sitecoreService = sitecoreFactory(Constants.MasterDb);
     _articleUtil     = articleUtil;
 }
Beispiel #13
0
 public GetArticleDetailsController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #14
0
 public WorkflowController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #15
0
 public GetWordVersionNumByGuidController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
Beispiel #16
0
 public CheckInArticleController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #17
0
 public DoesArticleHaveTextController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #18
0
 public SendDocumentToSitecoreController(SitecoreSaverUtil sitecoreSaverUtil, ArticleUtil articleUtil)
 {
     _sitecoreSaverUtil = sitecoreSaverUtil;
     _articleUtil       = articleUtil;
 }
Beispiel #19
0
 public DoesArticleGuidHaveTextController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
Beispiel #20
0
 public PreviewUrlArticleController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
Beispiel #21
0
 public CreateArticleController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil, IArticleSearch search)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
     _articleSearch         = search;
 }
Beispiel #22
0
 public WorkFlowUtil(Func <string, ISitecoreService> sitecoreFactory, SitecoreSaverUtil sitecoreSaverUtil, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     SitecoreUtil           = sitecoreSaverUtil;
     ArticleUtil            = articleUtil;
 }
Beispiel #23
0
 public DoesArticleExistController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }