=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===

This commit is contained in:
julian
2026-06-28 02:50:05 -07:00
parent a19fb90902
commit 586f02a2ca
654 changed files with 5260 additions and 0 deletions
@@ -12,6 +12,7 @@ public interface IPermissionService
/// <param name="display">The display for which permissions are being evaluated.</param>
/// <param name="user">The user whose permissions for the display are being retrieved.</param>
/// <returns>A task that represents the asynchronous operation, containing the <see cref="DisplayPermissionTypes"/> granted to the user for the display.</returns>
/// <!-- aidoc:v1 sig=ba241eb -->
public Task<DisplayPermissionTypes> GetPermissionsForDisplay(Display display, User user);
/// <summary>
/// Retrieves the display-friendly permission types applicable to the specified user for the given unit.
@@ -19,18 +20,21 @@ public interface IPermissionService
/// <param name="unitId">The identifier of the unit whose permissions are being queried.</param>
/// <param name="user">The user whose permissions for the unit should be evaluated.</param>
/// <returns>A task that represents the asynchronous operation, containing the <see cref="DisplayPermissionTypes"/> for the specified unit and user.</returns>
/// <!-- aidoc:v1 sig=a645ad9 -->
public Task<DisplayPermissionTypes> GetPermissionsForUnit(string unitId, User user);
/// <summary>
/// Retrieves the panel permission types associated with the specified user.
/// </summary>
/// <param name="user">The user whose panel permissions are being queried.</param>
/// <returns>The <see cref="PanelPermissionTypes"/> granted to the specified user.</returns>
/// <!-- aidoc:v1 sig=a5da6a5 -->
public PanelPermissionTypes GetPermissionsForPanel(User user);
/// <summary>
/// Retrieves the panel permission types associated with the specified user.
/// </summary>
/// <param name="user">The identifier or name of the user whose panel permissions are being requested.</param>
/// <returns>A task that represents the asynchronous operation, containing the <see cref="PanelPermissionTypes"/> granted to the user.</returns>
/// <!-- aidoc:v1 sig=7d60015 -->
public Task<PanelPermissionTypes> GetPermissionsForPanel(string user);
/// <summary>
@@ -41,6 +45,7 @@ public interface IPermissionService
/// <param name="source">The source permission type considered when evaluating access.</param>
/// <param name="displayId">The identifier of the display for which access is being checked.</param>
/// <returns>A task that represents the asynchronous operation. The task result is <c>true</c> if the user has access to the display; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=d0c67ae -->
Task<bool> HasAccessToDisplay(string username, PermissionEnum.RolesType role,
PermissionEnum.SourcePermissionsEnum source, string displayId);
@@ -52,6 +57,7 @@ public interface IPermissionService
/// <param name="source">The permission source used to resolve the user's access rights.</param>
/// <param name="unitId">The identifier of the unit to check access against.</param>
/// <returns>A task that resolves to <c>true</c> if the user has access to the specified unit; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=382550b -->
Task<bool> HasAccessToUnit(string username, PermissionEnum.RolesType role,
PermissionEnum.SourcePermissionsEnum source, string unitId);
@@ -62,6 +68,7 @@ public interface IPermissionService
/// <param name="role">The role assigned to the user, used to resolve applicable permissions.</param>
/// <param name="source">The source permission being checked against the user's access rights.</param>
/// <returns>A task that resolves to <c>true</c> if the user has access to the panel; otherwise, <c>false</c>.</returns>
/// <!-- aidoc:v1 sig=b661393 -->
Task<bool> HasAccessToPanel(string username, PermissionEnum.RolesType role,
PermissionEnum.SourcePermissionsEnum source);
}