| | | 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 scope permission by its <c>PublicId</c> within a scope (UC-32, |
| | | 8 | | /// FR-SP-04). The pagination members inherited from <see cref="BaseQuery" /> are unused for a |
| | | 9 | | /// by-id lookup. <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the |
| | | 10 | | /// controller from the authenticated caller, for the AF-32e scope-ownership rule. |
| | | 11 | | /// </summary> |
| | | 12 | | public class GetScopePermissionByIdQuery : BaseQuery, IActorScoped |
| | | 13 | | { |
| | | 14 | | /// <summary>Public identifier of the scope the permission must belong to (from the route).</summary> |
| | 31 | 15 | | public Guid ScopeId { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>Public identifier of the scope permission to retrieve.</summary> |
| | 31 | 18 | | public Guid Id { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary>When <c>true</c>, a logically deleted permission is still returned (FR-SP-09).</summary> |
| | 27 | 21 | | public bool IncludeDeleted { get; set; } |
| | | 22 | | |
| | 25 | 23 | | public Guid ActingPersonId { get; set; } |
| | | 24 | | |
| | 25 | 25 | | public int ActingRole { get; set; } |
| | | 26 | | } |