| | | 1 | | using ArturRios.Heimdall.Shared.Security; |
| | | 2 | | using ArturRios.Mediator.Command; |
| | | 3 | | |
| | | 4 | | namespace ArturRios.Heimdall.Command.Input; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Intent to add an existing <c>ScopeAdmin</c> or <c>SystemAdmin</c> person as an additional |
| | | 8 | | /// owner of a scope (UC-21, FR-SC-08/FR-SC-09). Both <see cref="ScopeId" /> and |
| | | 9 | | /// <see cref="PersonId" /> are bound from the route — the request carries no body — while |
| | | 10 | | /// <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the |
| | | 11 | | /// authenticated caller (for the AF-21c ownership check) and are never bound from the request. |
| | | 12 | | /// </summary> |
| | | 13 | | public class AddScopeOwnerCommand : BaseCommand, IActorScoped |
| | | 14 | | { |
| | | 15 | | /// <summary>Public identifier of the scope gaining an owner (bound from the route).</summary> |
| | 45 | 16 | | public Guid ScopeId { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary>Public identifier of the person to make an owner (bound from the route).</summary> |
| | 39 | 19 | | public Guid PersonId { get; set; } |
| | | 20 | | |
| | 42 | 21 | | public Guid ActingPersonId { get; set; } |
| | | 22 | | |
| | 42 | 23 | | public int ActingRole { get; set; } |
| | | 24 | | } |