Class UserPredicates
- java.lang.Object
-
- org.jclouds.cloudstack.predicates.UserPredicates
-
public class UserPredicates extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserPredicates.AccountTypeEquals
static class
UserPredicates.ApiKeyEquals
-
Constructor Summary
Constructors Constructor Description UserPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<User>
accountTypeEquals(Account.Type type)
static com.google.common.base.Predicate<User>
apiKeyEquals(String apiKey)
static com.google.common.base.Predicate<User>
isAdminAccount()
static com.google.common.base.Predicate<User>
isDomainAdminAccount()
static com.google.common.base.Predicate<User>
isUserAccount()
-
-
-
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
-
-