Class Role
java.lang.Object
com.yahoo.vespa.hosted.controller.api.role.Role
- Direct Known Subclasses:
ApplicationRole,TenantRole,UnboundRole
A role is a combination of a
RoleDefinition and a Context, which allows evaluation
of access control for a given action on a resource.- Author:
- jonmv
-
Method Summary
Modifier and TypeMethodDescriptionstatic TenantRoleadministrator(com.yahoo.config.provision.TenantName tenant) Returns aRoleDefinition.administratorfor the current system and given tenant.static TenantRoleathenzTenantAdmin(com.yahoo.config.provision.TenantName tenant) Returns aRoleDefinition.athenzTenantAdminfor the current system and given tenant.static ApplicationRolebuildService(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application) Returns aRoleDefinition.buildServicefor the current system and given tenant and application.Returns the role definition of this bound role.static TenantRoledeveloper(com.yahoo.config.provision.TenantName tenant) Returns aRoleDefinition.developerfor the current system and given tenant.booleanstatic UnboundRoleeveryone()Returns aRoleDefinition.everyonefor the current system.inthashCode()static ApplicationRoleheadless(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application) Returns aRoleDefinition.headlessfor the current system, given tenant, and applicationstatic UnboundRoleReturns the role of the invoice managerstatic TenantRolehostedDeveloper(com.yahoo.config.provision.TenantName tenant) Returns aRoleDefinition.hostedDeveloperfor the current system and given tenant.static UnboundRoleReturns aRoleDefinition.hostedOperatorfor the current system.static UnboundRoleReturns aRoleDefinition.hostedSupporterfor the current system.booleanReturns whether the other role is a parent of this, and has a context included in this role's context.static UnboundRoleReturns the role of the payment processorstatic TenantRolereader(com.yahoo.config.provision.TenantName tenant) Returns aRoleDefinition.readerfor the current system and given tenant.static UnboundRoleReturns the role for system flag deployerstatic UnboundRoleReturns the role for system flag dryrun
-
Method Details
-
hostedOperator
Returns aRoleDefinition.hostedOperatorfor the current system. -
hostedSupporter
Returns aRoleDefinition.hostedSupporterfor the current system. -
everyone
Returns aRoleDefinition.everyonefor the current system. -
athenzTenantAdmin
Returns aRoleDefinition.athenzTenantAdminfor the current system and given tenant. -
reader
Returns aRoleDefinition.readerfor the current system and given tenant. -
developer
Returns aRoleDefinition.developerfor the current system and given tenant. -
hostedDeveloper
Returns aRoleDefinition.hostedDeveloperfor the current system and given tenant. -
administrator
Returns aRoleDefinition.administratorfor the current system and given tenant. -
headless
public static ApplicationRole headless(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application) Returns aRoleDefinition.headlessfor the current system, given tenant, and application -
buildService
public static ApplicationRole buildService(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application) Returns aRoleDefinition.buildServicefor the current system and given tenant and application. -
systemFlagsDeployer
Returns the role for system flag deployer -
systemFlagsDryrunner
Returns the role for system flag dryrun -
paymentProcessor
Returns the role of the payment processor -
hostedAccountant
Returns the role of the invoice manager -
definition
Returns the role definition of this bound role. -
implies
Returns whether the other role is a parent of this, and has a context included in this role's context. -
equals
-
hashCode
public int hashCode()
-