Filters sales and product data by supplier, rather than granting access to screens. Every organisation the current user holds this role on is treated as a supplier, and the user is only shown sales data for products sold by those organisations. Similar in spirit to ReportingAccessRole, but scoped to product suppliers rather than controlling screen access; see issue 12080 for background. This role never applies directly to a resource, it is checked as a data filter by the reporting code that reads it.
Implements: Role
Properties
| Property | Returns | Description |
|---|---|---|
| category | String | The category this role is grouped under when listed in the admin UI. |
| description | String | The human-readable description of this role, shown in role assignment screens. |
| name | String | The unique key this role is registered under. |
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
The unique key this role is registered under.
getDescription()
Returns: String
The human-readable description of this role, shown in role assignment screens.
getCategory()
Returns: String
The category this role is grouped under when listed in the admin UI.