| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using ArturRios.Heimdall.Shared.Security; |
| | | 3 | | using ArturRios.Mediator.Query; |
| | | 4 | | |
| | | 5 | | namespace ArturRios.Heimdall.Query.Input; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Request to list the system's <c>SystemAdmin</c> persons, with pagination and optional |
| | | 9 | | /// filtering (UC-07 read e, FR-PE-13), so a System Admin can see who else holds full access to |
| | | 10 | | /// the deployment. <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the |
| | | 11 | | /// controller from the authenticated caller and are never taken from the request; both are |
| | | 12 | | /// <c>[JsonIgnore]</c>, which <c>ServerPopulatedBindingMetadataProvider</c> turns into "not |
| | | 13 | | /// bindable", so they never reach the public contract. |
| | | 14 | | /// </summary> |
| | | 15 | | /// <remarks> |
| | | 16 | | /// There is deliberately no <c>IncludeDeleted</c>, as in <see cref="ListScopeAdminsQuery" />: the |
| | | 17 | | /// question this answers is who holds full access now, and a logically deleted administrator |
| | | 18 | | /// holds none. |
| | | 19 | | /// </remarks> |
| | | 20 | | public class ListSystemAdminsQuery : BaseQuery, IActorScoped |
| | | 21 | | { |
| | | 22 | | /// <summary>Optional case-insensitive substring filter on the administrator's name.</summary> |
| | 39 | 23 | | public string? Name { get; set; } |
| | | 24 | | |
| | | 25 | | /// <summary>Optional case-insensitive substring filter on the administrator's email.</summary> |
| | 36 | 26 | | public string? Email { get; set; } |
| | | 27 | | |
| | | 28 | | [JsonIgnore] |
| | 19 | 29 | | public Guid ActingPersonId { get; set; } |
| | | 30 | | |
| | | 31 | | [JsonIgnore] |
| | 19 | 32 | | public int ActingRole { get; set; } |
| | | 33 | | } |