HubUser
Implements
Properties
Property | Type | Notes |
---|---|---|
Protected | IArcGISContext | |
Protected | IHubUser | |
Protected | false |
Methods
Method | Returns | Notes |
---|---|---|
|
HubUser |
Create an instance from a IHubUser object |
|
Promise<void> |
Delete the HubUser from the store set a flag to indicate that it is destroyed Note that Hub does not currently support the deletion of users, so this function should not be used as of now. |
|
Promise<IHubUser> |
Transforms editor values into entity values |
|
Promise<IEditorConfig> |
Get the editor config for the HubUser entity. |
|
Promise<void> |
Save the HubUser to the backing store. Note that Hub does not currently support the creation of users, so this function should only be used for updating users. |
|
Promise<IHubUser> |
Transforms entity values into editor values |
|
IHubUser |
Method that returns the entity as a JSON object We have this on the EntityItem class, but we don't implement that here |
fromJson
StaticParameters
Parameter | Type | Default | Notes |
---|---|---|---|
json Required | Partial<IHubUser> |
JSON object to create a HubProject from |
|
context Required | IArcGISContext |
ArcGIS context |
Returns
HubUser
delete
Delete the HubUser from the store set a flag to indicate that it is destroyed
Returns
Note that Hub does not currently support the deletion of users, so this function should not be used as of now.
fromEditor
Transforms editor values into entity values
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
editor Required | IHubUser |
Returns
getEditorConfig
Get the editor config for the HubUser entity.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
i18nScope Required | string |
translation scope to be interpolated into the uiSchema |
|
type Required | UserEditorType |
editor type - corresponds to the returned uiSchema |
Returns
save
Save the HubUser to the backing store.
Returns
Note that Hub does not currently support the creation of users, so this function should only be used for updating users.
toEditor
Transforms entity values into editor values
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
editorContext Optional | IEntityEditorContext | {} | |
include Optional | string[] | [] |
Returns
toJson
Method that returns the entity as a JSON object We have this on the EntityItem class, but we don't implement that here
Returns
IHubUser
Class defined in common/src/users/HubUser.ts:13
Create an instance from a IHubUser object