Adds the given permissions to any existing permissions for all given groups.
an object, mapping group Ids to an set of desired permission strings to be added
A resolved promise if successful
Adds the given permissions to any existing permissions for all given users.
an object, mapping usernames to an set of desired permission strings to be added
A resolved promise if successful
Adds the given permissions to any existing WORLD permissions.
an set of permission strings
A resolved promise if successful
Returns the permissions for all groups.
A promise, which resolves with a map of permission strings per group ID.
Returns the permissions for all users.
A promise, which resolves with a map of permission strings per username.
Returns the permissions for the given group.
an existing group ID
A promise, which resolves with an set of permission strings
Returns the permissions for the given user.
an existing user's username
A promise, which resolves with an set of permission strings
Returns the permissions for WORLD.
A promise, which resolves with an set of permission strings
The unique id within the type of the activity that the permissions manager is managing the permissions for.
Removes the given permissions from any of the provided groups' permissions for this chatId.
An object, mapping group IDs to an set of desired permission strings to be removed
A resolved promise if successful
Removes the given permissions from any of the provided users' permissions for this chatId.
An object, mapping usernames to an set of desired permission strings to be removed
A resolved promise if successful
Removes the given permissions from any existing WORLD permissions.
an set of permission strings
A resolved promise if successful
Returns the resolved permissions for the current user for this target.
Resolved means computed from the set of any relevant world
, group
or user
permissions.
Sets the given permissions for the given groups.
an object which maps one or more group IDs to their new set of permissions
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.
A resolved promise if successful
Sets the given permissions for the given users
an object which maps one or more usernames to their new set of permissions
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.
A resolved promise if successful
Sets the given permissions for WORLD.
an set of permission strings
A resolved promise if successful
The user defined activity type of the activity that the permissions manager is managing the permissions for.
The ActivityPermissionManager manages the permissions for a particular Activity within the domain.