java.lang.Object
com.yahoo.vespa.hosted.controller.api.role.Role
Direct Known Subclasses:
ApplicationRole, TenantRole, UnboundRole

public abstract class Role extends Object
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 Details

    • hostedOperator

      public static UnboundRole hostedOperator()
      Returns a RoleDefinition.hostedOperator for the current system.
    • hostedSupporter

      public static UnboundRole hostedSupporter()
      Returns a RoleDefinition.hostedSupporter for the current system.
    • everyone

      public static UnboundRole everyone()
      Returns a RoleDefinition.everyone for the current system.
    • athenzTenantAdmin

      public static TenantRole athenzTenantAdmin(com.yahoo.config.provision.TenantName tenant)
      Returns a RoleDefinition.athenzTenantAdmin for the current system and given tenant.
    • reader

      public static TenantRole reader(com.yahoo.config.provision.TenantName tenant)
      Returns a RoleDefinition.reader for the current system and given tenant.
    • developer

      public static TenantRole developer(com.yahoo.config.provision.TenantName tenant)
      Returns a RoleDefinition.developer for the current system and given tenant.
    • hostedDeveloper

      public static TenantRole hostedDeveloper(com.yahoo.config.provision.TenantName tenant)
      Returns a RoleDefinition.hostedDeveloper for the current system and given tenant.
    • administrator

      public static TenantRole administrator(com.yahoo.config.provision.TenantName tenant)
      Returns a RoleDefinition.administrator for the current system and given tenant.
    • headless

      public static ApplicationRole headless(com.yahoo.config.provision.TenantName tenant, com.yahoo.config.provision.ApplicationName application)
      Returns a RoleDefinition.headless for 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 a RoleDefinition.buildService for 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object