Class ResetSystemRoles
This command executes the ResetSystemRoles system command
Performs a RefreshServers(IModelLayoutCommon), 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
System.Object
ResetSystemRoles
Implements
System.IDisposable
System.Windows.Input.ICommand
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Commands
Assembly: ClientCore.dll
Syntax
[CommandDescriptorOptions(Commands.ResetSystemRoles, null)]
public class ResetSystemRoles : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ResetSystemRoles(IModelLayoutCommon)
Creates a new ResetSystemRoles command
Declaration
public ResetSystemRoles(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning context for this command |
Methods
GetParameters()
Performs a RefreshServers(IModelLayoutCommon), 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 |
---|---|
System.Threading.Tasks.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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True |
Overrides
Implements
System.IDisposable
System.Windows.Input.ICommand