resultCell.setValue(queryResultCell.toString());
private void doIdTranslation(SearchResultInfo searchResult) { for (SearchResultRowInfo searchResultRow : searchResult.getRows()) { for (SearchResultCellInfo searchResultCell : searchResultRow.getCells()) { String value = searchResultCell.getValue(); if (value != null && value.startsWith("kuali.atp")) { String newValue = idTranslatorFilter.getTranslationForAtp(value, ContextUtils.getContextInfo()); if (newValue != null) { searchResultCell.setValue(newValue); } } } } }
variationCell.setValue(""); if (variations != null) { for (Iterator<String> variationIter = variations.iterator(); variationIter.hasNext();) { variationCell.setValue(variationCell.getValue() + variation); orgCell.setValue(null); campusLocationCell.setValue(null); resultComponentCell.setValue(null); for (SearchResultCellInfo cell : cells) { if (cell.getValue() == null) { cell.setValue(resultComponentName); } else { cell.setValue(cell.getValue() + "<br/>" + resultComponentName); for (SearchResultCellInfo cell : cells) { if (cell.getValue() == null) { cell.setValue(campusCode); } else { cell.setValue(cell.getValue() + "<br/>" + campusCode); for (SearchResultCellInfo cell : cells) { if (cell.getValue() == null) { cell.setValue(orgName); } else { cell.setValue(cell.getValue() + "<br/>" + orgName);
cell.setValue(atpName);
private SearchResultRowInfo mapResultRow( String subSearchKey, SearchResultRowInfo row, CrossSearchTypeInfo crossSearchType) { SearchResultRowInfo resultRow = new SearchResultRowInfo(); for(JoinResultMappingInfo resultMapping: crossSearchType.getJoinResultMappings()){ if(subSearchKey.equals(resultMapping.getSubSearchKey())){ for(SearchResultCellInfo cell: row.getCells()){ if(resultMapping.getSubSearchResultParam().equals(cell.getKey())){ SearchResultCellInfo mappedCell = new SearchResultCellInfo(); mappedCell.setKey(resultMapping.getResultParam()); mappedCell.setValue(cell.getValue()); resultRow.getCells().add(mappedCell); break;//FIXME breaks are bad... but there is no map in the cells } } } } return resultRow; } /**
/** * Maps results from multiple searches into a single result row * * @param permutation * @param crossSearchType * @return a mapped SearchResultRowInfo */ private SearchResultRowInfo mapResultRow( Map<String, SearchResultRowInfo> permutation, CrossSearchTypeInfo crossSearchType) { //FIXME this is pretty inefficient to loop through everything... a map structure for the cells might be better SearchResultRowInfo resultRow = new SearchResultRowInfo(); for(JoinResultMappingInfo resultMapping: crossSearchType.getJoinResultMappings()){ for(SearchResultCellInfo cell: permutation.get(resultMapping.getSubSearchKey()).getCells()){ if(resultMapping.getSubSearchResultParam().equals(cell.getKey())){ SearchResultCellInfo mappedCell = new SearchResultCellInfo(); mappedCell.setKey(resultMapping.getResultParam()); mappedCell.setValue(cell.getValue()); resultRow.getCells().add(mappedCell); break;//FIXME breaks are bad... but there is no map in the cells } } } return resultRow; }
cell.setValue(person.getEntityId()); resultRow.getCells().add(cell); cell.setValue(person.getPrincipalId()); resultRow.getCells().add(cell); cell.setValue(person.getPrincipalName()); resultRow.getCells().add(cell); cell.setValue(person.getName()); resultRow.getCells().add(cell); cell.setValue(person.getName() + " (" + person.getPrincipalName() + ")"); resultRow.getCells().add(cell);
proposalNameCell.setValue(cluIdToCodeMap.get(cluId)+" ("+proposalNameCell.getValue()+")");