Access Model class

Hierarchy (view full)

Constructors

Properties

onGroupsUpdated: OEvent<(() => void)> = ...

Event is emitted when:

  • a access group is created
  • persons are added to the access group
  • persons are removed from the access group
onUpdated: OEvent<(() => void)> = ...
state: StateMachine<"Uninitialised" | "Initialised", "shutdown" | "init">

Methods

  • Parameters

    • name: string
    • personId: SHA256IdHash<Person>

    Returns Promise<void>

  • Parameters

    • name: string

    Returns Promise<VersionedObjectResult<Group>>

  • Parameters

    • groupName: string | string[]

    Returns Promise<SHA256IdHash<Person>[]>

  • Parameters

    • groupName: string
    • objectHash: SHA256Hash<OneObjectTypes>

    Returns Promise<VersionedObjectResult<Access | IdAccess>>

  • Parameters

    • name: string
    • personId: SHA256IdHash<Person>

    Returns Promise<void>