Class

UserRole

UserRole()

Role aggregate (info, avatar, permissions, users).

Constructor

# new UserRole()

View Source infohub/UserRole.js, line 21

Classes

UserRole

Methods

# getAvatar() → {string}

Get the avatar of a role.

View Source infohub/UserRole.js, line 73

  • The avatar base64 string
string

# setAvatar(avatar) → {void}

Set the avatar of a role.

Parameters:
Name Type Description
avatar string

The avatar base64 string

View Source infohub/UserRole.js, line 66

void

# setFromJSON(userRole) → {void}

Set the user role from a JSON object.

Parameters:
Name Type Description
userRole object

The JSON object

View Source infohub/UserRole.js, line 44

void

# toJSON() → {object}

Convert the role to a JSON object.

View Source infohub/UserRole.js, line 33

object

# static createFromJSON(userRole) → {UserRole}

Create a user role from a JSON object.

Parameters:
Name Type Description
userRole object

The JSON object

View Source infohub/UserRole.js, line 56

UserRole