Package com.google.gerrit.server.account
Class ServiceUserClassifierImpl
- java.lang.Object
-
- com.google.gerrit.server.account.ServiceUserClassifierImpl
-
- All Implemented Interfaces:
ServiceUserClassifier
public class ServiceUserClassifierImpl extends Object implements ServiceUserClassifier
An implementation ofServiceUserClassifier
that will consider a user to be a robot if they are a member in theService Users
group.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.server.account.ServiceUserClassifier
ServiceUserClassifier.NoOp
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isServiceUser(Account.Id user)
Returnstrue
if the given user is considered aService User
user.static com.google.inject.Module
module()
-
-
-
Method Detail
-
module
public static com.google.inject.Module module()
-
isServiceUser
public boolean isServiceUser(Account.Id user)
Description copied from interface:ServiceUserClassifier
Returnstrue
if the given user is considered aService User
user.- Specified by:
isServiceUser
in interfaceServiceUserClassifier
-
-