| | | 1 | | using ArturRios.Heimdall.Shared.Security; |
| | | 2 | | using ArturRios.Mediator.Query; |
| | | 3 | | |
| | | 4 | | namespace ArturRios.Heimdall.Query.Input; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Request to retrieve a single person by their <c>PublicId</c> (UC-07, FR-PE-03). The pagination |
| | | 8 | | /// members inherited from <see cref="BaseQuery" /> are unused for a by-id lookup. |
| | | 9 | | /// <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the |
| | | 10 | | /// authenticated caller, for the AF-07b visibility rule. |
| | | 11 | | /// </summary> |
| | | 12 | | public class GetPersonByIdQuery : BaseQuery, IActorScoped |
| | | 13 | | { |
| | | 14 | | /// <summary>Public identifier of the person to retrieve.</summary> |
| | 132 | 15 | | public Guid Id { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>When <c>true</c>, a logically deleted person is still returned (FR-PE-08).</summary> |
| | 110 | 18 | | public bool IncludeDeleted { get; set; } |
| | | 19 | | |
| | 165 | 20 | | public Guid ActingPersonId { get; set; } |
| | | 21 | | |
| | 155 | 22 | | public int ActingRole { get; set; } |
| | | 23 | | } |