Class

UserGroup

UserGroup()

Group aggregate (info, avatar, permissions, users, roles).

Constructor

# new UserGroup()

Properties:
Name Type Description
info Object
avatar string
permissions Object
userrelations Array.<Object>
invitations Array.<Object>
users Array.<string>
roles Object.<string, any>

View Source infohub/UserGroup.js, line 27

Classes

UserGroup

Methods

# getAvatar() → {string}

Get the avatar of the user group.

View Source infohub/UserGroup.js, line 86

  • The avatar base64 string
string

# setAvatar(avatar) → {void}

Set the avatar of the user group.

Parameters:
Name Type Description
avatar string

The avatar base64 string

View Source infohub/UserGroup.js, line 78

void

# setFromJSON(userGroup)

Set the user group from a JSON object.

Parameters:
Name Type Description
userGroup UserGroup

View Source infohub/UserGroup.js, line 42

# toJSON() → {object}

Convert the user group to a JSON object.

View Source infohub/UserGroup.js, line 67

object

# static createFromJSON(userGroup) → {UserGroup}

Create a user group from a JSON object.

Parameters:
Name Type Description
userGroup UserGroup

View Source infohub/UserGroup.js, line 57

UserGroup