Class: UserInfo

bo.system. UserInfo

Serves as the base class for user information object.

new UserInfo(userCode)

Creates a new user information object.

Parameters:
Name Type Argument Description
userCode string <optional>

The identifier of the user.

Throws:
Argument error: The userCode must be a string or null.

Members

userCode :string

The identifier of the user.

Type:
  • string

Methods

<virtual> isInRole(role) → {boolean}

Abstract method to determine if the user is member of the given role.

Parameters:
Name Type Description
role string

The name of the role.

Throws:
Not implemented error: The UserInfo.isInRole method is not implemented.
Returns:

True if the user is a member of the role, otherwise false.

Type
boolean
If you find bugs or have feature requests, please let us know.

JavaScript business objects ♦ Copyright © 2014-2016 Logikum, Ltd.
Documentation generated by JSDoc 3.2.2 on 2015. December 31. using the DocStrap template.