Class Index | File Index

Classes


Class Role


Defined in: rhqapi.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Role(nativeRole)
Creates a new instance of Role
Field Summary
Field Attributes Field Name and Description
 
id
Id of this role
 
Name of this role
 
Native role which this object abstracts.
Method Summary
Method Attributes Method Name and Description
 
assignBundleGroups(groupArray)
assigns given resource groups to this role.
 
assigns given resource groups to this role.
 
Returns array of BundleGroups assigned to this role
 
Returns array of all permissions this Role has.
 
Returns array of ResourceGroups assigned to this role
Class Detail
Role(nativeRole)
Creates a new instance of Role
Parameters:
nativeRole
{org.rhq.core.domain.authz.Role} native role
Field Detail
id
Id of this role

name
Name of this role

{org.rhq.core.domain.authz.Role} nativeObj
Native role which this object abstracts.
Method Detail
assignBundleGroups(groupArray)
assigns given resource groups to this role. Note that this cleans up all previously assigned groups
Parameters:
{BundleGroup[]} groupArray
- resource groups to be assigned with this role

assignResourceGroups(groupArray)
assigns given resource groups to this role. Note that this cleans up all previously assigned groups
Parameters:
{ResGroup[]} groupArray
- resource groups to be assigned with this role

{BundleGroup[]} bundleGroups()
Returns array of BundleGroups assigned to this role
Returns:
{BundleGroup[]}

{Array} getPermissions()
Returns array of all permissions this Role has.
Returns:
{Array}

{ResGroup[]} resourceGroups()
Returns array of ResourceGroups assigned to this role
Returns:
{ResGroup[]}

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