public class UserPredicates
extends Object
-
Nested Class Summary
Nested Classes
static class
static class
-
Constructor Summary
Constructors
-
Method Summary
static com.google.common.base.Predicate<User>
static com.google.common.base.Predicate<User>
static com.google.common.base.Predicate<User>
static com.google.common.base.Predicate<User>
static com.google.common.base.Predicate<User>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UserPredicates
public UserPredicates()
-
Method Details
-
apiKeyEquals
public static com.google.common.base.Predicate<User> apiKeyEquals(String apiKey)
- Returns:
- true, if the user's apiKey is the following
-
accountTypeEquals
public static com.google.common.base.Predicate<User> accountTypeEquals(Account.Type type)
- Returns:
- true, if the user's account type is the following
-
isUserAccount
public static com.google.common.base.Predicate<User> isUserAccount()
- Returns:
- true, if the account has user privileges
-
isDomainAdminAccount
public static com.google.common.base.Predicate<User> isDomainAdminAccount()
- Returns:
- true, is the user is a domain admin
-
isAdminAccount
public static com.google.common.base.Predicate<User> isAdminAccount()
- Returns:
- true, if the user is a global admin