1 17 18 19 20 package org.apache.lenya.cms.task; 21 22 import java.util.Map ; 23 24 public class TaskWrapperParameters extends ParameterWrapper { 25 26 public static final String TASK_ID = "task-id"; 27 public static final String WEBAPP_URL = "webapp-url"; 28 29 protected static final String [] REQUIRED_KEYS = { TASK_ID, WEBAPP_URL }; 30 31 public static final String PREFIX = "wrapper"; 32 33 37 public TaskWrapperParameters(Map parameters) { 38 super(parameters); 39 } 40 41 45 public String [] getRequiredKeys() { 46 return REQUIRED_KEYS; 47 } 48 49 53 public String getTaskId() { 54 return get(TASK_ID); 55 } 56 57 61 public String getWebappUrl() { 62 return get(WEBAPP_URL); 63 } 64 65 69 public void setWebappUrl(String url) { 70 put(WEBAPP_URL, url); 71 } 72 73 77 public void setTaskId(String taskId) { 78 put(TASK_ID, taskId); 79 } 80 81 84 public String getPrefix() { 85 return PREFIX; 86 } 87 88 } 89 | Popular Tags |