Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.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 | f554dce42d66 |
children | 07b9404d7170 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Thu Dec 08 08:06:11 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java Thu Dec 08 09:12:27 2011 +0000 @@ -441,8 +441,7 @@ GWT.log("Update Collection name: " + c.identifier()); GWT.log("=> New name = " + c.getName()); - Config config = Config.getInstance(); - nameService.setName(c, config.getServerUrl(), new AsyncCallback<Void>(){ + nameService.setName(c, new AsyncCallback<Void>(){ public void onFailure(Throwable caught) { String msg = caught.getMessage(); @@ -478,8 +477,7 @@ GWT.log("Update Collection TTL: " + c.identifier()); GWT.log("=> New ttl = " + c.getTTL()); - Config config = Config.getInstance(); - ttlService.setTTL(c, config.getServerUrl(), new AsyncCallback<Void>() { + ttlService.setTTL(c, new AsyncCallback<Void>() { public void onFailure(Throwable caught) { String msg = caught.getMessage(); @@ -510,8 +508,7 @@ GWT.log("Delete Collection: " + c.identifier()); - Config config = Config.getInstance(); - deleteService.delete(c, config.getServerUrl(), new AsyncCallback<Void>(){ + deleteService.delete(c, new AsyncCallback<Void>(){ public void onFailure(Throwable caught) { String msg = caught.getMessage(); @@ -738,12 +735,11 @@ protected void cloneProject(Collection c) { Config config = Config.getInstance(); - String url = config.getServerUrl(); String locale = config.getLocale(); cloneCollection = c; - 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."); @@ -781,7 +777,7 @@ String factory = recommendation.getFactory(); createArtifactService.create( - url, locale, factory, recommendation, + locale, factory, recommendation, new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Error loading recommendations: " + @@ -799,12 +795,12 @@ protected void createCollection(final Artifact artifact) { Config config = Config.getInstance(); - final String url = config.getServerUrl(); final String locale = config.getLocale(); final String ownerid = user.identifier(); createCollectionService.create( - url, locale, ownerid, + locale, + ownerid, new AsyncCallback<Collection>() { public void onFailure(Throwable caught) { GWT.log("Could not create the new collection."); @@ -826,7 +822,7 @@ final String locale = config.getLocale(); addArtifactService.add( - c, a, url, locale, + c, a, locale, new AsyncCallback<Collection>() { public void onFailure(Throwable caught) { GWT.log("An error occured while adding artifact.");