Class Index | File Index

Classes


Class User


Defined in: rhqapi.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
User(nativeRole)
Creates a new instance of User
Field Summary
Field Attributes Field Name and Description
 
id
Id of this user
 
Name of this user
 
Native subject which this object abstracts.
Method Summary
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.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jan 06 2014 16:48:32 GMT+0100 (CET)