/** * * @return true, if the public ip address is associated with the specified * network */ public static Predicate<PublicIPAddress> associatedWithNetwork(final String networkId) { return new AssociatedWithNetwork(networkId); }
/** * Filters for default networks in a specific zone. * * @param zoneId the ID of the required zone. * @return networks in the zone that have the default flag set. */ public static Predicate<Network> defaultNetworkInZone(final String zoneId) { return new DefaultNetworkInZone(zoneId); }
/** * * @return true, if the user's apiKey is the following */ public static Predicate<User> apiKeyEquals(String apiKey) { return new ApiKeyEquals(apiKey); }
/** * * @return true, if the account has user privileges */ public static Predicate<User> isUserAccount() { return accountTypeEquals(Account.Type.USER); }
/** * * @return true, if the user's account type is the following */ public static Predicate<User> accountTypeEquals(Account.Type type) { return new AccountTypeEquals(type); }
/** * * @return true, if the user is a global admin */ public static Predicate<User> isAdminAccount() { return accountTypeEquals(Account.Type.ADMIN); } }
/** * * @return true, if the public ip address is associated with the specified * network */ public static Predicate<PublicIPAddress> associatedWithNetwork(final String networkId) { return new AssociatedWithNetwork(networkId); }
/** * Filters for default networks in a specific zone. * * @param zoneId the ID of the required zone. * @return networks in the zone that have the default flag set. */ public static Predicate<Network> defaultNetworkInZone(final String zoneId) { return new DefaultNetworkInZone(zoneId); }
/** * * @return true, if the user's apiKey is the following */ public static Predicate<User> apiKeyEquals(String apiKey) { return new ApiKeyEquals(apiKey); }
/** * * @return true, if the user's account type is the following */ public static Predicate<User> accountTypeEquals(Account.Type type) { return new AccountTypeEquals(type); }
/** * @return true, is the user is a domain admin */ public static Predicate<User> isDomainAdminAccount() { return accountTypeEquals(Type.DOMAIN_ADMIN); }
/** * * @return true, if the public ip address is associated with the specified * network */ public static Predicate<PublicIPAddress> associatedWithNetwork(final String networkId) { return new AssociatedWithNetwork(networkId); }
/** * Filters for default networks in a specific zone. * * @param zoneId the ID of the required zone. * @return networks in the zone that have the default flag set. */ public static Predicate<Network> defaultNetworkInZone(final String zoneId) { return new DefaultNetworkInZone(zoneId); }
/** * * @return true, if the user's apiKey is the following */ public static Predicate<User> apiKeyEquals(String apiKey) { return new ApiKeyEquals(apiKey); }
/** * * @return true, if the user's account type is the following */ public static Predicate<User> accountTypeEquals(Account.Type type) { return new AccountTypeEquals(type); }
/** * * @return true, if the account has user privileges */ public static Predicate<User> isUserAccount() { return accountTypeEquals(Account.Type.USER); }
/** * @return true, is the user is a domain admin */ public static Predicate<User> isDomainAdminAccount() { return accountTypeEquals(Type.DOMAIN_ADMIN); }
/** * * @return true, if the user is a global admin */ public static Predicate<User> isAdminAccount() { return accountTypeEquals(Account.Type.ADMIN); } }
/** * * @return true, if the account has user privileges */ public static Predicate<User> isUserAccount() { return accountTypeEquals(Account.Type.USER); }
/** * * @return true, if the user is a global admin */ public static Predicate<User> isAdminAccount() { return accountTypeEquals(Account.Type.ADMIN); } }