Class PermissionsTransformer
Transformer that maps the users or groups from a given permission.
Implements
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class PermissionsTransformer : IPermissionsTransformer, IContentTransformer<IImmutableList<IGranteeCapability>>, IMigrationHook<IImmutableList<IGranteeCapability>>
Constructors
PermissionsTransformer(IDestinationContentReferenceFinderFactory, ILogger<PermissionsTransformer>, ISharedResourcesLocalizer)
Creates a new PermissionsTransformer object.
Declaration
public PermissionsTransformer(IDestinationContentReferenceFinderFactory destinationFinderFactory, ILogger<PermissionsTransformer> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IDestinationContentReferenceFinderFactory | destinationFinderFactory | The destination finder factory. |
ILogger<PermissionsTransformer> | logger | Default logger. |
ISharedResourcesLocalizer | localizer | A string localizer. |
Methods
ExecuteAsync(IImmutableList<IGranteeCapability>, CancellationToken)
Executes a hook callback.
Declaration
public Task<IImmutableList<IGranteeCapability>?> ExecuteAsync(IImmutableList<IGranteeCapability> granteeCapabilities, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
IImmutableList<IGranteeCapability> | granteeCapabilities | |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IImmutableList<IGranteeCapability>> | A task to await containing the context,
potentially modified to pass on to the next hook or migration engine,
or null to continue passing the same context as |