Class Role

  • Direct Known Subclasses:
    ApplicationRole, TenantRole, UnboundRole

    public abstract class Role
    extends java.lang.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 Detail

      • 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.
      • 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​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object