Class AccountLimits

java.lang.Object
com.google.gerrit.server.account.AccountLimits

public class AccountLimits extends Object
Limits which QoS a user runs as, and how many search results it can request.
  • Method Details

    • getQueueType

      public QueueProvider.QueueType getQueueType()
      Returns which priority queue the user's tasks should be submitted to.
    • getQueryLimit

      public int getQueryLimit()
      Get the limit on a QueryProcessor for a given user.
      Returns:
      limit according to GlobalCapability.QUERY_LIMIT.
    • hasExplicitRange

      public boolean hasExplicitRange(String permission)
      Returns true if the user has a permission rule specifying the range.
    • getRange

      public PermissionRange getRange(String permission)
      The range of permitted values associated with a label permission.