Table of Contents

Class SecomIdentityUsage

Namespace
EncDotNet.S100.Collections.Library
Assembly
EncDotNet.S100.Collections.dll

Which SECOM sources use which identity (#883): for re-reading them when it changes, the Identities tab's "Used by" list, and what removing it does.

public static class SecomIdentityUsage
Inheritance
SecomIdentityUsage
Inherited Members

Methods

FollowingDefault(IEnumerable<LibraryCollection>)

The sources set to Default.

public static IReadOnlyList<SecomIdentityUser> FollowingDefault(IEnumerable<LibraryCollection> collections)

Parameters

collections IEnumerable<LibraryCollection>

Returns

IReadOnlyList<SecomIdentityUser>

FollowsDefault(string?)

True when setting follows the default (sources saved before the setting existed have none).

public static bool FollowsDefault(string? setting)

Parameters

setting string

Returns

bool

Reassign(CollectionLibrary, string, string)

Sets every source whose setting names id to setting (e.g. none when the identity is removed, or the new reference when it is replaced). Each source changed is read again. Sources that follow the default are left alone.

public static IReadOnlyList<SecomIdentityUser> Reassign(CollectionLibrary library, string id, string setting)

Parameters

library CollectionLibrary
id string
setting string

Returns

IReadOnlyList<SecomIdentityUser>

The sources changed.

UsersOf(IEnumerable<LibraryCollection>, string, string?)

The sources that resolve to id: those whose setting names it, and, when it is defaultId, those that follow the default. Session catalogues hold no SECOM sources.

public static IReadOnlyList<SecomIdentityUser> UsersOf(IEnumerable<LibraryCollection> collections, string id, string? defaultId)

Parameters

collections IEnumerable<LibraryCollection>
id string
defaultId string

Returns

IReadOnlyList<SecomIdentityUser>