Package com.google.gerrit.server.account
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AccountLimits.Factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getQueryLimit()
Get the limit on aQueryProcessor
for a given user.QueueProvider.QueueType
getQueueType()
PermissionRange
getRange(String permission)
The range of permitted values associated with a label permission.boolean
hasExplicitRange(String permission)
-
-
-
Method Detail
-
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 aQueryProcessor
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.
-
-