/** * This method returns all active note types * * @see org.kuali.rice.krad.keyvalues.KeyValuesFinder#getKeyValues() */ @Override public List<KeyValue> getKeyValues() { List<KeyValue> keyValues = new ArrayList<KeyValue>(); keyValues.add(new ConcreteKeyValue("", "select")); List<CoiNoteType> coiNoteTypes = (List<CoiNoteType>) getBusinessObjectService().findAllOrderBy(CoiNoteType.class, "SORT_ID", true); if (CollectionUtils.isNotEmpty(coiNoteTypes)) { for (CoiNoteType coiNoteType : coiNoteTypes) { if (coiNoteType.isActive()) { keyValues.add( new ConcreteKeyValue(coiNoteType.getNoteTypeCode(), coiNoteType.getDescription())); } } } return keyValues; }