Skip to content

api.entities.CustomPermissionGroup.CustomPermissionGroup

prashantasdeveloper edited this page Oct 31, 2024 · 65 revisions

Class: CustomPermissionGroup

api/entities/CustomPermissionGroup.CustomPermissionGroup

Represents a group of custom permissions for an Asset

Hierarchy

Table of contents

Properties

Methods

Properties

asset

asset: BaseAsset

Asset for which this group specifies permissions

Inherited from

PermissionGroup.asset

Defined in

api/entities/PermissionGroup.ts:19


id

id: BigNumber

Defined in

api/entities/CustomPermissionGroup.ts:43


uuid

uuid: string

Inherited from

PermissionGroup.uuid

Defined in

api/entities/Entity.ts:46

Methods

exists

exists(): Promise<boolean>

Determine whether this Custom Permission Group exists on chain

Returns

Promise<boolean>

Overrides

PermissionGroup.exists

Defined in

api/entities/CustomPermissionGroup.ts:108


getPermissions

getPermissions(): Promise<GroupPermissions>

Retrieve the list of permissions and transaction groups associated with this Permission Group

Returns

Promise<GroupPermissions>

Overrides

PermissionGroup.getPermissions

Defined in

api/entities/CustomPermissionGroup.ts:74


isEqual

isEqual(entity): boolean

Determine whether this Entity is the same as another one

Parameters

Name Type
entity Entity<unknown, unknown>

Returns

boolean

Inherited from

PermissionGroup.isEqual

Defined in

api/entities/Entity.ts:61


setPermissions

setPermissions(args, opts?): Promise<GenericPolymeshTransaction<void, void>>

Modify the group's permissions

Parameters

Name Type
args SetGroupPermissionsParams
opts? ProcedureOpts

Returns

Promise<GenericPolymeshTransaction<void, void>>

Note

this method is of type ProcedureMethod, which means you can call setPermissions.checkAuthorization on it to see whether the signing Account and Identity have the required roles and permissions to run it

Defined in

api/entities/CustomPermissionGroup.ts:67


toHuman

toHuman(): HumanReadable

Return the Group's static data

Returns

HumanReadable

Overrides

PermissionGroup.toHuman

Defined in

api/entities/CustomPermissionGroup.ts:122


generateUuid

Static generateUuid<Identifiers>(identifiers): string

Generate the Entity's UUID from its identifying properties

Type parameters

Name
Identifiers

Parameters

Name Type
identifiers Identifiers

Returns

string

Inherited from

PermissionGroup.generateUuid

Defined in

api/entities/Entity.ts:14


unserialize

Static unserialize<Identifiers>(serialized): Identifiers

Unserialize a UUID into its Unique Identifiers

Type parameters

Name
Identifiers

Parameters

Name Type Description
serialized string UUID to unserialize

Returns

Identifiers

Inherited from

PermissionGroup.unserialize

Defined in

api/entities/Entity.ts:23

Clone this wiki locally