Class User
Defined in: rhqapi.js.
Constructor Attributes | Constructor Name and Description |
---|---|
User(nativeRole)
Creates a new instance of User
|
Field Attributes | Field Name and Description |
---|---|
Id of this user
|
|
Name of this user
|
|
Native subject which this object abstracts.
|
Method Attributes | Method Name and Description |
---|---|
assignRoles(roleNames)
Assigns given roles to this user.
|
|
Gets all roles assigned to this user.
|
Class Detail
User(nativeRole)
Creates a new instance of User
- Parameters:
- nativeRole
- {org.rhq.core.domain.authz.Subject} native subject
Field Detail
id
Id of this user
name
Name of this user
{org.rhq.core.domain.authz.Subject}
nativeObj
Native subject which this object abstracts.
Method Detail
assignRoles(roleNames)
Assigns given roles to this user.
- Parameters:
- {String[]} roleNames
- array of names of roles which will be assigned to this user
{Role[]}
getAllAssignedRoles()
Gets all roles assigned to this user.
- Returns:
- Array of found roles.