use of org.mifos.accounts.business.AccountFlagMapping in project head by mifos.
the class SavingsAction method getDepositDueDetails.
@TransactionDemarcate(saveToken = true)
public ActionForward getDepositDueDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
logger.debug("In SavingsAction::getDepositDueDetails()");
SavingsActionForm actionform = (SavingsActionForm) form;
UserContext uc = (UserContext) SessionUtils.getAttribute(Constants.USER_CONTEXT_KEY, request.getSession());
SessionUtils.removeAttribute(Constants.BUSINESS_KEY, request);
String savingsSystemId = actionform.getGlobalAccountNum();
SavingsBO savings = savingsDao.findBySystemId(savingsSystemId);
for (AccountActionDateEntity actionDate : savings.getAccountActionDates()) {
Hibernate.initialize(actionDate);
}
Hibernate.initialize(savings.getAccountNotes());
for (AccountFlagMapping accountFlagMapping : savings.getAccountFlags()) {
Hibernate.initialize(accountFlagMapping.getFlag());
}
Hibernate.initialize(savings.getAccountFlags());
savings.setUserContext(uc);
SessionUtils.setAttribute(Constants.BUSINESS_KEY, savings, request);
SavingsAccountDepositDueDto depositDueDetails = this.savingsServiceFacade.retrieveDepositDueDetails(savingsSystemId);
return mapping.findForward("depositduedetails_success");
}
use of org.mifos.accounts.business.AccountFlagMapping in project head by mifos.
the class GroupLoanAccountServiceFacadeWebTier method getAccountStateFlagEntityNames.
private Set<String> getAccountStateFlagEntityNames(Set<AccountFlagMapping> accountFlagMappings) {
Set<String> accountFlagNames = new HashSet<String>();
if (!accountFlagMappings.isEmpty()) {
for (AccountFlagMapping accountFlagMapping : accountFlagMappings) {
String accountFlagName = getAccountStateFlagEntityName(accountFlagMapping.getFlag().getId());
accountFlagNames.add(accountFlagName);
}
}
return accountFlagNames;
}
use of org.mifos.accounts.business.AccountFlagMapping in project head by mifos.
the class LoanAccountServiceFacadeWebTier method getAccountStateFlagEntityNames.
private Set<String> getAccountStateFlagEntityNames(Set<AccountFlagMapping> accountFlagMappings) {
Set<String> accountFlagNames = new HashSet<String>();
if (!accountFlagMappings.isEmpty()) {
for (AccountFlagMapping accountFlagMapping : accountFlagMappings) {
String accountFlagName = getAccountStateFlagEntityName(accountFlagMapping.getFlag().getId());
accountFlagNames.add(accountFlagName);
}
}
return accountFlagNames;
}
Aggregations