A role defined declaratively by a repository app v2 manifest, granting configured privileges to controller resources whose matching role or resource type is registered against this role's name. Grants access based on two independent checks against a ControllerResource: whether the resource declares privileges under this role's name, and whether the resource's types intersect the resource types this role is configured with. If either check matches, the role applies and the union of the resource's own declared privileges and this role's configured privileges is granted. Instances are built from XML (via the "rolev2" XStream alias) as part of a repository app's manifest, one per declared role.
Implements: Role, Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| category | String | Category this role is grouped under in the admin role list. |
| description | String | Human-readable description of what this role grants. Never null; trimmed to an empty string if unset. |
| name | String | Name of this role, used as the key that resources and privileges are matched against. Never null; trimmed to an empty string if unset. |
Inherited from Role
Methods
canConnectToOrganisation()
Returns: boolean
Convenience method for callers, such as Velocity templates, which just need to know if this role can be assigned within an organisation context, without dealing with the TargetType enum directly.
canConnectToRepository()
Returns: boolean
Convenience method for callers, such as Velocity templates, which just need to know if this role can be assigned within a repository (or website) context, without dealing with the TargetType enum directly.
Methods
getName()
Returns: String
Name of this role, used as the key that resources and privileges are matched against. Never null; trimmed to an empty string if unset.
getDescription()
Returns: String
Human-readable description of what this role grants. Never null; trimmed to an empty string if unset.
getCategory()
Returns: String
Category this role is grouped under in the admin role list.