View Javadoc
1   package org.kuali.ole.select.keyvalue;
2   
3   import org.apache.commons.lang.StringUtils;
4   import org.kuali.ole.select.bo.OLEEResourceChangeDashBoard;
5   import org.kuali.ole.select.form.OLEEResourceChangeDashboardForm;
6   import org.kuali.rice.core.api.util.ConcreteKeyValue;
7   import org.kuali.rice.core.api.util.KeyValue;
8   import org.kuali.rice.krad.uif.control.UifKeyValuesFinderBase;
9   import org.kuali.rice.krad.uif.view.ViewModel;
10  
11  import java.util.ArrayList;
12  import java.util.List;
13  
14  /**
15   * Created by srirams on 29/9/14.
16   */
17  public class OLETitleKeyValueFinder extends UifKeyValuesFinderBase {
18  
19      @Override
20      public List getKeyValues(ViewModel viewModel) {
21          List<KeyValue> keyValues = new ArrayList<KeyValue>();
22          /*OLEEResourceChangeDashboardForm eResourceChangeDashboardForm = (OLEEResourceChangeDashboardForm) viewModel;
23          List<OLEEResourceChangeDashBoard> OLEEResourceChangeDashBoards = eResourceChangeDashboardForm.getOleeResourceChangeDashBoardList();
24          for (OLEEResourceChangeDashBoard changeDashBoard : OLEEResourceChangeDashBoards) {
25              String title = changeDashBoard.getTitle();
26              if (StringUtils.isNotEmpty(title))
27                  keyValues.add(new ConcreteKeyValue(title, title));
28          }*/
29          return keyValues;
30      }
31  }