Skip to content

Commit

Permalink
Merge pull request #47 from dynamicweb/frn/GetId
Browse files Browse the repository at this point in the history
Adding GetId
  • Loading branch information
MatthiasSort authored Oct 17, 2024
2 parents 1294748 + 205f4da commit 7ca5aa6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.8.0</Version>
<Version>10.8.1</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>User Provider</Title>
<Description>User Provider</Description>
Expand Down
14 changes: 10 additions & 4 deletions src/UserProvider.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Dynamicweb.Data;
using Dynamicweb.Core;
using Dynamicweb.Data;
using Dynamicweb.DataIntegration.Integration;
using Dynamicweb.DataIntegration.Integration.Interfaces;
using Dynamicweb.DataIntegration.ProviderHelpers;
using Dynamicweb.Extensibility.AddIns;
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;
Expand All @@ -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;
Expand Down Expand Up @@ -541,9 +541,15 @@ public override void SaveAsXml(XmlTextWriter xmlTextWriter)
xmlTextWriter.WriteElementString("ImportUsersBelongExactlyImportGroups", ImportUsersBelongExactlyImportGroups.ToString(CultureInfo.CurrentCulture));
xmlTextWriter.WriteElementString("RepositoriesIndexUpdate", RepositoriesIndexUpdate);

Check warning on line 542 in src/UserProvider.cs

View workflow job for this annotation

GitHub Actions / call-pushworkflow / build-and-publish

'UserProvider.RepositoriesIndexUpdate' is obsolete: 'Use Job.RepositoriesIndexSettings'
xmlTextWriter.WriteElementString("SkipFailingRows", SkipFailingRows.ToString(CultureInfo.CurrentCulture));
GetSchema().SaveAsXml(xmlTextWriter);
if (!Feature.IsActive<SchemaManagementFeature>())
GetSchema().SaveAsXml(xmlTextWriter);
}

string ISource.GetId() => "Source|UserProvider";

string IDestination.GetId() => "Destination|UserProvider";


public override void UpdateSourceSettings(ISource source)
{
UserProvider newProvider = (UserProvider)source;
Expand Down

0 comments on commit 7ca5aa6

Please sign in to comment.