Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. public void init(Application application, Institution institution, AppUser appUser) {
  2. if (application != null) {
  3. this.application = application;
  4. this.fund = application.getFund();
  5. this.partner = application.getPartner();
  6. }
  7. this.institution = institution;
  8. this.appUser = appUser;
  9. this.report = findDefaultReport(predefinedReportType, fund);
  10. }
  11.  
  12. public void init(LoanContract loanContract, Institution institution, AppUser appUser) {
  13. this.loanContract = loanContract;
  14. this.institution = institution;
  15. this.appUser = appUser;
  16. if (loanContract != null) {
  17. this.application = loanContract.getApplication();
  18. this.fund = loanContract.getFund();
  19. this.schedule = loanContract.getSchedule();
  20. if (loanContract.getPartner() != null) {
  21. this.partner = loanContract.getPartner();
  22. } else if (loanContract.getApplication().getPartner() != null) {
  23. this.partner = loanContract.getApplication().getPartner();
  24. }
  25. }
  26. this.report = findDefaultReport(predefinedReportType, fund);
  27. }
  28.  
  29. public void init(LoanContract loanContract, Schedule schedule, Institution institution, AppUser appUser) {
  30. this.loanContract = loanContract;
  31. this.schedule = schedule;
  32. this.institution = institution;
  33. this.appUser = appUser;
  34. if (loanContract != null) {
  35. this.application = loanContract.getApplication();
  36. this.fund = loanContract.getFund();
  37. if (loanContract.getPartner() != null) {
  38. this.partner = loanContract.getPartner();
  39. } else if (loanContract.getApplication().getPartner() != null) {
  40. this.partner = loanContract.getApplication().getPartner();
  41. }
  42. }
  43. this.report = findDefaultReport(predefinedReportType, fund);
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement