1 package org.kuali.ole.describe.bo;
2
3 import org.kuali.rice.core.api.util.ConcreteKeyValue;
4 import org.kuali.rice.core.api.util.KeyValue;
5 import org.kuali.rice.krad.keyvalues.KeyValuesBase;
6
7 import java.util.ArrayList;
8 import java.util.List;
9
10 /**
11 * DublinElementValuesFinder used to render element values for Dublin Editor
12 */
13 public class WorkDublinElementValuesFinder
14 extends KeyValuesBase {
15 /**
16 * This method returns the List of ConcreteKeyValue,,
17 * ConcreteKeyValue has two argument MethodCode and
18 * MethodName.
19 *
20 * @return List<KeyValue>
21 */
22 @Override
23 public List<KeyValue> getKeyValues() {
24 List<KeyValue> options = new ArrayList<KeyValue>();
25 options.add(new ConcreteKeyValue("default", "Select an Element"));
26
27 // Dublin
28 // options.add(new ConcreteKeyValue("contributor", "Contributor"));
29 // options.add(new ConcreteKeyValue("coverage", "Coverage"));
30 // options.add(new ConcreteKeyValue("creator", "Creator"));
31 // options.add(new ConcreteKeyValue("date", "Date"));
32 // options.add(new ConcreteKeyValue("description", "Description"));
33 // options.add(new ConcreteKeyValue("format", "Format"));
34 // options.add(new ConcreteKeyValue("identifier", "identifier"));
35 // options.add(new ConcreteKeyValue("language", "Language"));
36 // options.add(new ConcreteKeyValue("publisher", "Publisher"));
37 // options.add(new ConcreteKeyValue("relation", "Relation"));
38 // options.add(new ConcreteKeyValue("rights", "Rights"));
39 // options.add(new ConcreteKeyValue("source", "Source"));
40 // options.add(new ConcreteKeyValue("subject", "Subject"));
41 // options.add(new ConcreteKeyValue("title", "Title"));
42 // options.add(new ConcreteKeyValue("type", "Type"));
43
44 // Dublin Unq
45 options.add(new ConcreteKeyValue("dc:contributor", "Contributor"));
46 options.add(new ConcreteKeyValue("dc:coverage", "Coverage"));
47 options.add(new ConcreteKeyValue("dc:creator", "Creator"));
48 options.add(new ConcreteKeyValue("dc:date", "Date"));
49 options.add(new ConcreteKeyValue("dc:description", "Description"));
50 options.add(new ConcreteKeyValue("dc:format", "Format"));
51 options.add(new ConcreteKeyValue("dc:identifier", "identifier"));
52 options.add(new ConcreteKeyValue("dc:language", "Language"));
53 options.add(new ConcreteKeyValue("dc:publisher", "Publisher"));
54 options.add(new ConcreteKeyValue("dc:relation", "Relation"));
55 options.add(new ConcreteKeyValue("dc:rights", "Rights"));
56 options.add(new ConcreteKeyValue("dc:source", "Source"));
57 options.add(new ConcreteKeyValue("dc:subject", "Subject"));
58 options.add(new ConcreteKeyValue("dc:title", "Title"));
59 options.add(new ConcreteKeyValue("dc:type", "Type"));
60
61 //Dublin values
62 return options;
63 }
64 }