HubGroup

Class

Hub Group Class

Implements

Properties

Property Type Notes
context Protected IArcGISContext
entity Protected IHubGroup
isDestroyed Protected false
thumbnailCache Protected null

Accessors

Accessor Type Notes
canDelete boolean

Whether the user can delete the group only the owner or admins of the group can

canEdit boolean

Whether the user can edit the group, only the owner or admins of the group can

isProtected boolean

Whether the group is protected, if so, it can't be deleted

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

Static Static Class Method

Create a new HubGroup, returning a HubGroup instance. Note: This does not persist the Group into the backing store

Parameters

Parameter Type Default Notes
partialGroup Required Partial<IHubGroup>
context Required IArcGISContext
save Optional boolean false

Returns

Promise<HubGroup>

fetch

Static Static Class Method

Fetch 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

Promise<HubGroup>

fromJson

Static Static Class Method

Create 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

Class Method

Add a policy to the entity

Parameters

Parameter Type Default Notes
policy Required IEntityPermissionPolicy

Returns

void

checkPermission

Class Method

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

Class Method

Delete the HubGroup from the store set a flag to indicate that it is destroyed

  • delete() : Promise<void>

Returns

Promise<void>

fromEditor

Class Method

Load the group from the editor object

Parameters

Parameter Type Default Notes
editor Required IHubGroupEditor

Returns

Promise<IHubGroup>

getEditorConfig

Class Method

Parameters

Parameter Type Default Notes
i18nScope Required string
type Required GroupEditorType

Returns

Promise<IEditorConfig>

getPermissionPolicies

Class Method

Get all policies related to a specific permission

Parameters

Parameter Type Default Notes
permission Required Permission

Returns

removePermissionPolicy

Class Method

Remove a policy from the entity

  • removePermissionPolicy(permission: Permission, id: string) : void

Parameters

Parameter Type Default Notes
permission Required Permission
id Required string

Returns

void

save

Class Method

Save the HubGroup to the backing store

  • save() : Promise<void>

Returns

Promise<void>

toEditor

Class Method

Return the group as an editor object

Parameters

Parameter Type Default Notes
editorContext Optional IEntityEditorContext {}
include Optional string[] []

Returns

Promise<IHubGroupEditor>

toJson

Class Method

Return the backing entity as an object literal

Returns

update

Class Method

Apply a new state to the instance

Parameters

Parameter Type Default Notes
changes Required Partial<IHubGroup>

Returns

void

Class defined in common/src/groups/HubGroup.ts:35