diff --git a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj index b336f56..810aadd 100644 --- a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj @@ -1,6 +1,6 @@  - 10.8.0 + 10.8.1 1.0.0.0 User Provider User Provider diff --git a/src/UserProvider.cs b/src/UserProvider.cs index 3ca674a..d1dc413 100644 --- a/src/UserProvider.cs +++ b/src/UserProvider.cs @@ -1,4 +1,5 @@ -using Dynamicweb.Data; +using Dynamicweb.Core; +using Dynamicweb.Data; using Dynamicweb.DataIntegration.Integration; using Dynamicweb.DataIntegration.Integration.Interfaces; using Dynamicweb.DataIntegration.ProviderHelpers; @@ -6,7 +7,6 @@ using Dynamicweb.Extensibility.Editors; using Dynamicweb.Logging; using Dynamicweb.Security.UserManagement.Common.SystemFields; -using Microsoft.CodeAnalysis; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -19,7 +19,7 @@ namespace Dynamicweb.DataIntegration.Providers.UserProvider; [AddInName("Dynamicweb.DataIntegration.Providers.Provider"), AddInLabel("User Provider"), AddInDescription("User provider"), AddInIgnore(false)] -public class UserProvider : BaseSqlProvider, IParameterOptions +public class UserProvider : BaseSqlProvider, IParameterOptions, ISource, IDestination { private Job _job = null; private UserDestinationWriter Writer = null; @@ -541,9 +541,15 @@ public override void SaveAsXml(XmlTextWriter xmlTextWriter) xmlTextWriter.WriteElementString("ImportUsersBelongExactlyImportGroups", ImportUsersBelongExactlyImportGroups.ToString(CultureInfo.CurrentCulture)); xmlTextWriter.WriteElementString("RepositoriesIndexUpdate", RepositoriesIndexUpdate); xmlTextWriter.WriteElementString("SkipFailingRows", SkipFailingRows.ToString(CultureInfo.CurrentCulture)); - GetSchema().SaveAsXml(xmlTextWriter); + if (!Feature.IsActive()) + GetSchema().SaveAsXml(xmlTextWriter); } + string ISource.GetId() => "Source|UserProvider"; + + string IDestination.GetId() => "Destination|UserProvider"; + + public override void UpdateSourceSettings(ISource source) { UserProvider newProvider = (UserProvider)source;