Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 845:4db672cdacb2
Added outs/facet filters when creation new artifacts.
flys-client/trunk@2569 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 24 Aug 2011 16:06:48 +0000 |
parents | ac70261bb3f8 |
children | 25a4bf390757 |
comparison
equal
deleted
inserted
replaced
844:ac70261bb3f8 | 845:4db672cdacb2 |
---|---|
607 protected void loadRecommendedArtifacts(Recommendation[] recommendations) { | 607 protected void loadRecommendedArtifacts(Recommendation[] recommendations) { |
608 Config config = Config.getInstance(); | 608 Config config = Config.getInstance(); |
609 final String url = config.getServerUrl(); | 609 final String url = config.getServerUrl(); |
610 final String locale = config.getLocale(); | 610 final String locale = config.getLocale(); |
611 final Collection collection = getCollection(); | 611 final Collection collection = getCollection(); |
612 final Artifact master = getArtifact(); | |
613 | 612 |
614 if (recommendations == null) { | 613 if (recommendations == null) { |
615 GWT.log("WARNING: Currently no recommendations."); | 614 GWT.log("WARNING: Currently no recommendations."); |
616 return; | 615 return; |
617 } | 616 } |
623 | 622 |
624 final String factory = recommendation.getFactory(); | 623 final String factory = recommendation.getFactory(); |
625 | 624 |
626 GWT.log("Load recommended artifact with factory: " + factory); | 625 GWT.log("Load recommended artifact with factory: " + factory); |
627 | 626 |
628 String uuid = master != null ? master.getUuid() : null; | |
629 | |
630 createArtifactService.create( | 627 createArtifactService.create( |
631 url, locale, factory, uuid, recommendation, | 628 url, locale, factory, recommendation, |
632 new AsyncCallback<Artifact>() { | 629 new AsyncCallback<Artifact>() { |
633 public void onFailure(Throwable caught) { | 630 public void onFailure(Throwable caught) { |
634 GWT.log("Error loading recommendations: " + | 631 GWT.log("Error loading recommendations: " + |
635 caught.getMessage()); | 632 caught.getMessage()); |
636 } | 633 } |