Interface IAdminManageDal
Administrative data functionality for managing and tracking admin access.
Inherited Members
Namespace: CrashCABN.DataAccess
Assembly: CrashCABN.DataAccess.Abstractions.dll
Syntax
public interface IAdminManageDal : IAdminCheckDal
Methods
View SourceAcknowledgeDownloadDeletion(Guid, String)
Acknowledges a crash download has been deleted.
Declaration
Task AcknowledgeDownloadDeletion(Guid downloadId, string acknowledgedByLogin)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | downloadId | The Id of the download. |
System.String | acknowledgedByLogin | The login of the admin acknowledging the deletion. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task representing the work to acknowledge the deletion. |
CreateTitleAccessRequest(String, String)
Creates a new title access request.
Declaration
Task<Guid> CreateTitleAccessRequest(string user, string title)
Parameters
Type | Name | Description |
---|---|---|
System.String | user | The user requesting access. |
System.String | title | The title in which to request access. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Guid> | The Id of the created title. |
DeleteTitleAccessRequestAsync(Guid)
Deletes a title access request.
Declaration
Task DeleteTitleAccessRequestAsync(Guid requestId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | requestId | The title access request Id. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the result of the asynchronous operation. |
GetTitleAccessRequestsAsync(String, String)
Gets title access requests for a title, user, or both.
Declaration
IAsyncEnumerable<AccessRequest> GetTitleAccessRequestsAsync(string title = null, string login = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | title | An optional title in which to get title access requests. |
System.String | login | The login of a user in which to get title access requests. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IAsyncEnumerable<AccessRequest> | An async enumeration of AccessRequest objects. |
GetTitleAccessRequestsForTitleAdminAsync(String)
Gets title access requests for all titles in which the login is and admin.
Declaration
IAsyncEnumerable<AccessRequest> GetTitleAccessRequestsForTitleAdminAsync(string adminLogin)
Parameters
Type | Name | Description |
---|---|---|
System.String | adminLogin | A title admin login. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IAsyncEnumerable<AccessRequest> | An async enumeration of AccessRequest objects. |
GetTitleAdminUnacknowledgedDownloadDeletesAsync(String)
Gets all downloads for a title admin that are unacknowledged.
Declaration
IAsyncEnumerable<Download> GetTitleAdminUnacknowledgedDownloadDeletesAsync(string adminLogin)
Parameters
Type | Name | Description |
---|---|---|
System.String | adminLogin | A title admin login. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IAsyncEnumerable<Download> | An async enumeration of Download objects. |
RenewTitleAccessRequestApproval(Guid)
Renews a title access request.
Declaration
Task RenewTitleAccessRequestApproval(Guid requestId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | requestId | The Id of the request to renew. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task representing the work to renew a title access request. |
SetAccessRequestApprovalStatusForCrashCABNAdmin(Guid, String, Boolean)
Sets the CrashCABN admin approval status for a title access request.
Declaration
Task SetAccessRequestApprovalStatusForCrashCABNAdmin(Guid requestId, string approverLogin, bool isApproved)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | requestId | The Id of the request to set. |
System.String | approverLogin | The login of the CrashCABN admin approver. |
System.Boolean | isApproved | True if approved. Otherwise, false. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task representing the work to set the approval. |
SetAccessRequestApprovalStatusForTitleAdmin(Guid, String, Boolean)
Sets the title admin approval status for a title access request.
Declaration
Task SetAccessRequestApprovalStatusForTitleAdmin(Guid requestId, string approverLogin, bool isApproved)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | requestId | The Id of the request to set. |
System.String | approverLogin | The login of the title admin approver. |
System.Boolean | isApproved | True if approved. Otherwise, false. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task representing the work to set the approval. |