}
askServer(oids, ldapLoc, callback, waitSvc);
}
private boolean checkCache(NumericOid[] oids, LdapLocation ldapLoc, GetLdapStructuresCallback callback) {
LdapStructureCache cache = ldapCache.getCache(ldapLoc.getServer());
List<ObjectClassStructure> structs = new ArrayList<ObjectClassStructure>();
for (NumericOid oid : oids) {
// TODO: Instead of downloading all requested structures from the server
// if one of them is missing in the cache, we could ask for only the ones
// that are missing.
ObjectClassStructure struct = cache.getClassStructure(oid);
if (struct == null) {
return false;
}
structs.add(struct);
}