SHARE
TWEET

Untitled

a guest Jun 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package filler;
  2.  
  3. public class SponsorForm implements Form {
  4.    
  5.     private String[] masterPDF = { "Sponsorship Template - Spouse or Common Law Partner.pdf",
  6.                                     "Sponsorship Template - Parents and Grandparents.pdf",
  7.                                     "Sponsorship Template - Dependant Child.pdf"};
  8.    
  9.     private String xmlData = "IMM1294edata.xml";
  10.    
  11.     private String type = "db2";
  12.  
  13.     private CloudGeneralFiller filler;
  14.    
  15.     public SponsorForm() {
  16.         filler = new CloudGeneralFiller();
  17.     }
  18.    
  19.     @Override
  20.     public void sortCase(String case_type, String eid) throws Exception {
  21.         switch(case_type) {
  22.         case "0":
  23.             String[] spousalMaps = {"imm5406e_Mapping-MA#XFA", "eimm5669e_Mapping-MA#XFA", "imm0008e_Mapping-D1#XFA", "imm1344e_Mapping#XFA",
  24.                     "imm5532e_Mapping#XFA"};
  25.             filler.CloudFill(spousalMaps, xmlData, masterPDF[0], type, eid);
  26.             break;
  27.         case "1":
  28.             String[] parentMaps = {"imm5406e_Mapping-MA#XFA", "eimm5669e_Mapping-MA#XFA", "imm0008e_Mapping-D1#XFA", "imm1344e_Mapping#XFA",
  29.                     "imm5532e_Mapping#XFA", "imm5768e_Mapping#XFA"};
  30.             filler.CloudFill(parentMaps, xmlData, masterPDF[1], type, eid);
  31.             break;
  32.         case "2":
  33.             String[] childMaps = {"imm5406e_Mapping-MA#XFA", "eimm5669e_Mapping-MA#XFA", "imm0008e_Mapping-D1#XFA", "imm1344e_Mapping#XFA",
  34.                     "imm5532e_Mapping#XFA", "imm5481e_Mapping#ACRO"};
  35.             filler.CloudFill(childMaps, xmlData, masterPDF[2], type, eid);
  36.             break;
  37.         default:
  38.             break;
  39.         }
  40.     }
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top