Class ResetSystemRoles
This command executes the ResetSystemRoles system command
Performs a RefreshServers, and also runs the upgrade command for the standard system roles and teams which resets their permissions and menus.
This also runs the same reset process for any custom AddIns that implement IDefaultMenuInserter
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.ResetSystemRoles, null)]
public class ResetSystemRoles : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ResetSystemRoles(IRootController, IModelLayoutCommon)
Creates a new ResetSystemRoles command
Declaration
public ResetSystemRoles(IRootController root, IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | owner | The owning context for this command |
Methods
GetParameters()
Performs a RefreshServers, and also runs the upgrade command for the standard system roles and teams which resets their permissions and menus.
This also runs the same reset process for any custom AddIns that implement IDefaultMenuInserter
Declaration
protected override Task<ServerTaskParameter> GetParameters()
Returns
Type | Description |
---|---|
Task<ServerTaskParameter> | A task indicating the completion of the operation |
Overrides
InternalCanExecute(object)
True
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | True |
Overrides
InternalExecuteUserWarning()
Provides a mechanism for implementing commands to issue a warning to the user before executing. Can return false to abort the execution.
Declaration
protected override Task<bool> InternalExecuteUserWarning()
Returns
Type | Description |
---|---|
Task<bool> | True to continue executing the aommand (default) |