View Javadoc
1   package org.kuali.ole.describe.keyvalue;
2   
3   import org.kuali.ole.util.Languages008;
4   import org.kuali.ole.util.Places008;
5   import org.kuali.rice.core.api.util.ConcreteKeyValue;
6   import org.kuali.rice.core.api.util.KeyValue;
7   import org.kuali.rice.krad.keyvalues.KeyValuesBase;
8   
9   import java.util.ArrayList;
10  import java.util.List;
11  
12  /**
13   * Created with IntelliJ IDEA.
14   * User: premkumarv
15   * Date: 9/12/13
16   * Time: 3:54 PM
17   * To change this template use File | Settings | File Templates.
18   */
19  public class Place008KeyValueFinder extends KeyValuesBase {
20  
21      @Override
22      public List<KeyValue> getKeyValues() {
23          List<KeyValue> options = new ArrayList<>();
24          return options;
25      }
26      public static List<String> retrieveControlField008Place(String placeVal) {
27          List<String> reqPlace  =  Places008.getInstance().getPlaceDescription(placeVal);
28          return reqPlace;
29      }
30     /* public static List<String> retrieveControlField008Language(String languageVal) {
31          List<String> reqlanguage  =  Languages008.getInstance().getLanguageDescription(languageVal);
32          return reqlanguage;
33      }*/
34  }