Package org.mifosplatform.portfolio.loanaccount.guarantor.exception

Examples of org.mifosplatform.portfolio.loanaccount.guarantor.exception.DuplicateGuarantorException


                        defaultUserMessage = this.clientRepositoryWrapper.findOneWithNotFoundDetection(entityId).getDisplayName();
                    }

                    defaultUserMessage = defaultUserMessage + " is already exist as a guarantor for this loan";
                    final String action = loan.client() != null ? "client.guarantor" : "group.guarantor";
                    throw new DuplicateGuarantorException(action, "is.already.exist.same.loan", defaultUserMessage, entityId, loanId);
                }
            }

            Guarantor guarantor = null;
            guarantor = Guarantor.fromJson(loan, clientRelationshipType, command);
View Full Code Here


                    if (guarantor.getLoanId() == loanId && guarantor.getEntityId() == entityId
                            && guarantor.getGurantorType() == guarantorTypeId && !guarantorForUpdate.getId().equals(guarantor.getId())) {
                        String defaultUserMessage = this.clientRepositoryWrapper.findOneWithNotFoundDetection(entityId).getDisplayName();
                        defaultUserMessage = defaultUserMessage + " is already exist as a guarantor for this loan";
                        final String action = loan.client() != null ? "client.guarantor" : "group.guarantor";
                        throw new DuplicateGuarantorException(action, "is.already.exist.same.loan", defaultUserMessage, entityId, loanId);
                    }
                }
            }

            if (changesOnly.containsKey(GUARANTOR_JSON_INPUT_PARAMS.ENTITY_ID)
View Full Code Here

TOP

Related Classes of org.mifosplatform.portfolio.loanaccount.guarantor.exception.DuplicateGuarantorException

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.