public void SetupSites() { Log.Debug("Starting SetupSites - setting up site collection"); CustomActionsManager.SetUpCustomActions(ClientContext, ConfigurationSiteCollection.CustomActionsPrefix, ConfigurationSiteCollection.CustomActions); PermissionManager.SetUpCustomPermissionLevels(ClientContext, ConfigurationSiteCollection.PermissionLevels); FeatureManager.ActivateSiteCollectionFeatures(ClientContext, ConfigurationSiteCollection.SiteFeatures); EnsureAndConfigureWebAndActivateFeatures(ClientContext, null, ConfigurationSiteCollection.RootWeb); }
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); }
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); }