use of org.mifos.customers.group.struts.actionforms.AddGroupMembershipForm in project head by mifos.
the class AddGroupMembershipAction method updateParent.
@TransactionDemarcate(validateAndResetToken = true)
@CloseSession
public ActionForward updateParent(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
AddGroupMembershipForm actionForm = (AddGroupMembershipForm) form;
Integer parentGroupId = actionForm.getParentGroupIdValue();
ClientBO clientInSession = (ClientBO) SessionUtils.getAttribute(Constants.BUSINESS_KEY, request);
String globalCustNum = this.clientServiceFacade.transferClientToGroup(parentGroupId, clientInSession.getGlobalCustNum(), clientInSession.getVersionNo());
ClientBO client = this.customerDao.findClientBySystemId(globalCustNum);
SessionUtils.setAttribute(Constants.BUSINESS_KEY, client, request);
return mapping.findForward(ActionForwards.view_client_details_page.toString());
}
use of org.mifos.customers.group.struts.actionforms.AddGroupMembershipForm in project head by mifos.
the class AddGroupMembershipAction method loadSearch.
@TransactionDemarcate(joinToken = true)
public ActionForward loadSearch(ActionMapping mapping, ActionForm form, @SuppressWarnings("unused") HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
AddGroupMembershipForm actionForm = (AddGroupMembershipForm) form;
actionForm.setSearchString(null);
return mapping.findForward(ActionForwards.loadSearch_success.toString());
}
Aggregations