Skip to content

TagActionStepBase

ClassAssetInventoryAssetInventory.Editor
public abstract class TagActionStepBase : ActionStep

Base Automator step for assigning or removing a configured tag from the packages or files in the current action context.

protected TagActionStepBase()

public override Task Run(List<ParameterValue> parameters)

Applies or removes the configured tag from the packages or files in the current Automator action context.

Parameters

Name Type
parameters System.Collections.Generic.List{Automator.ParameterValue}

Returns

System.Threading.Tasks.Task

protected abstract List<AssetInfo> GetTargetItems(List<ParameterValue> parameters)

Gets the list of items to tag (packages or files).

Parameters

Name Type
parameters System.Collections.Generic.List{Automator.ParameterValue}

Returns

System.Collections.Generic.List{AssetInventory.AssetInfo}

protected abstract void ApplyTags(List<AssetInfo> items, List<string> tags)

Applies tags to the items (add or remove).

Parameters

Name Type
items System.Collections.Generic.List{AssetInventory.AssetInfo}
tags System.Collections.Generic.List{System.String}