Пример #1
0
  @CloseSession
  @TransactionDemarcate(validateAndResetToken = true)
  public ActionForward removeGroupMemberShip(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      @SuppressWarnings("unused") HttpServletResponse response)
      throws Exception {

    GroupTransferActionForm actionForm = (GroupTransferActionForm) form;
    CustomerBO customerBOInSession =
        (CustomerBO) SessionUtils.getAttribute(Constants.BUSINESS_KEY, request);
    ClientBO client = this.customerDao.findClientBySystemId(customerBOInSession.getGlobalCustNum());

    checkVersionMismatch(customerBOInSession.getVersionNo(), client.getVersionNo());

    Short loanOfficerId = null;
    if (StringUtils.isNotBlank(actionForm.getAssignedLoanOfficerId())) {
      loanOfficerId = Short.valueOf(actionForm.getAssignedLoanOfficerId());
    }

    this.clientServiceFacade.removeGroupMembership(
        customerBOInSession.getGlobalCustNum(), loanOfficerId, actionForm.getComment());

    return mapping.findForward(ActionForwards.view_client_details_page.toString());
  }