public List<AppRegistration> findAll() { List<AppRegistration> apps = new ArrayList<>(); for (Map.Entry<String, URI> entry : this.uriRegistry.findAll().entrySet()) { apps.add(createAppRegistration(entry.getKey(), entry.getValue())); } return apps; }
@Override public List<AppRegistration> findAll() { return this.uriRegistry.findAll().entrySet().stream() .flatMap(kv -> toValidAppRegistration(kv, metadataUriFromRegistry(kv.getKey()))) .sorted((a, b) -> a.compareTo(b)) .collect(Collectors.toList()); }
@Override protected boolean isOverwrite(AppRegistration app, boolean overwrite) { if (overwrite) { return true; } return !uriRegistry.findAll().keySet().contains(key(app.getName(), app.getType())); }