Class OrganizationAdministration
- Namespace
- MailFathom.Application.Access.Organizations
- Assembly
- MailFathom.Application.dll
What a deployment administrator does to organizations and to which organization a user or a mail account belongs.
public sealed class OrganizationAdministration
- Inheritance
-
OrganizationAdministration
- Inherited Members
Remarks
Reading is AdminRead. Recording, renaming, and deleting an organization, and moving a mail account, is AdminConfigurationWrite, the grant that already records users and assigns accounts, because those change how the deployment's people and mailboxes are grouped rather than how any of them signs in. Changing an organization's short name and moving a user are AdminCredentialsWrite, because each changes the login a password is typed as — a short name every member's at once — which is a decision about how people sign in.
Which scope reaches each act is ADR 0012's. Recording and deleting an organization and changing its short name are the deployment's alone — a short name is a namespace every organization's logins share, so a refusal on a collision would tell one organization's administrator what another holds. Reading, renaming the display name, and moving a user are admitted at a scope covering what they name, and what it does not cover is answered as absent.
The identifier is a version 7 value minted from the instant the organization is recorded at, like every identifier MailFathom mints. It reaches administrative listings, so it says when each company was added and in what order — a residual ADR 0036 accepts.
Constructors
- OrganizationAdministration(AccessAuthorization, IOrganizationStore, TimeProvider)
Initializes the administration over one deployment's organizations.
Methods
- ChangeShortNameAsync(Guid, OrganizationShortName, CancellationToken)
Replaces the short name an organization's members sign in under, which moves every one of their logins with it.
- CreateAsync(string?, OrganizationShortName, CancellationToken)
Records an organization under an identifier this deployment mints.
- DeleteAsync(Guid, CancellationToken)
Removes an organization, which is refused while it still has members or holds mail accounts.
- FindDisplayNameRefusal(string?)
Reports why a written display name cannot be an organization's, or that it can.
- ReadAsync(AdministrativeListingQuery, CancellationToken)
Reads one page of the organizations the caller's scope covers.
- ReadUnreadableAsync(CancellationToken)
Reads every organization row the caller's scope covers that this build will not read as one.
- RenameAsync(Guid, string?, CancellationToken)
Replaces the name an operator reads an organization by.
- SetMailAccountOrganizationAsync(Guid, Guid?, CancellationToken)
Moves a mail account into an organization, or out of every organization.
- SetUserOrganizationAsync(UserId, Guid?, CancellationToken)
Moves a user into an organization, or out of every organization.