comparison flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.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 0d3bbe4240b1
children 4a6814be92ba
comparison
equal deleted inserted replaced
1424:8974e220b193 1425:bc06a671ef60
36 * to clone the artifact. 36 * to clone the artifact.
37 * 37 *
38 * @param parent collection to add recommendation to. 38 * @param parent collection to add recommendation to.
39 * @param recom recommendation to create clone for. 39 * @param recom recommendation to create clone for.
40 * @param factory factory to use. 40 * @param factory factory to use.
41 * @param url servers url.
42 * @param locale the locale to translate messages. 41 * @param locale the locale to translate messages.
43 */ 42 */
44 public Artifact load( 43 public Artifact load(
45 Collection parent, 44 Collection parent,
46 Recommendation recom, 45 Recommendation recom,
47 String factory, 46 String factory,
48 String url,
49 String locale 47 String locale
50 ) 48 )
51 throws ServerException { 49 throws ServerException {
52 logger.info( 50 logger.info(
53 "LoadArtifactServiceImpl.load: " + recom.getMasterArtifact()); 51 "LoadArtifactServiceImpl.load: " + recom.getMasterArtifact());
52
53 String url = getServletContext().getInitParameter("server-url");
54 54
55 // 1) Clone the Artifact specified in >>recom<< 55 // 1) Clone the Artifact specified in >>recom<<
56 Artifact clone = ArtifactHelper.createArtifact( 56 Artifact clone = ArtifactHelper.createArtifact(
57 url, locale, factory, recom); 57 url, locale, factory, recom);
58 58
79 * @param parent Collection where clones will be added to. 79 * @param parent Collection where clones will be added to.
80 * @param recoms definitions of source of clone. 80 * @param recoms definitions of source of clone.
81 * @param factory name of factory to use when cloning artifacts (can be 81 * @param factory name of factory to use when cloning artifacts (can be
82 * null in which case the recommendations getFactory() will 82 * null in which case the recommendations getFactory() will
83 * be used. 83 * be used.
84 * @param url servers url.
85 * @param locale the locale to translate messages. 84 * @param locale the locale to translate messages.
86 * 85 *
87 * @return cloned artifacts (same artifact might be contained multiple 86 * @return cloned artifacts (same artifact might be contained multiple
88 * times). 87 * times).
89 */ 88 */

http://dive4elements.wald.intevation.org