Exemplo n.º 1
0
        public SiteSetupManager(ClientContext clientContext, ShSiteCollection configurationSiteCollection, string rootConfigurationPath)
        {
            ConfigurationSiteCollection = configurationSiteCollection;
            ClientContext = clientContext;

            FeatureManager = new FeatureManager();
            QuicklaunchManager = new QuicklaunchManager();
            PropertyManager = new PropertyManager();
            ListManager = new ListManager();
            CustomActionsManager = new CustomActionsManager();
            PermissionManager = new PermissionManager();

            var contentConfigurationPath = Path.Combine(rootConfigurationPath, "content");
            ContentUploadManager = new ContentUploadManager(contentConfigurationPath);
        }
Exemplo n.º 2
0
        public SiteSetupManager(ClientContext clientContext, ShSiteCollection configurationSiteCollection, string rootConfigurationPath, bool incrementalUpload)
        {
            ConfigurationSiteCollection = configurationSiteCollection;
            ClientContext     = clientContext;
            IncrementalUpload = incrementalUpload;

            FeatureManager          = new FeatureManager();
            QuicklaunchManager      = new QuicklaunchManager();
            PropertyManager         = new PropertyManager();
            ListManager             = new ListManager();
            CustomActionsManager    = new CustomActionsManager();
            PermissionManager       = new PermissionManager();
            ComposedLookManager     = new ComposedLookManager();
            FileListenerAndUploader = new FileListenerAndUploader();
            ExportTaskManager       = new ExportTaskManager();

            ContentConfigurationPath = Path.Combine(rootConfigurationPath, "content");
            ContentUploadManager     = new ContentUploadManager(ContentConfigurationPath);
        }
Exemplo n.º 3
0
 public void SetupSites()
 {
     Log.Debug("Starting SetupSites - setting up site collection");
     FeatureManager.ActivateSiteCollectionFeatures(ClientContext, ConfigurationSiteCollection.SiteFeatures);
     EnsureAndConfigureWebAndActivateFeatures(ClientContext, null, ConfigurationSiteCollection.RootWeb);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Will only activate site collection features or rootweb's web features
 /// </summary>
 public void ActivateContentTypeDependencyFeatures()
 {
     FeatureManager.ActivateSiteCollectionFeatures(ClientContext, ConfigurationSiteCollection.SiteFeatures, true);
     FeatureManager.ActivateWebFeatures(ClientContext, ClientContext.Web, ConfigurationSiteCollection.RootWeb.WebFeatures, true);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Will only activate site collection features or rootweb's web features
 /// </summary>
 public void ActivateContentTypeDependencyFeatures()
 {
     FeatureManager.ActivateFeatures(ClientContext, ClientContext.Web, _configurationWeb.SiteFeatures, _configurationWeb.WebFeatures, true);
 }