comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MetaDataService.java @ 4868:9bddb6f5baa0

MetaDataService: Document parameters string.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 28 Jan 2013 00:45:23 +0100
parents afd817b006b7
children
comparison
equal deleted inserted replaced
4867:c4973fa23674 4868:9bddb6f5baa0
31 * "/art:meta/art:user-id/@value" The UUID of the user. Optional. 31 * "/art:meta/art:user-id/@value" The UUID of the user. Optional.
32 * If given the user specific template is filled. 32 * If given the user specific template is filled.
33 * "/art:meta/art:outs/@value" The list of outs used to recommend for the 33 * "/art:meta/art:outs/@value" The list of outs used to recommend for the
34 * various outputs. 34 * various outputs.
35 * "/art:meta/art:parameters/@value" A list of key/value pairs to inject more 35 * "/art:meta/art:parameters/@value" A list of key/value pairs to inject more
36 * filters to the templating. 36 * filters to the templating, as "key:value;key2:value2"
37 */ 37 */
38 public class MetaDataService 38 public class MetaDataService
39 extends FLYSService 39 extends FLYSService
40 { 40 {
41 private static Logger log = Logger.getLogger(MetaDataService.class); 41 private static Logger log = Logger.getLogger(MetaDataService.class);
84 84
85 return doService( 85 return doService(
86 artifactId, userId, outs, parameters, globalContext); 86 artifactId, userId, outs, parameters, globalContext);
87 } 87 }
88 88
89
90 /**
91 * Split parameterstring in the form of key1:value1;key2:value2
92 * into hash (key1->value1, key2->value2).
93 * @param parameters "key1:value1;key2:value2"
94 * @param data Map into wich to put parameter hash and return.
95 * @return parameter data
96 */
89 protected static Map<String, Object> splitParameters( 97 protected static Map<String, Object> splitParameters(
90 String parameters, 98 String parameters,
91 Map<String, Object> data 99 Map<String, Object> data
92 ) { 100 ) {
93 if (parameters != null) { 101 if (parameters != null) {

http://dive4elements.wald.intevation.org