示例#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;
 }
示例#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;
        }
示例#3
0
 public GetWordVersionNumByNumberController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#4
0
 public GetArticlePreviewInfoController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#5
0
 public GetArticlePreviewInfoByGuidsController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
示例#6
0
 public GetArticleUrlController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#7
0
 public GetArticleGuidByNumController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#8
0
 public CheckInArticleByGuidController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
示例#9
0
 public GetLockedStatusController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#10
0
 public SaveArticleTextController(SitecoreSaverUtil sitecoreSaverUtil, ArticleUtil articleUtil)
 {
     _sitecoreSaverUtil = sitecoreSaverUtil;
     _articleUtil       = articleUtil;
 }
示例#11
0
 public GetArticleActualPublishedDateController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#12
0
 public GetArticleDetailsBgController(ArticleUtil articleUtil, Func <string, ISitecoreService> sitecoreFactory)
 {
     _sitecoreService = sitecoreFactory(Constants.MasterDb);
     _articleUtil     = articleUtil;
 }
示例#13
0
 public GetArticleDetailsController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#14
0
 public WorkflowController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#15
0
 public GetWordVersionNumByGuidController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
示例#16
0
 public CheckInArticleController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#17
0
 public DoesArticleHaveTextController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#18
0
 public SendDocumentToSitecoreController(SitecoreSaverUtil sitecoreSaverUtil, ArticleUtil articleUtil)
 {
     _sitecoreSaverUtil = sitecoreSaverUtil;
     _articleUtil       = articleUtil;
 }
示例#19
0
 public DoesArticleGuidHaveTextController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
 }
示例#20
0
 public PreviewUrlArticleController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }
示例#21
0
 public CreateArticleController(Func <string, ISitecoreService> sitecoreFactory, ArticleUtil articleUtil, IArticleSearch search)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     _articleUtil           = articleUtil;
     _articleSearch         = search;
 }
示例#22
0
 public WorkFlowUtil(Func <string, ISitecoreService> sitecoreFactory, SitecoreSaverUtil sitecoreSaverUtil, ArticleUtil articleUtil)
 {
     _sitecoreMasterService = sitecoreFactory(Constants.MasterDb);
     SitecoreUtil           = sitecoreSaverUtil;
     ArticleUtil            = articleUtil;
 }
示例#23
0
 public DoesArticleExistController(ArticleUtil articleUtil)
 {
     _articleUtil = articleUtil;
 }