diff flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 1425:bc06a671ef60

Removed the URL parameter from service calls. The service implementations read the URL from the web.xml config file now. flys-client/trunk@3367 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 08 Dec 2011 09:12:27 +0000
parents 94d4f040da3a
children 40f4137a2c31
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Thu Dec 08 08:06:11 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java	Thu Dec 08 09:12:27 2011 +0000
@@ -224,11 +224,11 @@
         GWT.log("CollectionView.createNewCollection");
 
         Config config       = Config.getInstance();
-        final String url    = config.getServerUrl();
         final String locale = config.getLocale();
 
         createCollectionService.create(
-            url, locale, ownerId,
+            locale,
+            ownerId,
             new AsyncCallback<Collection>() {
                 public void onFailure(Throwable caught) {
                     GWT.log("Could not create the new collection.");
@@ -368,10 +368,9 @@
 
         if (c != null) {
             Config config = Config.getInstance();
-            String url    = config.getServerUrl();
             String locale = config.getLocale();
 
-            describeCollectionService.describe(c.identifier(), url, locale,
+            describeCollectionService.describe(c.identifier(), locale,
                 new AsyncCallback<Collection>() {
                     public void onFailure(Throwable caught) {
                         GWT.log("Could not DESCRIBE collection.");
@@ -575,7 +574,7 @@
         artifactsQueue++;
 
         addArtifactService.add(
-            collection, artifact, url, locale,
+            collection, artifact, locale,
             new AsyncCallback<Collection>() {
                 public void onFailure(Throwable caught) {
                     GWT.log("An error occured while adding artifact.");
@@ -597,13 +596,12 @@
 
     protected void addRecommendationsToCollection() {
         Config config               = Config.getInstance();
-        final String url            = config.getServerUrl();
         final String locale         = config.getLocale();
         final Collection collection = getCollection();
 
         collection.addRecommendations(newRecommendations);
 
-        updater.update(collection, url, locale,
+        updater.update(collection, locale,
             new AsyncCallback<Collection>() {
                 public void onFailure(Throwable caught) {
                     newRecommendations.removeAllElements();
@@ -654,7 +652,7 @@
             GWT.log("Load recommended artifact with factory: " + factory);
 
             createArtifactService.create(
-                url, locale, factory, recommendation,
+                locale, factory, recommendation,
                 new AsyncCallback<Artifact>() {
                     public void onFailure(Throwable caught) {
                         GWT.log("Error loading recommendations: " +

http://dive4elements.wald.intevation.org