update loanproducts resource class with support for create and update through post and put.

This commit is contained in:
Keith Woodlock
2012-05-09 00:12:03 +01:00
parent f7542e5a8e
commit 29a004f746
7 changed files with 191 additions and 109 deletions
@@ -95,13 +95,13 @@ public class CalculateLoanScheduleCommand {
this.commonLoanProperties.setPrincipal(principal);
}
public Boolean getFlexibleRepaymentSchedule() {
return this.commonLoanProperties.getFlexibleRepaymentSchedule();
}
public Boolean getInterestRebateAllowed() {
return this.commonLoanProperties.getInterestRebateAllowed();
}
// public Boolean getFlexibleRepaymentSchedule() {
// return this.commonLoanProperties.getFlexibleRepaymentSchedule();
// }
//
// public Boolean getInterestRebateAllowed() {
// return this.commonLoanProperties.getInterestRebateAllowed();
// }
public Integer getInterestRateFrequencyMethod() {
return commonLoanProperties.getInterestRateFrequencyMethod();
@@ -117,13 +117,13 @@ public class CommonLoanProperties {
this.principal = principal;
}
public Boolean getFlexibleRepaymentSchedule() {
return this.flexibleRepaymentSchedule;
}
// public Boolean getFlexibleRepaymentSchedule() {
// return this.flexibleRepaymentSchedule;
// }
public Boolean getInterestRebateAllowed() {
return this.interestRebateAllowed;
}
// public Boolean getInterestRebateAllowed() {
// return this.interestRebateAllowed;
// }
public Integer getInterestRateFrequencyMethod() {
return interestRateFrequencyMethod;
@@ -144,18 +144,18 @@ public class CreateLoanProductCommand implements LoanProductCommandData {
/* (non-Javadoc)
* @see org.mifosng.data.command.LoanProductCommandData#getFlexibleRepaymentSchedule()
*/
@Override
public Boolean getFlexibleRepaymentSchedule() {
return this.commonLoanProperties.getFlexibleRepaymentSchedule();
}
// @Override
// public Boolean getFlexibleRepaymentSchedule() {
// return this.commonLoanProperties.getFlexibleRepaymentSchedule();
// }
/* (non-Javadoc)
* @see org.mifosng.data.command.LoanProductCommandData#getInterestRebateAllowed()
*/
@Override
public Boolean getInterestRebateAllowed() {
return this.commonLoanProperties.getInterestRebateAllowed();
}
// @Override
// public Boolean getInterestRebateAllowed() {
// return this.commonLoanProperties.getInterestRebateAllowed();
// }
/* (non-Javadoc)
* @see org.mifosng.data.command.LoanProductCommandData#getInterestRateFrequencyMethod()
@@ -22,9 +22,9 @@ public interface LoanProductCommandData {
BigDecimal getPrincipal();
Boolean getFlexibleRepaymentSchedule();
// Boolean getFlexibleRepaymentSchedule();
Boolean getInterestRebateAllowed();
// Boolean getInterestRebateAllowed();
Integer getInterestRateFrequencyMethod();
@@ -187,13 +187,13 @@ public class SubmitLoanApplicationCommand {
this.commonLoanProperties.setPrincipal(principal);
}
public Boolean getFlexibleRepaymentSchedule() {
return this.commonLoanProperties.getFlexibleRepaymentSchedule();
}
public Boolean getInterestRebateAllowed() {
return this.commonLoanProperties.getInterestRebateAllowed();
}
// public Boolean getFlexibleRepaymentSchedule() {
// return this.commonLoanProperties.getFlexibleRepaymentSchedule();
// }
//
// public Boolean getInterestRebateAllowed() {
// return this.commonLoanProperties.getInterestRebateAllowed();
// }
public Integer getInterestRateFrequencyMethod() {
return commonLoanProperties.getInterestRateFrequencyMethod();
@@ -106,13 +106,13 @@ public class UpdateLoanProductCommand implements LoanProductCommandData {
this.commonLoanProperties.setPrincipal(principal);
}
public Boolean getFlexibleRepaymentSchedule() {
return this.commonLoanProperties.getFlexibleRepaymentSchedule();
}
public Boolean getInterestRebateAllowed() {
return this.commonLoanProperties.getInterestRebateAllowed();
}
// public Boolean getFlexibleRepaymentSchedule() {
// return this.commonLoanProperties.getFlexibleRepaymentSchedule();
// }
//
// public Boolean getInterestRebateAllowed() {
// return this.commonLoanProperties.getInterestRebateAllowed();
// }
public Integer getInterestRateFrequencyMethod() {
return commonLoanProperties.getInterestRateFrequencyMethod();