removing warnings on portfolio packages
This commit is contained in:
+4
-5
@@ -17,7 +17,6 @@ import org.mifosplatform.accounting.glaccount.domain.GLAccountRepositoryWrapper;
|
|||||||
import org.mifosplatform.accounting.glaccount.domain.GLAccountType;
|
import org.mifosplatform.accounting.glaccount.domain.GLAccountType;
|
||||||
import org.mifosplatform.accounting.producttoaccountmapping.domain.PortfolioProductType;
|
import org.mifosplatform.accounting.producttoaccountmapping.domain.PortfolioProductType;
|
||||||
import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAccountMappingRepository;
|
import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAccountMappingRepository;
|
||||||
import org.mifosplatform.infrastructure.codes.domain.CodeValueRepositoryWrapper;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
||||||
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
||||||
import org.mifosplatform.portfolio.charge.domain.ChargeRepositoryWrapper;
|
import org.mifosplatform.portfolio.charge.domain.ChargeRepositoryWrapper;
|
||||||
@@ -33,10 +32,10 @@ public class LoanProductToGLAccountMappingHelper extends ProductToGLAccountMappi
|
|||||||
@Autowired
|
@Autowired
|
||||||
public LoanProductToGLAccountMappingHelper(final GLAccountRepository glAccountRepository,
|
public LoanProductToGLAccountMappingHelper(final GLAccountRepository glAccountRepository,
|
||||||
final ProductToGLAccountMappingRepository glAccountMappingRepository, final FromJsonHelper fromApiJsonHelper,
|
final ProductToGLAccountMappingRepository glAccountMappingRepository, final FromJsonHelper fromApiJsonHelper,
|
||||||
final CodeValueRepositoryWrapper codeValueRepositoryWrapper, final ChargeRepositoryWrapper chargeRepositoryWrapper,
|
final ChargeRepositoryWrapper chargeRepositoryWrapper, final GLAccountRepositoryWrapper accountRepositoryWrapper,
|
||||||
final GLAccountRepositoryWrapper accountRepositoryWrapper, final PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper) {
|
final PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper) {
|
||||||
super(glAccountRepository, glAccountMappingRepository, fromApiJsonHelper, codeValueRepositoryWrapper, chargeRepositoryWrapper,
|
super(glAccountRepository, glAccountMappingRepository, fromApiJsonHelper, chargeRepositoryWrapper, accountRepositoryWrapper,
|
||||||
accountRepositoryWrapper, paymentTypeRepositoryWrapper);
|
paymentTypeRepositoryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Set of abstractions for saving Loan Products to GL Account Mappings ***/
|
/*** Set of abstractions for saving Loan Products to GL Account Mappings ***/
|
||||||
|
|||||||
+2
-5
@@ -23,7 +23,6 @@ import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAc
|
|||||||
import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAccountMappingRepository;
|
import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAccountMappingRepository;
|
||||||
import org.mifosplatform.accounting.producttoaccountmapping.exception.ProductToGLAccountMappingInvalidException;
|
import org.mifosplatform.accounting.producttoaccountmapping.exception.ProductToGLAccountMappingInvalidException;
|
||||||
import org.mifosplatform.accounting.producttoaccountmapping.exception.ProductToGLAccountMappingNotFoundException;
|
import org.mifosplatform.accounting.producttoaccountmapping.exception.ProductToGLAccountMappingNotFoundException;
|
||||||
import org.mifosplatform.infrastructure.codes.domain.CodeValueRepositoryWrapper;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
||||||
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
||||||
import org.mifosplatform.portfolio.charge.domain.Charge;
|
import org.mifosplatform.portfolio.charge.domain.Charge;
|
||||||
@@ -44,19 +43,17 @@ public class ProductToGLAccountMappingHelper {
|
|||||||
protected final GLAccountRepositoryWrapper accountRepositoryWrapper;
|
protected final GLAccountRepositoryWrapper accountRepositoryWrapper;
|
||||||
protected final ProductToGLAccountMappingRepository accountMappingRepository;
|
protected final ProductToGLAccountMappingRepository accountMappingRepository;
|
||||||
protected final FromJsonHelper fromApiJsonHelper;
|
protected final FromJsonHelper fromApiJsonHelper;
|
||||||
private final CodeValueRepositoryWrapper codeValueRepositoryWrapper;
|
|
||||||
private final ChargeRepositoryWrapper chargeRepositoryWrapper;
|
private final ChargeRepositoryWrapper chargeRepositoryWrapper;
|
||||||
private final PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper;
|
private final PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public ProductToGLAccountMappingHelper(final GLAccountRepository glAccountRepository,
|
public ProductToGLAccountMappingHelper(final GLAccountRepository glAccountRepository,
|
||||||
final ProductToGLAccountMappingRepository glAccountMappingRepository, final FromJsonHelper fromApiJsonHelper,
|
final ProductToGLAccountMappingRepository glAccountMappingRepository, final FromJsonHelper fromApiJsonHelper,
|
||||||
final CodeValueRepositoryWrapper codeValueRepositoryWrapper, final ChargeRepositoryWrapper chargeRepositoryWrapper,
|
final ChargeRepositoryWrapper chargeRepositoryWrapper, final GLAccountRepositoryWrapper accountRepositoryWrapper,
|
||||||
final GLAccountRepositoryWrapper accountRepositoryWrapper, PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper) {
|
PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper) {
|
||||||
this.accountRepository = glAccountRepository;
|
this.accountRepository = glAccountRepository;
|
||||||
this.accountMappingRepository = glAccountMappingRepository;
|
this.accountMappingRepository = glAccountMappingRepository;
|
||||||
this.fromApiJsonHelper = fromApiJsonHelper;
|
this.fromApiJsonHelper = fromApiJsonHelper;
|
||||||
this.codeValueRepositoryWrapper = codeValueRepositoryWrapper;
|
|
||||||
this.chargeRepositoryWrapper = chargeRepositoryWrapper;
|
this.chargeRepositoryWrapper = chargeRepositoryWrapper;
|
||||||
this.accountRepositoryWrapper = accountRepositoryWrapper;
|
this.accountRepositoryWrapper = accountRepositoryWrapper;
|
||||||
this.paymentTypeRepositoryWrapper = paymentTypeRepositoryWrapper;
|
this.paymentTypeRepositoryWrapper = paymentTypeRepositoryWrapper;
|
||||||
|
|||||||
+4
-5
@@ -16,7 +16,6 @@ import org.mifosplatform.accounting.glaccount.domain.GLAccountRepositoryWrapper;
|
|||||||
import org.mifosplatform.accounting.glaccount.domain.GLAccountType;
|
import org.mifosplatform.accounting.glaccount.domain.GLAccountType;
|
||||||
import org.mifosplatform.accounting.producttoaccountmapping.domain.PortfolioProductType;
|
import org.mifosplatform.accounting.producttoaccountmapping.domain.PortfolioProductType;
|
||||||
import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAccountMappingRepository;
|
import org.mifosplatform.accounting.producttoaccountmapping.domain.ProductToGLAccountMappingRepository;
|
||||||
import org.mifosplatform.infrastructure.codes.domain.CodeValueRepositoryWrapper;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
||||||
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
||||||
import org.mifosplatform.portfolio.charge.domain.ChargeRepositoryWrapper;
|
import org.mifosplatform.portfolio.charge.domain.ChargeRepositoryWrapper;
|
||||||
@@ -32,10 +31,10 @@ public class SavingsProductToGLAccountMappingHelper extends ProductToGLAccountMa
|
|||||||
@Autowired
|
@Autowired
|
||||||
public SavingsProductToGLAccountMappingHelper(final GLAccountRepository glAccountRepository,
|
public SavingsProductToGLAccountMappingHelper(final GLAccountRepository glAccountRepository,
|
||||||
final ProductToGLAccountMappingRepository glAccountMappingRepository, final FromJsonHelper fromApiJsonHelper,
|
final ProductToGLAccountMappingRepository glAccountMappingRepository, final FromJsonHelper fromApiJsonHelper,
|
||||||
final CodeValueRepositoryWrapper codeValueRepositoryWrapper, final ChargeRepositoryWrapper chargeRepositoryWrapper,
|
final ChargeRepositoryWrapper chargeRepositoryWrapper, final GLAccountRepositoryWrapper accountRepositoryWrapper,
|
||||||
final GLAccountRepositoryWrapper accountRepositoryWrapper, final PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper) {
|
final PaymentTypeRepositoryWrapper paymentTypeRepositoryWrapper) {
|
||||||
super(glAccountRepository, glAccountMappingRepository, fromApiJsonHelper, codeValueRepositoryWrapper, chargeRepositoryWrapper,
|
super(glAccountRepository, glAccountMappingRepository, fromApiJsonHelper, chargeRepositoryWrapper, accountRepositoryWrapper,
|
||||||
accountRepositoryWrapper, paymentTypeRepositoryWrapper);
|
paymentTypeRepositoryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Set of abstractions for saving Saving Products to GL Account Mappings ***/
|
/*** Set of abstractions for saving Saving Products to GL Account Mappings ***/
|
||||||
|
|||||||
+8
-7
@@ -5,12 +5,12 @@
|
|||||||
*/
|
*/
|
||||||
package org.mifosplatform.organisation.workingdays.data;
|
package org.mifosplatform.organisation.workingdays.data;
|
||||||
|
|
||||||
|
|
||||||
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
public class WorkingDaysData {
|
public class WorkingDaysData {
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private final Long id;
|
private final Long id;
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@@ -19,10 +19,10 @@ public class WorkingDaysData {
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private final EnumOptionData repaymentRescheduleType;
|
private final EnumOptionData repaymentRescheduleType;
|
||||||
|
|
||||||
//template date
|
// template date
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final Collection<EnumOptionData> repaymentRescheduleOptions;
|
private final Collection<EnumOptionData> repaymentRescheduleOptions;
|
||||||
|
|
||||||
|
|
||||||
public WorkingDaysData(Long id, String recurrence, EnumOptionData repaymentRescheduleType) {
|
public WorkingDaysData(Long id, String recurrence, EnumOptionData repaymentRescheduleType) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.recurrence = recurrence;
|
this.recurrence = recurrence;
|
||||||
@@ -30,10 +30,11 @@ public class WorkingDaysData {
|
|||||||
this.repaymentRescheduleOptions = null;
|
this.repaymentRescheduleOptions = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public WorkingDaysData(Long id, String recurrence, EnumOptionData repaymentRescheduleType, Collection<EnumOptionData> repaymentRescheduleOptions) {
|
public WorkingDaysData(Long id, String recurrence, EnumOptionData repaymentRescheduleType,
|
||||||
this.id = null;
|
Collection<EnumOptionData> repaymentRescheduleOptions) {
|
||||||
this.recurrence = null;
|
this.id = id;
|
||||||
this.repaymentRescheduleType = null;
|
this.recurrence = recurrence;
|
||||||
|
this.repaymentRescheduleType = repaymentRescheduleType;
|
||||||
this.repaymentRescheduleOptions = repaymentRescheduleOptions;
|
this.repaymentRescheduleOptions = repaymentRescheduleOptions;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-15
@@ -33,8 +33,7 @@ public class WorkingDaysWritePlatformServiceJpaRepositoryImpl implements Working
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public WorkingDaysWritePlatformServiceJpaRepositoryImpl(final WorkingDaysRepositoryWrapper daysRepositoryWrapper,
|
public WorkingDaysWritePlatformServiceJpaRepositoryImpl(final WorkingDaysRepositoryWrapper daysRepositoryWrapper,
|
||||||
final ConfigurationDomainService configurationDomainService,
|
final ConfigurationDomainService configurationDomainService, final WorkingDayValidator fromApiJsonDeserializer) {
|
||||||
final WorkingDayValidator fromApiJsonDeserializer) {
|
|
||||||
this.daysRepositoryWrapper = daysRepositoryWrapper;
|
this.daysRepositoryWrapper = daysRepositoryWrapper;
|
||||||
this.configurationDomainService = configurationDomainService;
|
this.configurationDomainService = configurationDomainService;
|
||||||
this.fromApiJsonDeserializer = fromApiJsonDeserializer;
|
this.fromApiJsonDeserializer = fromApiJsonDeserializer;
|
||||||
@@ -56,25 +55,25 @@ public class WorkingDaysWritePlatformServiceJpaRepositoryImpl implements Working
|
|||||||
public CommandProcessingResult updateWorkingDays(JsonCommand command) {
|
public CommandProcessingResult updateWorkingDays(JsonCommand command) {
|
||||||
String recurrence = "";
|
String recurrence = "";
|
||||||
RRule rrule = null;
|
RRule rrule = null;
|
||||||
try{
|
try {
|
||||||
this.fromApiJsonDeserializer.validateForUpdate(command.json());
|
this.fromApiJsonDeserializer.validateForUpdate(command.json());
|
||||||
final WorkingDays workingDays = this.daysRepositoryWrapper.findOne();
|
final WorkingDays workingDays = this.daysRepositoryWrapper.findOne();
|
||||||
|
|
||||||
recurrence = command.stringValueOfParameterNamed(WorkingDaysApiConstants.recurrence);
|
recurrence = command.stringValueOfParameterNamed(WorkingDaysApiConstants.recurrence);
|
||||||
rrule = new RRule(recurrence);
|
rrule = new RRule(recurrence);
|
||||||
rrule.validate();
|
rrule.validate();
|
||||||
|
|
||||||
Map<String, Object> changes = workingDays.update(command);
|
Map<String, Object> changes = workingDays.update(command);
|
||||||
this.daysRepositoryWrapper.saveAndFlush(workingDays);
|
this.daysRepositoryWrapper.saveAndFlush(workingDays);
|
||||||
return new CommandProcessingResultBuilder().withCommandId(command.commandId()).withEntityId(workingDays.getId()).build();
|
return new CommandProcessingResultBuilder().withCommandId(command.commandId()).withEntityId(workingDays.getId()).with(changes)
|
||||||
}catch (final ValidationException e) {
|
.build();
|
||||||
|
} catch (final ValidationException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.invalid.recurring.rule", "The Recurring Rule value: " + recurrence
|
throw new PlatformDataIntegrityException("error.msg.invalid.recurring.rule", "The Recurring Rule value: " + recurrence
|
||||||
+ " is not valid.", "recurrence", recurrence);
|
+ " is not valid.", "recurrence", recurrence);
|
||||||
} catch (final IllegalArgumentException|ParseException e) {
|
} catch (final IllegalArgumentException | ParseException e) {
|
||||||
throw new PlatformDataIntegrityException("error.msg.recurring.rule.parsing.error",
|
throw new PlatformDataIntegrityException("error.msg.recurring.rule.parsing.error",
|
||||||
"Error in passing the Recurring Rule value: " + recurrence, "recurrence", e.getMessage());
|
"Error in passing the Recurring Rule value: " + recurrence, "recurrence", e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-5
@@ -572,8 +572,8 @@ public class LoanAccountDomainServiceJpa implements LoanAccountDomainService {
|
|||||||
checkClientOrGroupActive(loan);
|
checkClientOrGroupActive(loan);
|
||||||
this.businessEventNotifierService.notifyBusinessEventToBeExecuted(BUSINESS_EVENTS.LOAN_REFUND,
|
this.businessEventNotifierService.notifyBusinessEventToBeExecuted(BUSINESS_EVENTS.LOAN_REFUND,
|
||||||
constructEntityMap(BUSINESS_ENTITY.LOAN, loan));
|
constructEntityMap(BUSINESS_ENTITY.LOAN, loan));
|
||||||
final List<Long> existingTransactionIds = new ArrayList<Long>();
|
final List<Long> existingTransactionIds = new ArrayList<>();
|
||||||
final List<Long> existingReversedTransactionIds = new ArrayList<Long>();
|
final List<Long> existingReversedTransactionIds = new ArrayList<>();
|
||||||
AppUser currentUser = getAppUserIfPresent();
|
AppUser currentUser = getAppUserIfPresent();
|
||||||
|
|
||||||
final Money refundAmount = Money.of(loan.getCurrency(), transactionAmount);
|
final Money refundAmount = Money.of(loan.getCurrency(), transactionAmount);
|
||||||
@@ -585,9 +585,8 @@ public class LoanAccountDomainServiceJpa implements LoanAccountDomainService {
|
|||||||
final WorkingDays workingDays = this.workingDaysRepository.findOne();
|
final WorkingDays workingDays = this.workingDaysRepository.findOne();
|
||||||
final boolean allowTransactionsOnNonWorkingDay = this.configurationDomainService.allowTransactionsOnNonWorkingDayEnabled();
|
final boolean allowTransactionsOnNonWorkingDay = this.configurationDomainService.allowTransactionsOnNonWorkingDayEnabled();
|
||||||
|
|
||||||
final ChangedTransactionDetail changedTransactionDetail = loan.makeRefundForActiveLoan(newRefundTransaction,
|
loan.makeRefundForActiveLoan(newRefundTransaction, defaultLoanLifecycleStateMachine(), existingTransactionIds,
|
||||||
defaultLoanLifecycleStateMachine(), existingTransactionIds, existingReversedTransactionIds, allowTransactionsOnHoliday,
|
existingReversedTransactionIds, allowTransactionsOnHoliday, holidays, workingDays, allowTransactionsOnNonWorkingDay);
|
||||||
holidays, workingDays, allowTransactionsOnNonWorkingDay);
|
|
||||||
|
|
||||||
this.loanTransactionRepository.save(newRefundTransaction);
|
this.loanTransactionRepository.save(newRefundTransaction);
|
||||||
this.loanRepository.save(loan);
|
this.loanRepository.save(loan);
|
||||||
|
|||||||
+2
-1
@@ -143,7 +143,8 @@ public class EarlyPaymentLoanRepaymentScheduleTransactionProcessor extends Abstr
|
|||||||
final LoanTransaction loanTransaction, final Money transactionAmountUnprocessed) {
|
final LoanTransaction loanTransaction, final Money transactionAmountUnprocessed) {
|
||||||
|
|
||||||
final LocalDate transactionDate = loanTransaction.getTransactionDate();
|
final LocalDate transactionDate = loanTransaction.getTransactionDate();
|
||||||
final MonetaryCurrency currency = transactionAmountUnprocessed.getCurrency();
|
// final MonetaryCurrency currency =
|
||||||
|
// transactionAmountUnprocessed.getCurrency();
|
||||||
Money transactionAmountRemaining = transactionAmountUnprocessed;
|
Money transactionAmountRemaining = transactionAmountUnprocessed;
|
||||||
Money principalPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
Money principalPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
||||||
Money interestPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
Money interestPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
||||||
|
|||||||
+1
-1
@@ -110,7 +110,7 @@ public class PrincipalInterestPenaltyFeesOrderLoanRepaymentScheduleTransactionPr
|
|||||||
final LoanTransaction loanTransaction, final Money transactionAmountUnprocessed) {
|
final LoanTransaction loanTransaction, final Money transactionAmountUnprocessed) {
|
||||||
|
|
||||||
final LocalDate transactionDate = loanTransaction.getTransactionDate();
|
final LocalDate transactionDate = loanTransaction.getTransactionDate();
|
||||||
final MonetaryCurrency currency = transactionAmountUnprocessed.getCurrency();
|
//final MonetaryCurrency currency = transactionAmountUnprocessed.getCurrency();
|
||||||
Money transactionAmountRemaining = transactionAmountUnprocessed;
|
Money transactionAmountRemaining = transactionAmountUnprocessed;
|
||||||
Money principalPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
Money principalPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
||||||
Money interestPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
Money interestPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
||||||
|
|||||||
+1
-1
@@ -215,7 +215,7 @@ public class RBILoanRepaymentScheduleTransactionProcessor extends AbstractLoanRe
|
|||||||
final LoanTransaction loanTransaction, final Money transactionAmountUnprocessed) {
|
final LoanTransaction loanTransaction, final Money transactionAmountUnprocessed) {
|
||||||
|
|
||||||
final LocalDate transactionDate = loanTransaction.getTransactionDate();
|
final LocalDate transactionDate = loanTransaction.getTransactionDate();
|
||||||
final MonetaryCurrency currency = transactionAmountUnprocessed.getCurrency();
|
//final MonetaryCurrency currency = transactionAmountUnprocessed.getCurrency();
|
||||||
Money transactionAmountRemaining = transactionAmountUnprocessed;
|
Money transactionAmountRemaining = transactionAmountUnprocessed;
|
||||||
Money principalPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
Money principalPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
||||||
Money interestPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
Money interestPortion = Money.zero(transactionAmountRemaining.getCurrency());
|
||||||
|
|||||||
+2
-4
@@ -31,9 +31,7 @@ import org.mifosplatform.portfolio.loanaccount.domain.LoanDisbursementDetails;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
import com.google.gson.JsonArray;
|
|
||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
@@ -411,14 +409,14 @@ public final class LoanEventApiJsonValidator {
|
|||||||
|
|
||||||
if (StringUtils.isBlank(json)) { throw new InvalidJsonException(); }
|
if (StringUtils.isBlank(json)) { throw new InvalidJsonException(); }
|
||||||
|
|
||||||
final Set<String> transactionParameters = new HashSet<String>(Arrays.asList("transactionDate", "transactionAmount", "externalId",
|
final Set<String> transactionParameters = new HashSet<>(Arrays.asList("transactionDate", "transactionAmount", "externalId",
|
||||||
"note", "locale", "dateFormat", "paymentTypeId", "accountNumber", "checkNumber", "routingCode", "receiptNumber",
|
"note", "locale", "dateFormat", "paymentTypeId", "accountNumber", "checkNumber", "routingCode", "receiptNumber",
|
||||||
"bankNumber"));
|
"bankNumber"));
|
||||||
|
|
||||||
final Type typeOfMap = new TypeToken<Map<String, Object>>() {}.getType();
|
final Type typeOfMap = new TypeToken<Map<String, Object>>() {}.getType();
|
||||||
this.fromApiJsonHelper.checkForUnsupportedParameters(typeOfMap, json, transactionParameters);
|
this.fromApiJsonHelper.checkForUnsupportedParameters(typeOfMap, json, transactionParameters);
|
||||||
|
|
||||||
final List<ApiParameterError> dataValidationErrors = new ArrayList<ApiParameterError>();
|
final List<ApiParameterError> dataValidationErrors = new ArrayList<>();
|
||||||
final DataValidatorBuilder baseDataValidator = new DataValidatorBuilder(dataValidationErrors).resource("loan.transaction");
|
final DataValidatorBuilder baseDataValidator = new DataValidatorBuilder(dataValidationErrors).resource("loan.transaction");
|
||||||
|
|
||||||
final JsonElement element = this.fromApiJsonHelper.parse(json);
|
final JsonElement element = this.fromApiJsonHelper.parse(json);
|
||||||
|
|||||||
+1
-1
@@ -2893,7 +2893,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
|||||||
final BigDecimal transactionAmount = command.bigDecimalValueOfParameterNamed("transactionAmount");
|
final BigDecimal transactionAmount = command.bigDecimalValueOfParameterNamed("transactionAmount");
|
||||||
checkIfLoanIsPaidInAdvance(loanId, transactionAmount);
|
checkIfLoanIsPaidInAdvance(loanId, transactionAmount);
|
||||||
|
|
||||||
final Map<String, Object> changes = new LinkedHashMap<String, Object>();
|
final Map<String, Object> changes = new LinkedHashMap<>();
|
||||||
changes.put("transactionDate", command.stringValueOfParameterNamed("transactionDate"));
|
changes.put("transactionDate", command.stringValueOfParameterNamed("transactionDate"));
|
||||||
changes.put("transactionAmount", command.stringValueOfParameterNamed("transactionAmount"));
|
changes.put("transactionAmount", command.stringValueOfParameterNamed("transactionAmount"));
|
||||||
changes.put("locale", command.locale());
|
changes.put("locale", command.locale());
|
||||||
|
|||||||
-4
@@ -32,7 +32,6 @@ import org.mifosplatform.accounting.producttoaccountmapping.service.ProductToGLA
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
@@ -91,7 +90,6 @@ public class LoanProductsApiResource {
|
|||||||
private final LoanDropdownReadPlatformService dropdownReadPlatformService;
|
private final LoanDropdownReadPlatformService dropdownReadPlatformService;
|
||||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||||
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
||||||
private final DefaultToApiJsonSerializer<ProductMixData> productMixDataApiJsonSerializer;
|
private final DefaultToApiJsonSerializer<ProductMixData> productMixDataApiJsonSerializer;
|
||||||
private final ProductMixReadPlatformService productMixReadPlatformService;
|
private final ProductMixReadPlatformService productMixReadPlatformService;
|
||||||
@@ -106,7 +104,6 @@ public class LoanProductsApiResource {
|
|||||||
final ApiRequestParameterHelper apiRequestParameterHelper,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
||||||
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
||||||
final CodeValueReadPlatformService codeValueReadPlatformService,
|
|
||||||
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
||||||
final DefaultToApiJsonSerializer<ProductMixData> productMixDataApiJsonSerializer,
|
final DefaultToApiJsonSerializer<ProductMixData> productMixDataApiJsonSerializer,
|
||||||
final ProductMixReadPlatformService productMixReadPlatformService,
|
final ProductMixReadPlatformService productMixReadPlatformService,
|
||||||
@@ -122,7 +119,6 @@ public class LoanProductsApiResource {
|
|||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
||||||
this.productMixDataApiJsonSerializer = productMixDataApiJsonSerializer;
|
this.productMixDataApiJsonSerializer = productMixDataApiJsonSerializer;
|
||||||
this.productMixReadPlatformService = productMixReadPlatformService;
|
this.productMixReadPlatformService = productMixReadPlatformService;
|
||||||
|
|||||||
+1
-4
@@ -22,7 +22,6 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
import org.mifosplatform.infrastructure.core.exception.UnrecognizedQueryParamException;
|
import org.mifosplatform.infrastructure.core.exception.UnrecognizedQueryParamException;
|
||||||
@@ -50,7 +49,6 @@ public class FixedDepositAccountTransactionsApiResource {
|
|||||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||||
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
||||||
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -59,13 +57,12 @@ public class FixedDepositAccountTransactionsApiResource {
|
|||||||
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
||||||
final ApiRequestParameterHelper apiRequestParameterHelper,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
||||||
final CodeValueReadPlatformService codeValueReadPlatformService, PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.toApiJsonSerializer = toApiJsonSerializer;
|
this.toApiJsonSerializer = toApiJsonSerializer;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -32,7 +32,6 @@ import org.mifosplatform.accounting.producttoaccountmapping.service.ProductToGLA
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
||||||
@@ -77,7 +76,6 @@ public class FixedDepositProductsApiResource {
|
|||||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||||
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
||||||
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
||||||
private final ChargeReadPlatformService chargeReadPlatformService;
|
private final ChargeReadPlatformService chargeReadPlatformService;
|
||||||
private final InterestRateChartReadPlatformService chartReadPlatformService;
|
private final InterestRateChartReadPlatformService chartReadPlatformService;
|
||||||
@@ -92,7 +90,7 @@ public class FixedDepositProductsApiResource {
|
|||||||
final CurrencyReadPlatformService currencyReadPlatformService, final PlatformSecurityContext context,
|
final CurrencyReadPlatformService currencyReadPlatformService, final PlatformSecurityContext context,
|
||||||
final DefaultToApiJsonSerializer<FixedDepositProductData> toApiJsonSerializer,
|
final DefaultToApiJsonSerializer<FixedDepositProductData> toApiJsonSerializer,
|
||||||
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
||||||
final ApiRequestParameterHelper apiRequestParameterHelper, final CodeValueReadPlatformService codeValueReadPlatformService,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
||||||
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
||||||
final ChargeReadPlatformService chargeReadPlatformService, final InterestRateChartReadPlatformService chartReadPlatformService,
|
final ChargeReadPlatformService chargeReadPlatformService, final InterestRateChartReadPlatformService chartReadPlatformService,
|
||||||
@@ -107,7 +105,6 @@ public class FixedDepositProductsApiResource {
|
|||||||
this.toApiJsonSerializer = toApiJsonSerializer;
|
this.toApiJsonSerializer = toApiJsonSerializer;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
||||||
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
||||||
this.chargeReadPlatformService = chargeReadPlatformService;
|
this.chargeReadPlatformService = chargeReadPlatformService;
|
||||||
|
|||||||
+1
-4
@@ -22,7 +22,6 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
import org.mifosplatform.infrastructure.core.exception.UnrecognizedQueryParamException;
|
import org.mifosplatform.infrastructure.core.exception.UnrecognizedQueryParamException;
|
||||||
@@ -52,7 +51,6 @@ public class RecurringDepositAccountTransactionsApiResource {
|
|||||||
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
||||||
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
||||||
private final DepositAccountReadPlatformService depositAccountReadPlatformService;
|
private final DepositAccountReadPlatformService depositAccountReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -62,14 +60,13 @@ public class RecurringDepositAccountTransactionsApiResource {
|
|||||||
final ApiRequestParameterHelper apiRequestParameterHelper,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
||||||
final DepositAccountReadPlatformService depositAccountReadPlatformService,
|
final DepositAccountReadPlatformService depositAccountReadPlatformService,
|
||||||
final CodeValueReadPlatformService codeValueReadPlatformService, PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
final PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.toApiJsonSerializer = toApiJsonSerializer;
|
this.toApiJsonSerializer = toApiJsonSerializer;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
||||||
this.depositAccountReadPlatformService = depositAccountReadPlatformService;
|
this.depositAccountReadPlatformService = depositAccountReadPlatformService;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -32,7 +32,6 @@ import org.mifosplatform.accounting.producttoaccountmapping.service.ProductToGLA
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
||||||
@@ -77,7 +76,6 @@ public class RecurringDepositProductsApiResource {
|
|||||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||||
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
||||||
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
||||||
private final ChargeReadPlatformService chargeReadPlatformService;
|
private final ChargeReadPlatformService chargeReadPlatformService;
|
||||||
private final InterestRateChartReadPlatformService chartReadPlatformService;
|
private final InterestRateChartReadPlatformService chartReadPlatformService;
|
||||||
@@ -92,7 +90,7 @@ public class RecurringDepositProductsApiResource {
|
|||||||
final CurrencyReadPlatformService currencyReadPlatformService, final PlatformSecurityContext context,
|
final CurrencyReadPlatformService currencyReadPlatformService, final PlatformSecurityContext context,
|
||||||
final DefaultToApiJsonSerializer<RecurringDepositProductData> toApiJsonSerializer,
|
final DefaultToApiJsonSerializer<RecurringDepositProductData> toApiJsonSerializer,
|
||||||
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
||||||
final ApiRequestParameterHelper apiRequestParameterHelper, final CodeValueReadPlatformService codeValueReadPlatformService,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
||||||
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
||||||
final ChargeReadPlatformService chargeReadPlatformService, final InterestRateChartReadPlatformService chartReadPlatformService,
|
final ChargeReadPlatformService chargeReadPlatformService, final InterestRateChartReadPlatformService chartReadPlatformService,
|
||||||
@@ -107,7 +105,6 @@ public class RecurringDepositProductsApiResource {
|
|||||||
this.toApiJsonSerializer = toApiJsonSerializer;
|
this.toApiJsonSerializer = toApiJsonSerializer;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
||||||
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
||||||
this.chargeReadPlatformService = chargeReadPlatformService;
|
this.chargeReadPlatformService = chargeReadPlatformService;
|
||||||
|
|||||||
+2
-6
@@ -22,7 +22,6 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
import org.mifosplatform.infrastructure.core.exception.PlatformDataIntegrityException;
|
import org.mifosplatform.infrastructure.core.exception.PlatformDataIntegrityException;
|
||||||
@@ -52,7 +51,6 @@ public class SavingsAccountTransactionsApiResource {
|
|||||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||||
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
||||||
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -61,13 +59,12 @@ public class SavingsAccountTransactionsApiResource {
|
|||||||
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
||||||
final ApiRequestParameterHelper apiRequestParameterHelper,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
||||||
final CodeValueReadPlatformService codeValueReadPlatformService,PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.toApiJsonSerializer = toApiJsonSerializer;
|
this.toApiJsonSerializer = toApiJsonSerializer;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,8 +86,7 @@ public class SavingsAccountTransactionsApiResource {
|
|||||||
// both deposit/withdrawal templates
|
// both deposit/withdrawal templates
|
||||||
SavingsAccountTransactionData savingsAccount = this.savingsAccountReadPlatformService.retrieveDepositTransactionTemplate(savingsId,
|
SavingsAccountTransactionData savingsAccount = this.savingsAccountReadPlatformService.retrieveDepositTransactionTemplate(savingsId,
|
||||||
DepositAccountType.SAVINGS_DEPOSIT);
|
DepositAccountType.SAVINGS_DEPOSIT);
|
||||||
final Collection<PaymentTypeData> paymentTypeOptions = this.paymentTypeReadPlatformService
|
final Collection<PaymentTypeData> paymentTypeOptions = this.paymentTypeReadPlatformService.retrieveAllPaymentTypes();
|
||||||
.retrieveAllPaymentTypes();
|
|
||||||
savingsAccount = SavingsAccountTransactionData.templateOnTop(savingsAccount, paymentTypeOptions);
|
savingsAccount = SavingsAccountTransactionData.templateOnTop(savingsAccount, paymentTypeOptions);
|
||||||
|
|
||||||
final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper.process(uriInfo.getQueryParameters());
|
final ApiRequestJsonSerializationSettings settings = this.apiRequestParameterHelper.process(uriInfo.getQueryParameters());
|
||||||
|
|||||||
+1
-4
@@ -32,7 +32,6 @@ import org.mifosplatform.accounting.producttoaccountmapping.service.ProductToGLA
|
|||||||
import org.mifosplatform.commands.domain.CommandWrapper;
|
import org.mifosplatform.commands.domain.CommandWrapper;
|
||||||
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
import org.mifosplatform.commands.service.CommandWrapperBuilder;
|
||||||
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
import org.mifosplatform.commands.service.PortfolioCommandSourceWritePlatformService;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
import org.mifosplatform.infrastructure.core.api.ApiRequestParameterHelper;
|
||||||
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
import org.mifosplatform.infrastructure.core.data.CommandProcessingResult;
|
||||||
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
||||||
@@ -72,7 +71,6 @@ public class SavingsProductsApiResource {
|
|||||||
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
private final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService;
|
||||||
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
private final ApiRequestParameterHelper apiRequestParameterHelper;
|
||||||
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
private final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
private final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService;
|
||||||
private final ChargeReadPlatformService chargeReadPlatformService;
|
private final ChargeReadPlatformService chargeReadPlatformService;
|
||||||
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
||||||
@@ -83,7 +81,7 @@ public class SavingsProductsApiResource {
|
|||||||
final CurrencyReadPlatformService currencyReadPlatformService, final PlatformSecurityContext context,
|
final CurrencyReadPlatformService currencyReadPlatformService, final PlatformSecurityContext context,
|
||||||
final DefaultToApiJsonSerializer<SavingsProductData> toApiJsonSerializer,
|
final DefaultToApiJsonSerializer<SavingsProductData> toApiJsonSerializer,
|
||||||
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
final PortfolioCommandSourceWritePlatformService commandsSourceWritePlatformService,
|
||||||
final ApiRequestParameterHelper apiRequestParameterHelper, final CodeValueReadPlatformService codeValueReadPlatformService,
|
final ApiRequestParameterHelper apiRequestParameterHelper,
|
||||||
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
final AccountingDropdownReadPlatformService accountingDropdownReadPlatformService,
|
||||||
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
final ProductToGLAccountMappingReadPlatformService accountMappingReadPlatformService,
|
||||||
final ChargeReadPlatformService chargeReadPlatformService, PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
final ChargeReadPlatformService chargeReadPlatformService, PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
||||||
@@ -94,7 +92,6 @@ public class SavingsProductsApiResource {
|
|||||||
this.toApiJsonSerializer = toApiJsonSerializer;
|
this.toApiJsonSerializer = toApiJsonSerializer;
|
||||||
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
this.commandsSourceWritePlatformService = commandsSourceWritePlatformService;
|
||||||
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
this.apiRequestParameterHelper = apiRequestParameterHelper;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
this.accountingDropdownReadPlatformService = accountingDropdownReadPlatformService;
|
||||||
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
this.accountMappingReadPlatformService = accountMappingReadPlatformService;
|
||||||
this.chargeReadPlatformService = chargeReadPlatformService;
|
this.chargeReadPlatformService = chargeReadPlatformService;
|
||||||
|
|||||||
-3
@@ -48,8 +48,6 @@ import org.apache.commons.lang.StringUtils;
|
|||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
import org.joda.time.format.DateTimeFormat;
|
import org.joda.time.format.DateTimeFormat;
|
||||||
import org.joda.time.format.DateTimeFormatter;
|
import org.joda.time.format.DateTimeFormatter;
|
||||||
import org.mifosplatform.infrastructure.codes.domain.CodeValue;
|
|
||||||
import org.mifosplatform.infrastructure.codes.domain.CodeValueRepositoryWrapper;
|
|
||||||
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
import org.mifosplatform.infrastructure.core.api.JsonCommand;
|
||||||
import org.mifosplatform.infrastructure.core.exception.InvalidJsonException;
|
import org.mifosplatform.infrastructure.core.exception.InvalidJsonException;
|
||||||
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
import org.mifosplatform.infrastructure.core.serialization.FromJsonHelper;
|
||||||
@@ -68,7 +66,6 @@ import org.mifosplatform.portfolio.group.exception.CenterNotActiveException;
|
|||||||
import org.mifosplatform.portfolio.group.exception.ClientNotInGroupException;
|
import org.mifosplatform.portfolio.group.exception.ClientNotInGroupException;
|
||||||
import org.mifosplatform.portfolio.group.exception.GroupNotActiveException;
|
import org.mifosplatform.portfolio.group.exception.GroupNotActiveException;
|
||||||
import org.mifosplatform.portfolio.interestratechart.domain.InterestRateChart;
|
import org.mifosplatform.portfolio.interestratechart.domain.InterestRateChart;
|
||||||
import org.mifosplatform.portfolio.paymentdetail.PaymentDetailConstants;
|
|
||||||
import org.mifosplatform.portfolio.paymentdetail.domain.PaymentDetail;
|
import org.mifosplatform.portfolio.paymentdetail.domain.PaymentDetail;
|
||||||
import org.mifosplatform.portfolio.paymentdetail.domain.PaymentDetailAssembler;
|
import org.mifosplatform.portfolio.paymentdetail.domain.PaymentDetailAssembler;
|
||||||
import org.mifosplatform.portfolio.savings.DepositAccountOnClosureType;
|
import org.mifosplatform.portfolio.savings.DepositAccountOnClosureType;
|
||||||
|
|||||||
+1
-4
@@ -10,7 +10,6 @@ import static org.mifosplatform.portfolio.savings.DepositsApiConstants.closedOnD
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.configuration.domain.ConfigurationDomainService;
|
import org.mifosplatform.infrastructure.configuration.domain.ConfigurationDomainService;
|
||||||
import org.mifosplatform.infrastructure.core.api.JsonQuery;
|
import org.mifosplatform.infrastructure.core.api.JsonQuery;
|
||||||
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
||||||
@@ -40,7 +39,6 @@ public class DepositAccountPreMatureCalculationPlatformServiceImpl implements De
|
|||||||
private final FromJsonHelper fromJsonHelper;
|
private final FromJsonHelper fromJsonHelper;
|
||||||
private final DepositAccountTransactionDataValidator depositAccountTransactionDataValidator;
|
private final DepositAccountTransactionDataValidator depositAccountTransactionDataValidator;
|
||||||
private final DepositAccountAssembler depositAccountAssembler;
|
private final DepositAccountAssembler depositAccountAssembler;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
||||||
private final ConfigurationDomainService configurationDomainService;
|
private final ConfigurationDomainService configurationDomainService;
|
||||||
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
private final PaymentTypeReadPlatformService paymentTypeReadPlatformService;
|
||||||
@@ -48,13 +46,12 @@ public class DepositAccountPreMatureCalculationPlatformServiceImpl implements De
|
|||||||
@Autowired
|
@Autowired
|
||||||
public DepositAccountPreMatureCalculationPlatformServiceImpl(final FromJsonHelper fromJsonHelper,
|
public DepositAccountPreMatureCalculationPlatformServiceImpl(final FromJsonHelper fromJsonHelper,
|
||||||
final DepositAccountTransactionDataValidator depositAccountTransactionDataValidator,
|
final DepositAccountTransactionDataValidator depositAccountTransactionDataValidator,
|
||||||
final DepositAccountAssembler depositAccountAssembler, final CodeValueReadPlatformService codeValueReadPlatformService,
|
final DepositAccountAssembler depositAccountAssembler,
|
||||||
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
||||||
final ConfigurationDomainService configurationDomainService, PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
final ConfigurationDomainService configurationDomainService, PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
||||||
this.fromJsonHelper = fromJsonHelper;
|
this.fromJsonHelper = fromJsonHelper;
|
||||||
this.depositAccountTransactionDataValidator = depositAccountTransactionDataValidator;
|
this.depositAccountTransactionDataValidator = depositAccountTransactionDataValidator;
|
||||||
this.depositAccountAssembler = depositAccountAssembler;
|
this.depositAccountAssembler = depositAccountAssembler;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
||||||
this.configurationDomainService = configurationDomainService;
|
this.configurationDomainService = configurationDomainService;
|
||||||
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
this.paymentTypeReadPlatformService = paymentTypeReadPlatformService;
|
||||||
|
|||||||
-5
@@ -15,7 +15,6 @@ import java.util.Map;
|
|||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
import org.joda.time.format.DateTimeFormat;
|
import org.joda.time.format.DateTimeFormat;
|
||||||
import org.joda.time.format.DateTimeFormatter;
|
import org.joda.time.format.DateTimeFormatter;
|
||||||
import org.mifosplatform.infrastructure.codes.service.CodeValueReadPlatformService;
|
|
||||||
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
import org.mifosplatform.infrastructure.core.data.EnumOptionData;
|
||||||
import org.mifosplatform.infrastructure.core.data.PaginationParameters;
|
import org.mifosplatform.infrastructure.core.data.PaginationParameters;
|
||||||
import org.mifosplatform.infrastructure.core.data.PaginationParametersDataValidator;
|
import org.mifosplatform.infrastructure.core.data.PaginationParametersDataValidator;
|
||||||
@@ -48,7 +47,6 @@ import org.mifosplatform.portfolio.group.data.GroupGeneralData;
|
|||||||
import org.mifosplatform.portfolio.group.service.GroupReadPlatformService;
|
import org.mifosplatform.portfolio.group.service.GroupReadPlatformService;
|
||||||
import org.mifosplatform.portfolio.interestratechart.data.InterestRateChartData;
|
import org.mifosplatform.portfolio.interestratechart.data.InterestRateChartData;
|
||||||
import org.mifosplatform.portfolio.interestratechart.service.InterestRateChartReadPlatformService;
|
import org.mifosplatform.portfolio.interestratechart.service.InterestRateChartReadPlatformService;
|
||||||
import org.mifosplatform.portfolio.paymentdetail.PaymentDetailConstants;
|
|
||||||
import org.mifosplatform.portfolio.paymentdetail.data.PaymentDetailData;
|
import org.mifosplatform.portfolio.paymentdetail.data.PaymentDetailData;
|
||||||
import org.mifosplatform.portfolio.paymenttype.data.PaymentTypeData;
|
import org.mifosplatform.portfolio.paymenttype.data.PaymentTypeData;
|
||||||
import org.mifosplatform.portfolio.paymenttype.service.PaymentTypeReadPlatformService;
|
import org.mifosplatform.portfolio.paymenttype.service.PaymentTypeReadPlatformService;
|
||||||
@@ -104,7 +102,6 @@ public class DepositAccountReadPlatformServiceImpl implements DepositAccountRead
|
|||||||
private final ChargeReadPlatformService chargeReadPlatformService;
|
private final ChargeReadPlatformService chargeReadPlatformService;
|
||||||
private final StaffReadPlatformService staffReadPlatformService;
|
private final StaffReadPlatformService staffReadPlatformService;
|
||||||
private final DepositsDropdownReadPlatformService depositsDropdownReadPlatformService;
|
private final DepositsDropdownReadPlatformService depositsDropdownReadPlatformService;
|
||||||
private final CodeValueReadPlatformService codeValueReadPlatformService;
|
|
||||||
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
private final SavingsAccountReadPlatformService savingsAccountReadPlatformService;
|
||||||
private final RecurringAccountDepositTransactionTemplateMapper rdTransactionTemplateMapper;
|
private final RecurringAccountDepositTransactionTemplateMapper rdTransactionTemplateMapper;
|
||||||
private final DropdownReadPlatformService dropdownReadPlatformService;
|
private final DropdownReadPlatformService dropdownReadPlatformService;
|
||||||
@@ -122,7 +119,6 @@ public class DepositAccountReadPlatformServiceImpl implements DepositAccountRead
|
|||||||
final ChargeReadPlatformService chargeReadPlatformService, final StaffReadPlatformService staffReadPlatformService,
|
final ChargeReadPlatformService chargeReadPlatformService, final StaffReadPlatformService staffReadPlatformService,
|
||||||
final DepositsDropdownReadPlatformService depositsDropdownReadPlatformService,
|
final DepositsDropdownReadPlatformService depositsDropdownReadPlatformService,
|
||||||
final InterestRateChartReadPlatformService productChartReadPlatformService,
|
final InterestRateChartReadPlatformService productChartReadPlatformService,
|
||||||
final CodeValueReadPlatformService codeValueReadPlatformService,
|
|
||||||
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
final SavingsAccountReadPlatformService savingsAccountReadPlatformService,
|
||||||
final DropdownReadPlatformService dropdownReadPlatformService, final CalendarReadPlatformService calendarReadPlatformService,
|
final DropdownReadPlatformService dropdownReadPlatformService, final CalendarReadPlatformService calendarReadPlatformService,
|
||||||
PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
PaymentTypeReadPlatformService paymentTypeReadPlatformService) {
|
||||||
@@ -139,7 +135,6 @@ public class DepositAccountReadPlatformServiceImpl implements DepositAccountRead
|
|||||||
this.staffReadPlatformService = staffReadPlatformService;
|
this.staffReadPlatformService = staffReadPlatformService;
|
||||||
this.depositsDropdownReadPlatformService = depositsDropdownReadPlatformService;
|
this.depositsDropdownReadPlatformService = depositsDropdownReadPlatformService;
|
||||||
this.productChartReadPlatformService = productChartReadPlatformService;
|
this.productChartReadPlatformService = productChartReadPlatformService;
|
||||||
this.codeValueReadPlatformService = codeValueReadPlatformService;
|
|
||||||
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
this.savingsAccountReadPlatformService = savingsAccountReadPlatformService;
|
||||||
this.rdTransactionTemplateMapper = new RecurringAccountDepositTransactionTemplateMapper();
|
this.rdTransactionTemplateMapper = new RecurringAccountDepositTransactionTemplateMapper();
|
||||||
this.dropdownReadPlatformService = dropdownReadPlatformService;
|
this.dropdownReadPlatformService = dropdownReadPlatformService;
|
||||||
|
|||||||
+4
-3
@@ -12,16 +12,17 @@ import java.io.Serializable;
|
|||||||
*/
|
*/
|
||||||
public class PasswordValidationPolicyData implements Serializable {
|
public class PasswordValidationPolicyData implements Serializable {
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final Long id;
|
private final Long id;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final String description;
|
private final String description;
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private final boolean active;
|
private final boolean active;
|
||||||
|
|
||||||
|
public PasswordValidationPolicyData(final Long id, final Boolean active, final String description) {
|
||||||
public PasswordValidationPolicyData(final Long id, final Boolean active, final String description) {
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.active = active;
|
this.active = active;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user