DeviceEditor Class

This is an edit form where a regular user/MobileTrack support user can view and edit a DeviceDto.
This component is only accessible to users with the ViewDevices permission.
The user can only make changes to the DeviceDto if they have the ManageDevices permission.
For MobileTrack support staff, both permissions by default enabled.
If we're dealing with an existing object, and if the user has the ReviewLogs permission, they can view the logs of the object as well.

Definition

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

Constructors

DeviceEditorInitializes a new instance of the DeviceEditor class

Properties

ActiveTab The tab of the page to use at startup.
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 Confirmation dialog invoked when the user wants to perform actions we need to confirm with the user.
ConfirmSwitchTabDialog Dialog to confirm switching tabs when there are unsaved changes.
Container Container for the phone number.
DeviceId The ID of the DeviceDto to display (derived from the URL).
DeviceMessages The DeviceMessageDto to be shown.
EditContext The EditContext used on the EditForm for the DeviceDto being edited.
FormOverlay Form overlay for the submit form or delete button.
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.
Model The DeviceDto being edited.
OriginalValue The original device to compare against
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)
RetrievePermissions Retrieves the permissions the user has for the scope of the current page/item
(Overrides MtBaseComponentRetrievePermissions)

See Also