3using System.Threading.Tasks;
6using HotChocolate.Types;
7using HotChocolate.Types.Relay;
30 => permissionSet !=
null
33 InstanceManagerRights = permissionSet?.InstanceManagerRights,
34 AdministrationRights = permissionSet?.AdministrationRights,
52 CancellationToken cancellationToken)
54 ArgumentNullException.ThrowIfNull(name);
55 ArgumentNullException.ThrowIfNull(userGroupAuthority);
77 CancellationToken cancellationToken)
79 ArgumentNullException.ThrowIfNull(userGroupAuthority);
96 CancellationToken cancellationToken)
98 ArgumentNullException.ThrowIfNull(userGroupAuthority);
99 await userGroupAuthority.Invoke(
100 authority => authority.DeleteEmpty(
id, cancellationToken));
Exception representing ErrorMessageResponses.
Root type for GraphQL mutations.
const string GraphQLDescription
Description to show on the Mutation type.
IUserGroupAuthority related Mutations.
static Models.? PermissionSet TransformApiPermissionSet(PermissionSetInput? permissionSet)
Transform a Api.Models.PermissionSet into a PermissionSet.
ValueTask< UserGroup > UpdateUserGroup([ID(nameof(UserGroup))] long id, string? newName, PermissionSetInput? newPermissionSet, [Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority, CancellationToken cancellationToken)
Updates a UserGroup.
async ValueTask< Query > DeleteEmptyUserGroup([ID(nameof(UserGroup))] long id, [Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority, CancellationToken cancellationToken)
Deletes a UserGroup.
ValueTask< UserGroup > CreateUserGroup(string name, PermissionSetInput? permissionSet, [Service] IGraphQLAuthorityInvoker< IUserGroupAuthority > userGroupAuthority, CancellationToken cancellationToken)
Creates a UserGroup.
GraphQL query global::System.Type.
Represents a group of Users.
Invokes TAuthority s from GraphQL endpoints.
IAuthority for managing UserGroups.
ValueTask< AuthorityResponse< UserGroup > > Update(long id, string? newName, PermissionSet? newPermissionSet, CancellationToken cancellationToken)
Updates a UserGroup.
ValueTask< AuthorityResponse< UserGroup > > Create(string name, PermissionSet? permissionSet, CancellationToken cancellationToken)
Create a UserGroup.
ValueTask< AuthorityResponse > DeleteEmpty(long id, CancellationToken cancellationToken)
Deletes an empty UserGroup.