50 authenticationContext,
64 => permissionSet !=
null
86 if (
model.Name ==
null)
153 .OrderBy(
x =>
x.Id))),
174#pragma warning disable API1001
176#pragma warning restore API1001
InstanceManagerRights? InstanceManagerRights
The Rights.InstanceManagerRights for the user.
Request to create a user group.
Request to update a user group.
Represents an error message returned by the server.
Represents a paginated set of models.
Routes to a server actions.
const string UserGroup
The user group controller.
const string List
The postfix for list operations.
Base Controller for API functions.
Helper for returning paginated models.
ApiController for managing UserGroupResponses.
static Models.? PermissionSet TransformApiPermissionSet(Api.Models.PermissionSet? permissionSet)
Transform a Api.Models.PermissionSet into a PermissionSet.
ValueTask< IActionResult > Delete(long id, CancellationToken cancellationToken)
Delete a UserGroup.
async ValueTask< IActionResult > Create([FromBody] UserGroupCreateRequest model, CancellationToken cancellationToken)
Create a new UserGroup.
ValueTask< IActionResult > GetId(long id, CancellationToken cancellationToken)
Gets a specific UserGroup.
readonly IRestAuthorityInvoker< IUserGroupAuthority > userGroupAuthority
The IUserGroupAuthority for the UserGroupController.
ValueTask< IActionResult > Update([FromBody] UserGroupUpdateRequest model, CancellationToken cancellationToken)
Update a UserGroup.
ValueTask< IActionResult > List([FromQuery] int? page, [FromQuery] int? pageSize, CancellationToken cancellationToken)
Lists all UserGroups.
UserGroupController(IDatabaseContext databaseContext, IAuthenticationContext authenticationContext, IApiHeadersProvider apiHeaders, ILogger< UserGroupController > logger, IRestAuthorityInvoker< IUserGroupAuthority > userGroupAuthority)
Initializes a new instance of the UserGroupController class.
Represents a group of Users.
Invokes TAuthority methods and generates IActionResult responses.
ValueTask< IActionResult > Invoke(ApiController controller, Func< TAuthority, ValueTask< AuthorityResponse > > authorityInvoker)
Invoke a TAuthority method with no success result.
IAuthority for managing UserGroups.
ValueTask< AuthorityResponse< UserGroup > > GetId(long id, bool includeJoins, CancellationToken cancellationToken)
Gets the UserGroup with a given id .
IQueryable< UserGroup > Queryable(bool includeJoins)
Gets all registered UserGroups.
For creating and accessing authentication contexts.
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.
@ List
User may list files if the Models.Instance allows it.
InstanceManagerRights
Rights for managing Models.Instances.
AdministrationRights
Administration rights for the server.
@ Api
The ApiHeaders.ApiVersionHeader header is missing or invalid.