View Javadoc
1   package org.kuali.ole.ingest;
2   
3   import java.util.HashMap;
4   import java.util.Map;
5   
6   /**
7    * OLEAccountInfoExtractor adds the fund Code OLE as a Map and as well as return the function code based on the given vendorReferenceNumber
8    */
9   public class OLEAccountInfoExtractor {
10      private Map<String, HashMap<String, String>> fundCodesForOLE;
11  
12      /**
13       *  Default constructor of OLEAccountInfoExtractor.
14       *  adds the fund Code OLE as a MAP.
15       */
16      public OLEAccountInfoExtractor() {
17          fundCodesForOLE = new HashMap();
18          HashMap<String, String> map1 = new HashMap<String, String>();
19          map1.put("2947430", "7112");
20          fundCodesForOLE.put("43", map1);
21          HashMap<String, String> map2 = new HashMap<String, String>();
22          map2.put("2947485", "7112");
23          fundCodesForOLE.put("13", map2);
24          HashMap<String, String> map3 = new HashMap<String, String>();
25          map3.put("2947483", "7112");
26          fundCodesForOLE.put("74", map3);
27          HashMap<String, String> map4 = new HashMap<String, String>();
28          map4.put("2947499", "7112");
29          fundCodesForOLE.put("98", map4);
30          HashMap<String, String> map5 = new HashMap<String, String>();
31          map5.put("2947494", "7112");
32          fundCodesForOLE.put("65", map5);
33          HashMap<String, String> map6 = new HashMap<String, String>();
34          map6.put("2947486", "7112");
35          fundCodesForOLE.put("19", map6);
36          HashMap<String, String> map7 = new HashMap<String, String>();
37          map7.put("2947493", "7112");
38          fundCodesForOLE.put("64", map7);
39          HashMap<String, String> map8 = new HashMap<String, String>();
40          map8.put("2947496", "7112");
41          fundCodesForOLE.put("93", map8);
42          HashMap<String, String> map9 = new HashMap<String, String>();
43          map9.put("2947497", "7112");
44          fundCodesForOLE.put("94", map9);
45          HashMap<String, String> map10 = new HashMap<String, String>();
46          map10.put("2947488", "7112");
47          fundCodesForOLE.put("35", map10);
48          HashMap<String, String> map11 = new HashMap<String, String>();
49          map11.put("2947498", "7112");
50          fundCodesForOLE.put("95", map11);
51          HashMap<String, String> map12 = new HashMap<String, String>();
52          map12.put("2947487", "7112");
53          fundCodesForOLE.put("21", map12);
54          HashMap<String, String> map13 = new HashMap<String, String>();
55          map13.put("2947489", "7112");
56          fundCodesForOLE.put("37", map13);
57          HashMap<String, String> map14 = new HashMap<String, String>();
58          map14.put("2947482", "7112");
59          fundCodesForOLE.put("27", map14);
60          HashMap<String, String> map15 = new HashMap<String, String>();
61          map15.put("2947490", "7112");
62          fundCodesForOLE.put("50", map15);
63          HashMap<String, String> map16 = new HashMap<String, String>();
64          map16.put("2947492", "7112");
65          fundCodesForOLE.put("53", map16);
66          HashMap<String, String> map17 = new HashMap<String, String>();
67          map17.put("2947491", "7112");
68          fundCodesForOLE.put("51", map17);
69          HashMap<String, String> map18 = new HashMap<String, String>();
70          map18.put("2947495", "7112");
71          fundCodesForOLE.put("86", map18);
72      }
73  
74      /**
75       *  This method returns functionCode for the corresponding vendorReferenceNumber
76       * @param vendorReferenceNumber
77       * @return  fundCode.
78       */
79      public HashMap<String, String> buildAccountInfoMap(String vendorReferenceNumber) {
80          return fundCodesForOLE.get(vendorReferenceNumber);
81      }
82  }