Abstract Class: PermissionGroup
Defined in: src/api/entities/PermissionGroup.ts:15
Represents a group of permissions for an Asset
Extends
Entity
<UniqueIdentifiers
,unknown
>
Extended by
Properties
asset
asset:
BaseAsset
Defined in: src/api/entities/PermissionGroup.ts:19
Asset for which this group specifies permissions
uuid
uuid:
string
Defined in: src/api/entities/Entity.ts:46
Inherited from
Methods
exists()
abstract
exists():Promise
<boolean
>
Defined in: src/api/entities/Entity.ts:68
Determine whether this Entity exists on chain
Returns
Promise
<boolean
>
Inherited from
getPermissions()
abstract
getPermissions():Promise
<GroupPermissions
>
Defined in: src/api/entities/PermissionGroup.ts:35
Retrieve the Permissions associated with this Permission Group
Returns
Promise
<GroupPermissions
>
isEqual()
isEqual(
entity
:Entity
<unknown
,unknown
>):boolean
Defined in: src/api/entities/Entity.ts:61
Determine whether this Entity is the same as another one
Parameters
Parameter | Type |
---|---|
|
|
Returns
boolean
Inherited from
toHuman()
abstract
toHuman():unknown
Defined in: src/api/entities/Entity.ts:73
Returns Entity data in a human readable (JSON) format
Returns
unknown
Inherited from
generateUuid()
static
generateUuid<Identifiers
>(identifiers
:Identifiers
):string
Defined in: src/api/entities/Entity.ts:14
Generate the Entity's UUID from its identifying properties
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type | Description |
---|---|---|
|
|
Returns
string
Inherited from
isUniqueIdentifiers()
static
isUniqueIdentifiers(identifiers
:unknown
):boolean
Defined in: src/api/entities/Entity.ts:42
Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden
Parameters
Parameter | Type | Description |
---|---|---|
|
| object to type check |
Returns
boolean
Inherited from
unserialize()
static
unserialize<Identifiers
>(serialized
:string
):Identifiers
Defined in: src/api/entities/Entity.ts:23
Unserialize a UUID into its Unique Identifiers
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type | Description |
---|---|---|
|
| UUID to unserialize |
Returns
Identifiers