AccountEditor Class

Editor to create or edit an AccountDto. This editor is used by both regular users and MobileTrack support users.
The page is only accessible to users with the ViewAccounts permission.
Users can only edit if they have the ManageAccounts permission.
MobileTrack support users have these permissions by default.

Definition

Namespace: MobileTrack.Web.Portal.Components.ItemEditors
Assembly: MobileTrack.Web.Portal (in MobileTrack.Web.Portal.exe) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public class AccountEditor : MtBaseComponent, 
	IHasCloudEventsService, IHasUnsavedChanges
Inheritance
Object    ComponentBase    MtBaseComponent    AccountEditor
Implements
IHasCloudEventsService, IHasUnsavedChanges

Constructors

AccountEditorInitializes a new instance of the AccountEditor class

Properties

AccountId The ID of the AccountDto to display (derived from the URL).
ActiveTab The tab to open when the editor is opened.
CloudEventsService Dependency injected service to interop with Cloud Services, e.g. when the receiver gets a message from a device or when a new account is created, a device send a message to the receiver, etc.
ConfirmDialog Modal for confirming an action
ConfirmSwitchTabDialog Dialog to confirm switching tabs when there are unsaved changes.
EditContext The EditContext for the AccountDto being edited.
FormOverlay Submit overlay for when saving the form.
HasUnsavedChanges Whether the component has unsaved changes or not. This is used to determine if the user can navigate away from the page or not.
JsRuntime Dependency injected JS Runtime.
MfaTwilioService Injected Twilio service for MFA.
OriginalValue Original AccountDto that is being edited. This variable is used to compare it to Model to see if changes were made.
RequiredPermissionsForManage Lists the permissions the user needs to be able to manage the page/item
(Overrides MtBaseComponentRequiredPermissionsForManage)
RequiredPermissionsForView Lists the permissions the user needs to be able to view the page/item
(Overrides MtBaseComponentRequiredPermissionsForView)

Methods

BuildRenderTree
(Overrides ComponentBaseBuildRenderTree(RenderTreeBuilder))
LoadData Loads the data that the component requires to get out of preview. It is invoked in the OnParametersSetAsync method of MtBaseComponent
(Overrides MtBaseComponentLoadData)
OnInitialized Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
(Overrides ComponentBaseOnInitialized)
RetrievePermissions Retrieves the permissions the user has for the scope of the current page/item
(Overrides MtBaseComponentRetrievePermissions)

See Also