Package org.mifosplatform.portfolio.savings.exception

Examples of org.mifosplatform.portfolio.savings.exception.FixedDepositProductNotFoundException


            return this.jdbcTemplate.queryForObject(sqlBuilder.toString(), depositProductMapper, new Object[] { fixedDepositProductId,
                    depositAccountType.getValue() });

        } catch (final EmptyResultDataAccessException e) {
            throw new FixedDepositProductNotFoundException(fixedDepositProductId);
        }
    }
View Full Code Here


        try {
            this.context.authenticatedUser();
            this.fromApiJsonDataValidator.validateForFixedDepositUpdate(command.json());

            final FixedDepositProduct product = this.fixedDepositProductRepository.findOne(productId);
            if (product == null) { throw new FixedDepositProductNotFoundException(productId); }
            product.setHelpers(this.chartAssembler);

            final Map<String, Object> changes = product.update(command);

            if (changes.containsKey(chargesParamName)) {
View Full Code Here

    @Override
    public CommandProcessingResult delete(final Long productId) {

        this.context.authenticatedUser();
        final FixedDepositProduct product = this.fixedDepositProductRepository.findOne(productId);
        if (product == null) { throw new FixedDepositProductNotFoundException(productId); }

        this.fixedDepositProductRepository.delete(product);

        return new CommandProcessingResultBuilder() //
                .withEntityId(product.getId()) //
View Full Code Here

        final Long productId = this.fromApiJsonHelper.extractLongNamed(productIdParamName, element);

        SavingsProduct product = null;
        if (depositAccountType.isFixedDeposit()) {
            product = this.fixedDepositProductRepository.findOne(productId);
            if (product == null) { throw new FixedDepositProductNotFoundException(productId); }
        } else if (depositAccountType.isRecurringDeposit()) {
            product = this.recurringDepositProductRepository.findOne(productId);
            if (product == null) { throw new RecurringDepositProductNotFoundException(productId); }
        }
View Full Code Here

TOP

Related Classes of org.mifosplatform.portfolio.savings.exception.FixedDepositProductNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.