Search Results for

    Show / Hide Table of Contents

    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
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    ViewCommand
    TaskBase
    ResetSystemRoles
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor
    Inherited Members
    TaskBase.GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter)
    TaskBase.InternalExecuteAsync(object)
    TaskBase.ProcessExecute(ServerTaskParameter, bool)
    TaskBase.ProcessExecute(ServerTaskParameter, bool, ServerTaskOccurrence?, short?)
    TaskBase.RunOnServer
    TaskBase.IncludeInSimple
    TaskBase.Title
    TaskBase.Description
    TaskBase.Key
    TaskBase.ModifierKeys
    TaskBase.IsQuickAccessCommand
    TaskBase.IconID
    TaskBase.ToolTip
    TaskBase.TaskType
    TaskBase.TaskParamType
    TaskBase.InternalExecuteWithChanges
    ViewCommand.Type
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    EPCommand.OnCanExecuteChanged()
    EPCommand.LoadChildrenAsync()
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.OnLayoutsChanged(IModelLayoutHost, LayoutChangeEventArgs)
    EPCommand.ExternalExecute(object)
    EPCommand.InternalExecute(object)
    EPCommand.ExternalCanExecute(object)
    EPCommand.InternalCanExecuteAsync(object)
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(bool)
    EPCommand.Dispose()
    EPCommand.RootController
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SubscribeToLayoutChange
    EPCommand.From
    EPCommand.LockExecution
    EPCommand.CustomType
    EPCommand.Owner
    EPCommand.Toggler
    EPCommand.CanExecuteChanged
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor, bool)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.ClearMyParent()
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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
    TaskBase.GetParameters()

    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
    EPCommand.InternalCanExecute(object?)

    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)

    Overrides
    TaskBase.InternalExecuteUserWarning()

    Implements

    IHasChildren<T>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    CommandExtensions.CreateCommand(EPCommand, ICommandDescriptor, CommandButtonType, bool, CommandSize)
    CommandExtensions.UpdateCommand(EPCommand, object, ICommandDescriptor, bool, CommandSize)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.