Class Role
Defined in: rhqapi.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Role(nativeRole)
Creates a new instance of Role
|
Field Attributes | Field Name and Description |
---|---|
Id of this role
|
|
Name of this role
|
|
Native role which this object abstracts.
|
Method Attributes | Method Name and Description |
---|---|
assignBundleGroups(groupArray)
assigns given resource groups to this role.
|
|
assignResourceGroups(groupArray)
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[]}