HubGroup
Hub Group Class
Implements
Properties
| Property | Type | Notes | 
|---|---|---|
| Protected | IArcGISContext | |
| Protected | IHubGroup | |
| Protected | false | |
| Protected | null | 
Accessors
Methods
| Method | Returns | Notes | 
|---|---|---|
|  | Promise<HubGroup> | Create a new HubGroup, returning a HubGroup instance. Note: This does not persist the Group into the backing store | 
|  | Promise<HubGroup> | Fetch a Group from the backing store and return a HubGroup instance. | 
|  | HubGroup | Create an instance from an IHubGroup object | 
|  | void | Add a policy to the entity | 
|  | IPermissionAccessResponse | Check if current user has a specific permission, accounting for both system and entity level policies | 
|  | Promise<void> | Delete the HubGroup from the store set a flag to indicate that it is destroyed | 
|  | Promise<IHubGroup> | Load the group from the editor object | 
|  | Promise<IEditorConfig> | |
|  | IEntityPermissionPolicy[] | Get all policies related to a specific permission | 
|  | void | Remove a policy from the entity | 
|  | Promise<void> | Save the HubGroup to the backing store | 
|  | Promise<IHubGroupEditor> | Return the group as an editor object | 
|  | IHubGroup | Return the backing entity as an object literal | 
|  | void | Apply a new state to the instance | 
create
StaticParameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| partialGroup Required | Partial<IHubGroup> | ||
| context Required | IArcGISContext | ||
| save Optional | boolean | false | 
Returns
fetch
StaticFetch a Group from the backing store and return a HubGroup instance.
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| identifier Required | string | Identifier of the group to load | |
| context Required | IArcGISContext | 
Returns
fromJson
StaticCreate an instance from an IHubGroup object
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| json Required | Partial<IHubGroup> | JSON object to create a HubGroup from | |
| context Required | IArcGISContext | ArcGIS context | 
Returns
addPermissionPolicy
Add a policy to the entity
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| policy Required | IEntityPermissionPolicy | 
Returns
checkPermission
Check if current user has a specific permission, accounting for both system and entity level policies
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| permission Required | Permission | 
Returns
delete
Delete the HubGroup from the store set a flag to indicate that it is destroyed
Returns
fromEditor
Load the group from the editor object
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| editor Required | IHubGroupEditor | 
Returns
getEditorConfig
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| i18nScope Required | string | ||
| type Required | GroupEditorType | 
Returns
getPermissionPolicies
Get all policies related to a specific permission
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| permission Required | Permission | 
Returns
removePermissionPolicy
Remove a policy from the entity
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| permission Required | Permission | ||
| id Required | string | 
Returns
toEditor
Return the group as an editor object
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| _editorContext Optional | IEntityEditorContext | {} | |
| include Optional | string[] | [] | 
Returns
update
Apply a new state to the instance
Parameters
| Parameter | Type | Default | Notes | 
|---|---|---|---|
| changes Required | Partial<IHubGroup> | 
Returns
Class defined in packages/common/src/groups/HubGroup.ts:35
Create a new HubGroup, returning a HubGroup instance. Note: This does not persist the Group into the backing store