Search Results for

    Show / Hide Table of Contents

    Class UserTransformator

    Class that handles the transformation of users

    Inheritance
    System.Object
    BaseTransform
    UserTransformator
    Inherited Members
    BaseTransform.RegisteredLogObservers
    BaseTransform.RegisterObserver(ILogObserver)
    BaseTransform.FlushObservers()
    BaseTransform.FlushSpecificObserver<T>()
    BaseTransform.LogError(String, String, Exception, Boolean, Boolean)
    BaseTransform.LogInfo(String, String, LogEntrySignificance)
    BaseTransform.LogWarning(String, String)
    BaseTransform.LogDebug(String, String)
    BaseTransform.Log(LogEntry, LogLevel)
    BaseTransform.SetPageId(String)
    BaseTransform.GetExactVersion(ClientRuntimeContext)
    BaseTransform.GetVersion(ClientRuntimeContext)
    Namespace: PnP.Framework.Modernization.Transform
    Assembly: PnP.Framework.dll
    Syntax
    public class UserTransformator : BaseTransform

    Constructors

    UserTransformator(BaseTransformationInformation, ClientContext, ClientContext, IList<ILogObserver>)

    User Transformator constructor

    Declaration
    public UserTransformator(BaseTransformationInformation baseTransformationInformation, ClientContext sourceContext, ClientContext targetContext, IList<ILogObserver> logObservers = null)
    Parameters
    BaseTransformationInformation baseTransformationInformation

    Transformation configuration settings

    ClientContext sourceContext

    Source Context

    ClientContext targetContext

    Target Context

    IList<ILogObserver> logObservers

    Connected loggers

    Properties

    IsUserMappingSpecified

    Determine if the user transforming according to mapped file

    Declaration
    public bool IsUserMappingSpecified { get; }
    Property Value
    System.Boolean

    ShouldMapUsers

    Determines if we should attempt to map users

    Declaration
    public bool ShouldMapUsers { get; }
    Property Value
    System.Boolean

    Methods

    RemapPrincipal(ClientContext, FieldUserValue)

    Remap principal to target principal

    Declaration
    public string RemapPrincipal(ClientContext context, FieldUserValue userField)
    Parameters
    ClientContext context

    ClientContext of the source web

    FieldUserValue userField

    User field value object

    Returns
    System.String

    Mapped principal that works on the target site

    RemapPrincipal(String)

    Remap principal to target principal

    Declaration
    public string RemapPrincipal(string principalInput)
    Parameters
    System.String principalInput

    Returns
    System.String

    Principal for the target site

    StripUserPrefixTokenAndDomain(String)

    Strip User Prefix Token And Domain

    Declaration
    public string StripUserPrefixTokenAndDomain(string principal)
    Parameters
    System.String principal

    Returns
    System.String

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer