return ImmutableList.copyOf(strategy.execute(this, filter));
}
public VirtualMachineTemplate findTemplate(final Predicate<VirtualMachineTemplate> filter) {
ListVirtualMachineTemplates strategy = context.utils().injector().getInstance(ListVirtualMachineTemplates.class);
return Iterables.getFirst(strategy.execute(this, filter), null);
}
public List<Datacenter> listAllowedDatacenters() {
DatacentersDto datacenters = context.getApi().getEnterpriseApi().listAllowedDatacenters(target.getId());
return wrap(context, Datacenter.class, datacenters.getCollection());