Class UserPredicates


  • public class UserPredicates
    extends Object
    • Constructor Detail

      • UserPredicates

        public UserPredicates()
    • Method Detail

      • 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