Show / Hide Table of Contents

Interface IAdminCheckDal

Administrative data functionality for checking admin access.

Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.Abstractions.dll
Syntax
public interface IAdminCheckDal

Methods

View Source

GetAllTitlesAsync()

Gets an enumeration of all titles.

Declaration
IAsyncEnumerable<Title> GetAllTitlesAsync()
Returns
Type Description
System.Collections.Generic.IAsyncEnumerable<Title>

An async enumeration of all titles.

View Source

GetTitleAccessRequestApprovalsAsync(String)

Gets a list of title approvals for a user.

Declaration
IAsyncEnumerable<AccessRequest> GetTitleAccessRequestApprovalsAsync(string login)
Parameters
Type Name Description
System.String login

The user to get approvals for.

Returns
Type Description
System.Collections.Generic.IAsyncEnumerable<AccessRequest>

An async enumeration of AccessRequest objects.

View Source

GetTitlesForWhichUserIsAdminAsync(String)

Gets a list of titles for which the user is an admin.

Declaration
IAsyncEnumerable<string> GetTitlesForWhichUserIsAdminAsync(string login)
Parameters
Type Name Description
System.String login

The user to get titles for.

Returns
Type Description
System.Collections.Generic.IAsyncEnumerable<System.String>

An async enumeration of title names.

View Source

IsApprovedForTitleAsync(String, String)

Determines if a user is approved to download crashes for a specified title.

Declaration
Task<bool> IsApprovedForTitleAsync(string login, string title)
Parameters
Type Name Description
System.String login

A user login to check for title access.

System.String title

A registered title.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if approved. Otherwise, false.

View Source

IsUserTitleAdminAsync(String)

Determines if a user is a title admin.

Declaration
Task<bool> IsUserTitleAdminAsync(string login)
Parameters
Type Name Description
System.String login

The user login to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the user is a title admin. Otherwise, false.

View Source

IsUserTitleAdminAsync(String, String)

Determines if a user is a title admin.

Declaration
Task<bool> IsUserTitleAdminAsync(string login, string title)
Parameters
Type Name Description
System.String login

The user login to check.

System.String title

A registered title.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the user is a title admin. Otherwise, false.

  • View Source
In This Article
Back to top Generated by DocFX