/// <summary> /// Migrates the Groups. /// </summary> /// <exception cref="ElementsMigrationException">If the migration fails.</exception> public void MigrateGroup() { AbstractMigrator groupMigrator = null; foreach (var migrator in this.migrators) { if (migrator.Key == MigrationType.SHAREPOINT2010_2013_GROUP) { groupMigrator = migrator.Value; break; } } groupMigrator.Migrate(); }
/// <summary> /// Migrates the User. /// </summary> /// <exception cref="ElementsMigrationException">If the migration fails.</exception> public void MigrateUser() { AbstractMigrator userMigrator = null; foreach (var migrator in this.migrators) { if (migrator.Key == MigrationType.SHAREPOINT2013_USER) { userMigrator = migrator.Value; break; } } userMigrator.Migrate(); }
/// <summary> /// Migrates the ContentTypes. /// </summary> /// <exception cref="ElementsMigrationException">If the migration fails.</exception> public void MigrateContentTypes() { AbstractMigrator contentTypeMigrator = null; foreach (var migrator in this.migrators) { if (migrator.Key == MigrationType.SHAREPOINT2010_2013_CONTENT_TYPES) { contentTypeMigrator = migrator.Value; break; } } contentTypeMigrator.Migrate(); }
/// <summary> /// Migrates the Workflow. /// </summary> /// <exception cref="ElementsMigrationException">If the migration fails.</exception> public void MigrateWorkflow() { AbstractMigrator workflowMigrator = null; foreach (var migrator in this.migrators) { if (migrator.Key == MigrationType.SHAREPOINT2010_2013_WORKFLOW) { workflowMigrator = migrator.Value; break; } } workflowMigrator.Migrate(); }
/// <summary> /// Migrates the SiteColumns. /// </summary> /// <exception cref="ElementsMigrationException">If the migration fails.</exception> public void MigrateSiteColumns() { AbstractMigrator siteColumsMigrator = null; foreach (var migrator in this.migrators) { if (migrator.Key == MigrationType.SHAREPOINT2010_2013_SITE_COLUMNS) { siteColumsMigrator = migrator.Value; break; } } siteColumsMigrator.Migrate(); }
/// <summary> /// Migrates the PermissionLevels (Roles). /// </summary> /// <exception cref="ElementsMigrationException">If the migration fails.</exception> public void MigratePermissionlevels() { AbstractMigrator roleMigrator = null; foreach (var migrator in this.migrators) { if (migrator.Key == MigrationType.SHAREPOINT2010_2013_PERMISSION) { roleMigrator = migrator.Value; break; } } roleMigrator.Migrate(); }