Table of Contents

Class UserAccountCommandSpec<T>

Namespace
The.Web.Entities.Components
Assembly
Instagile.Web.Client.dll

Built-in commands for administering entities implementing IUserAccount: password login and administrator role management on edit pages, and account creation and authorisation cache reset on browse pages. The web counterpart of the WPF AdminUserAccount behaviours. Claim changes are staged in the page's entity context and persist when the page is saved.

public class UserAccountCommandSpec<T> : DefaultCommandSpec<T>, ICommandSpec<T>, ICommandSpec where T : IEntity<T>

Type Parameters

T
Inheritance
UserAccountCommandSpec<T>
Implements
Inherited Members

Constructors

UserAccountCommandSpec(AccountManagementOptions)

Built-in commands for administering entities implementing IUserAccount: password login and administrator role management on edit pages, and account creation and authorisation cache reset on browse pages. The web counterpart of the WPF AdminUserAccount behaviours. Claim changes are staged in the page's entity context and persist when the page is saved.

public UserAccountCommandSpec(AccountManagementOptions options)

Parameters

options AccountManagementOptions

Methods

AddPasswordLoginCommand(ICommandContext, IUserAccount)

protected virtual Command AddPasswordLoginCommand(ICommandContext context, IUserAccount userAccount)

Parameters

context ICommandContext
userAccount IUserAccount

Returns

Command

ChangePasswordCommand(ICommandContext, IUserAccount)

protected virtual Command ChangePasswordCommand(ICommandContext context, IUserAccount userAccount)

Parameters

context ICommandContext
userAccount IUserAccount

Returns

Command

DefineEntityCommands(ICommandContext)

public override IEnumerable<Func<T, Command>> DefineEntityCommands(ICommandContext context)

Parameters

context ICommandContext

Returns

IEnumerable<Func<T, Command>>

DefineListCommands(ICommandContext)

public override IEnumerable<Func<IEntityQuery<T>, Command>> DefineListCommands(ICommandContext context)

Parameters

context ICommandContext

Returns

IEnumerable<Func<IEntityQuery<T>, Command>>

EntitySaveCommand(ICommandContext, T)

public override Command EntitySaveCommand(ICommandContext context, T e)

Parameters

context ICommandContext
e T

Returns

Command

EntitySaveNewCommand(ICommandContext, T)

public override Command EntitySaveNewCommand(ICommandContext context, T e)

Parameters

context ICommandContext
e T

Returns

Command

GrantAdministratorRoleCommand(ICommandContext, IUserAccount)

protected virtual Command GrantAdministratorRoleCommand(ICommandContext context, IUserAccount userAccount)

Parameters

context ICommandContext
userAccount IUserAccount

Returns

Command

ListCreateCommand(ICommandContext, IEntityQuery<T>)

public override Command ListCreateCommand(ICommandContext context, IEntityQuery<T> q)

Parameters

context ICommandContext
q IEntityQuery<T>

Returns

Command

RemovePasswordLoginCommand(ICommandContext, IUserAccount)

protected virtual Command RemovePasswordLoginCommand(ICommandContext context, IUserAccount userAccount)

Parameters

context ICommandContext
userAccount IUserAccount

Returns

Command

ResetAuthorisationCacheCommand(ICommandContext)

protected virtual Command ResetAuthorisationCacheCommand(ICommandContext context)

Parameters

context ICommandContext

Returns

Command

RevokeAdministratorRoleCommand(ICommandContext, IUserAccount)

protected virtual Command RevokeAdministratorRoleCommand(ICommandContext context, IUserAccount userAccount)

Parameters

context ICommandContext
userAccount IUserAccount

Returns

Command