Skip to content

Validator

ClassAssetInventoryAssetInventory.Editor
public abstract class Validator

Base contract for inspecting catalog and filesystem consistency and optionally applying reported repairs.

public virtual bool IsVisible()

Reports whether this validator applies to the active database and project configuration.

Returns

System.Boolean

public abstract Task Validate()

Scans the active catalog or storage for this validator’s issue type and records findings without modifying customer data.

Returns

System.Threading.Tasks.Task

public abstract Task Fix()

Repairs findings recorded by the most recent validation pass, then refreshes the validator state and results.

Returns

System.Threading.Tasks.Task

protected Validator()

public Validator.ValidatorType Type { get; protected set; }

Returns

AssetInventory.Validator.ValidatorType

public Validator.ValidatorSpeed Speed { get; protected set; }

Returns

AssetInventory.Validator.ValidatorSpeed

public string Name { get; protected set; }

Returns

System.String

public string Description { get; protected set; }

Returns

System.String

public bool Fixable { get; protected set; }

Returns

System.Boolean

public string FixCaption { get; protected set; }

Returns

System.String

public List<AssetInfo> DBIssues { get; set; }

Returns

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

public List<string> FileIssues { get; set; }

Returns

System.Collections.Generic.List{System.String}

public Validator.State CurrentState { get; protected set; }

Returns

AssetInventory.Validator.State

public bool CancellationRequested { get; set; }

Returns

System.Boolean

public int Progress { get; set; }

Returns

System.Int32

public int MaxProgress { get; set; }

Returns

System.Int32

protected int ProgressId { get; set; }

Returns

System.Int32

public bool IsRunning { get; }

Returns

System.Boolean

public int IssueCount { get; }

Returns

System.Int32

public virtual string ResultText { get; }

Returns

System.String