Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ArtifactServiceImpl.java @ 8313:e3a63d9c5bb1
Updated the client to build a default artifact for sq relations.
* Removed code for special sq relation artifact
* Updated MeasurementListGrid in info panel to create a new project
* Updated i18n
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 24 Sep 2014 12:02:05 +0200 |
parents | 519023ce3500 |
children | 75ccacd37bec |
comparison
equal
deleted
inserted
replaced
8312:9f5059f4f01a | 8313:e3a63d9c5bb1 |
---|---|
55 | 55 |
56 String url = getServletContext().getInitParameter("server-url"); | 56 String url = getServletContext().getInitParameter("server-url"); |
57 | 57 |
58 return ArtifactHelper.createArtifact(url, locale, factory, recom); | 58 return ArtifactHelper.createArtifact(url, locale, factory, recom); |
59 } | 59 } |
60 | |
61 @Override | |
62 public Artifact createSQRelationArtifact( | |
63 Collection collection, | |
64 String locale, | |
65 String river, | |
66 int measurementStation) | |
67 throws ServerException | |
68 { | |
69 log.info("ArtifactServiceImpl.createSQRelationArtifact"); | |
70 String url = getServletContext().getInitParameter("server-url"); | |
71 | |
72 Artifact artifact = ArtifactHelper.createSQRelationArtifact(url, | |
73 locale, river, measurementStation); | |
74 if (artifact == null) { | |
75 return null; | |
76 } | |
77 log.info("SQRelationArtifact created successfully"); | |
78 | |
79 CollectionHelper.addArtifact(collection, artifact, url, locale); | |
80 | |
81 return artifact; | |
82 } | |
83 | |
84 } | 60 } |
85 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 61 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |