org.jclouds.cloudstack.predicates
Class UserPredicates

java.lang.Object
  extended by org.jclouds.cloudstack.predicates.UserPredicates

public class UserPredicates
extends Object

Author:
Adrian Cole

Nested Class Summary
static class UserPredicates.AccountTypeEquals
           
static class UserPredicates.ApiKeyEquals
           
 
Constructor Summary
UserPredicates()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2009-2012 jclouds. All Rights Reserved.