Class SystemOwnershipFilter<TContent>
IContentFilter<TContent> implementation used to filter out built-in assets that are under system user ownership, like the Default project.
Inheritance
object
RootContentFilterBase<TContent>
ContentFilterBase<TContent>
SystemOwnershipFilter<TContent>
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Filters.Default
Assembly: Tableau.Migration.dll
Syntax
public sealed class SystemOwnershipFilter<TContent> : ContentFilterBase<TContent>, IContentFilter<TContent>, IMigrationHook<IEnumerable<ContentMigrationItem<TContent>>> where TContent : IWithOwner
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Constructors
SystemOwnershipFilter(ISharedResourcesLocalizer, ILogger<IContentFilter<TContent>>)
Default constructor
Declaration
public SystemOwnershipFilter(ISharedResourcesLocalizer localizer, ILogger<IContentFilter<TContent>> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ISharedResourcesLocalizer | localizer | A string localizer. |
| ILogger<IContentFilter<TContent>> | logger | Default logger. |
Methods
ShouldMigrate(ContentMigrationItem<TContent>)
Checks if the item should be migrated.
Declaration
public override bool ShouldMigrate(ContentMigrationItem<TContent> item)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentMigrationItem<TContent> | item | The item to evaluate. |
Returns
| Type | Description |
|---|---|
| bool | True if the item should be migrated. |