1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.vnd.businessobject.inquiry;
17
18 import java.util.List;
19 import java.util.Map;
20
21 import org.kuali.ole.sys.businessobject.inquiry.KfsInquirableImpl;
22 import org.kuali.ole.vnd.businessobject.DebarredVendorMatch;
23 import org.kuali.ole.vnd.businessobject.VendorAlias;
24 import org.kuali.rice.krad.bo.BusinessObject;
25
26 public class VendorExclusionInquirable extends KfsInquirableImpl {
27
28
29
30
31 @SuppressWarnings("unchecked")
32 @Override
33 public BusinessObject getBusinessObject(Map fieldValues) {
34 DebarredVendorMatch match = (DebarredVendorMatch)super.getBusinessObject(fieldValues);
35 List<VendorAlias> vendorAliases = match.getVendorDetail().getVendorAliases();
36 StringBuffer concatenatedAliases = new StringBuffer();
37 for(VendorAlias alias : vendorAliases) {
38 concatenatedAliases.append(alias.getVendorAliasName());
39 concatenatedAliases.append("/n");
40 }
41 match.setConcatenatedAliases(concatenatedAliases.toString());
42 return match;
43 }
44 }