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