Class Role
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.role.Role
-
- Direct Known Subclasses:
ApplicationRole,TenantRole,UnboundRole
public abstract class Role extends java.lang.ObjectA role is a combination of aRoleDefinitionand aContext, which allows evaluation of access control for a given action on a resource.- Author:
- jonmv
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.RoleDefinitiondefinition()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.booleanequals(java.lang.Object o)static 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 UnboundRolehostedAccountant()Returns the role of the invoice managerstatic UnboundRolehostedOperator()Returns aRoleDefinition.hostedOperatorfor the current system.static UnboundRolehostedSupporter()Returns aRoleDefinition.hostedSupporterfor the current system.booleanimplies(Role other)Returns whether the other role is a parent of this, and has a context included in this role's context.static UnboundRolepaymentProcessor()Returns the role of the payment processorstatic TenantRolereader(com.yahoo.config.provision.TenantName tenant)Returns aRoleDefinition.readerfor the current system and given tenant.static UnboundRolesystemFlagsDeployer()Returns the role for system flag deployerstatic UnboundRolesystemFlagsDryrunner()Returns the role for system flag dryrun
-
-
-
Method Detail
-
hostedOperator
public static UnboundRole hostedOperator()
Returns aRoleDefinition.hostedOperatorfor the current system.
-
hostedSupporter
public static UnboundRole hostedSupporter()
Returns aRoleDefinition.hostedSupporterfor the current system.
-
everyone
public static UnboundRole everyone()
Returns aRoleDefinition.everyonefor the current system.
-
athenzTenantAdmin
public static TenantRole athenzTenantAdmin(com.yahoo.config.provision.TenantName tenant)
Returns aRoleDefinition.athenzTenantAdminfor the current system and given tenant.
-
reader
public static TenantRole reader(com.yahoo.config.provision.TenantName tenant)
Returns aRoleDefinition.readerfor the current system and given tenant.
-
developer
public static TenantRole developer(com.yahoo.config.provision.TenantName tenant)
Returns aRoleDefinition.developerfor the current system and given tenant.
-
administrator
public static TenantRole administrator(com.yahoo.config.provision.TenantName tenant)
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
public static UnboundRole systemFlagsDeployer()
Returns the role for system flag deployer
-
systemFlagsDryrunner
public static UnboundRole systemFlagsDryrunner()
Returns the role for system flag dryrun
-
paymentProcessor
public static UnboundRole paymentProcessor()
Returns the role of the payment processor
-
hostedAccountant
public static UnboundRole hostedAccountant()
Returns the role of the invoice manager
-
definition
public RoleDefinition definition()
Returns the role definition of this bound role.
-
implies
public boolean implies(Role other)
Returns whether the other role is a parent of this, and has a context included in this role's context.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-