Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/MetaDataServiceImpl.java @ 827:bd56dc762e7f
Datacage: Re-added the outs parameter to the meta data service.
flys-client/trunk@2524 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 22 Aug 2011 14:38:35 +0000 |
parents | 70b728a9f4e8 |
children | a1a5dc2b9e34 |
comparison
equal
deleted
inserted
replaced
826:2f65c742803f | 827:bd56dc762e7f |
---|---|
27 implements MetaDataService | 27 implements MetaDataService |
28 { | 28 { |
29 public static final String ERROR_NO_META_DATA_FOUND = | 29 public static final String ERROR_NO_META_DATA_FOUND = |
30 "error_no_meta_data_found"; | 30 "error_no_meta_data_found"; |
31 | 31 |
32 @Override | |
32 public DataCageTree getMetaData( | 33 public DataCageTree getMetaData( |
33 String url, | 34 String url, |
34 String locale, | 35 String locale, |
35 String artifactId, | 36 String artifactId, |
36 String userId | 37 String userId, |
38 String outs | |
37 ) throws ServerException | 39 ) throws ServerException |
38 { | 40 { |
39 System.out.println("MetaDataService.getMetaData"); | 41 System.out.println("MetaDataService.getMetaData"); |
40 | 42 |
41 Document doc = XMLUtils.newDocument(); | 43 Document doc = XMLUtils.newDocument(); |
57 Element userEl = ec.create("user-id"); | 59 Element userEl = ec.create("user-id"); |
58 userEl.setAttribute("value", userId); | 60 userEl.setAttribute("value", userId); |
59 meta.appendChild(userEl); | 61 meta.appendChild(userEl); |
60 } | 62 } |
61 | 63 |
64 if (outs != null) { | |
65 Element outsEl = ec.create("outs"); | |
66 outsEl.setAttribute("value", outs); | |
67 meta.appendChild(outsEl); | |
68 } | |
69 | |
62 doc.appendChild(meta); | 70 doc.appendChild(meta); |
63 | 71 |
64 HttpClient client = new HttpClientImpl(url, locale); | 72 HttpClient client = new HttpClientImpl(url, locale); |
65 | 73 |
66 try { | 74 try { |