Options
Menu

Class ActivityPermissionManager

The ActivityPermissionManager manages the permissions for a particular Activity within the domain.

Hierarchy

Index

Methods

addGroupPermissions

addUserPermissions

addWorldPermissions

getAllGroupPermissions

getAllUserPermissions

getGroupPermissions

getPermissions

getUserPermissions

getWorldPermissions

id

  • id(): string
  • Returns string

    The unique id within the type of the activity that the permissions manager is managing the permissions for.

removeGroupPermissions

removeUserPermissions

removeWorldPermissions

resolveSessionPermissions

setGroupPermissions

  • Sets the given permissions for the given groups.

    Parameters

    • permissions: StringMapLike<Set<ActivityPermission> | ActivityPermission[]>

      an object which maps one or more group IDs to their new set of permissions

    • replaceAll: boolean = false

      Determines if the map passed in represents the entire set of group permissions to set. All permissions for other groups will be removed. The default is false.

    Returns Promise<void>

    A resolved promise if successful

setUserPermissions

  • Sets the given permissions for the given users

    Parameters

    • permissions: DomainUserMapping<Set<ActivityPermission> | ActivityPermission[]>

      an object which maps one or more usernames to their new set of permissions

    • replaceAll: boolean = false

      Determines if the map passed in represents the entire set of user permissions to set. All permissions for other user will be removed. The default is false.

    Returns Promise<void>

    A resolved promise if successful

setWorldPermissions

type

  • type(): string
  • Returns string

    The user defined activity type of the activity that the permissions manager is managing the permissions for.