1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.document.keyvalue;
17
18 import org.kuali.rice.core.api.CoreApiServiceLocator;
19 import org.kuali.rice.core.api.util.ConcreteKeyValue;
20 import org.kuali.rice.core.api.util.KeyValue;
21 import org.kuali.rice.krad.uif.util.UrlInfo;
22 import org.kuali.rice.krad.uif.util.UifKeyValueLocation;
23
24 import java.util.ArrayList;
25 import java.util.List;
26
27
28
29
30 public class SimpleTestKeyValueLocations extends SimpleTestKeyValues {
31
32
33
34
35
36
37
38 @Override
39 public List<KeyValue> getKeyValues() {
40 List<KeyValue> keyValues = new ArrayList<KeyValue>();
41 if (this.isBlankOption()) {
42 keyValues.add(new ConcreteKeyValue("", ""));
43 }
44
45 String baseUrl = CoreApiServiceLocator.getKualiConfigurationService().getPropertyValueAsString("krad.url");
46
47 keyValues.add(new UifKeyValueLocation("Google", "Google", new UrlInfo("http://www.google.com")));
48 keyValues.add(new UifKeyValueLocation("Kuali", "Kuali", new UrlInfo("http://www.kuali.org")));
49 keyValues.add(new UifKeyValueLocation("Jira", "Jira", new UrlInfo("http://jira.kuali.org")));
50 keyValues.add(new UifKeyValueLocation("Config", "Config Test View",
51 new UrlInfo(baseUrl,"/uicomponents","ConfigurationTestView","start")));
52
53 return keyValues;
54 }
55 }