org.jclouds.cloudstack.predicates
Class UserPredicates
java.lang.Object
org.jclouds.cloudstack.predicates.UserPredicates
public class UserPredicates
- extends Object
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserPredicates
public UserPredicates()
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
Copyright © 2009-2012 jclouds. All Rights Reserved.