Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void init(Application application, Institution institution, AppUser appUser) {
- if (application != null) {
- this.application = application;
- this.fund = application.getFund();
- this.partner = application.getPartner();
- }
- this.institution = institution;
- this.appUser = appUser;
- this.report = findDefaultReport(predefinedReportType, fund);
- }
- public void init(LoanContract loanContract, Institution institution, AppUser appUser) {
- this.loanContract = loanContract;
- this.institution = institution;
- this.appUser = appUser;
- if (loanContract != null) {
- this.application = loanContract.getApplication();
- this.fund = loanContract.getFund();
- this.schedule = loanContract.getSchedule();
- if (loanContract.getPartner() != null) {
- this.partner = loanContract.getPartner();
- } else if (loanContract.getApplication().getPartner() != null) {
- this.partner = loanContract.getApplication().getPartner();
- }
- }
- this.report = findDefaultReport(predefinedReportType, fund);
- }
- public void init(LoanContract loanContract, Schedule schedule, Institution institution, AppUser appUser) {
- this.loanContract = loanContract;
- this.schedule = schedule;
- this.institution = institution;
- this.appUser = appUser;
- if (loanContract != null) {
- this.application = loanContract.getApplication();
- this.fund = loanContract.getFund();
- if (loanContract.getPartner() != null) {
- this.partner = loanContract.getPartner();
- } else if (loanContract.getApplication().getPartner() != null) {
- this.partner = loanContract.getApplication().getPartner();
- }
- }
- this.report = findDefaultReport(predefinedReportType, fund);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement