Show / Hide Table of Contents

Class ConflictDataUtils

Helper methods for creating ConflictData lists.

Inheritance
Object
ConflictDataUtils
Namespace: ZeroInstall.DesktopIntegration
Assembly: ZeroInstall.DesktopIntegration.dll
Syntax
public static class ConflictDataUtils : Object

Methods

CheckForConflicts(AppList, IEnumerable<AccessPoint>, AppEntry)

Checks new AccessPoint candidates for conflicts with existing ones.

Declaration
public static void CheckForConflicts(this AppList appList, IEnumerable<AccessPoint> accessPoints, AppEntry appEntry)
Parameters
Type Name Description
AppList appList

The AppList containing the existing AccessPoints.

IEnumerable<AccessPoint> accessPoints

The set of AccessPoints candidates to check.

AppEntry appEntry

The AppEntry the accessPoints are intended for.

Exceptions
Type Condition
KeyNotFoundException

An AccessPoint reference to a Capability is invalid.

ConflictException

One or more of the accessPoints would cause a conflict with the existing AccessPoints in AppList.

GetConflictData(IEnumerable<AccessPoint>, AppEntry)

Returns all ConflictDatas for a set of new AccessPoint candidates.

Declaration
public static IDictionary<string, ConflictData> GetConflictData(this IEnumerable<AccessPoint> accessPoints, AppEntry appEntry)
Parameters
Type Name Description
IEnumerable<AccessPoint> accessPoints

The set of AccessPoints candidates to build the list for.

AppEntry appEntry

The AppEntry the accessPoints are intended for.

Returns
Type Description
IDictionary<String, ConflictData>

A dictionary of GetConflictIDs(AppEntry) mapping to the according ConflictData.

Exceptions
Type Condition
ConflictException

There are inner conflicts within accessPoints.

See Also
GetConflictIDs(AppEntry)

GetConflictData(IEnumerable<AppEntry>)

Returns all ConflictDatas for a set of existing AppEntrys.

Declaration
public static IDictionary<string, ConflictData> GetConflictData(this IEnumerable<AppEntry> appEntries)
Parameters
Type Name Description
IEnumerable<AppEntry> appEntries

The AppEntrys to build the list for.

Returns
Type Description
IDictionary<String, ConflictData>

A dictionary of GetConflictIDs(AppEntry) mapping to the according ConflictData.

Exceptions
Type Condition
ConflictException

There are preexisting conflicts within appEntries.

See Also
GetConflictIDs(AppEntry)
In This Article
Back to top Copyright Bastian Eicher et al