Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.InternalAccount


  public synchronized ModelAndView internalUsers(ModelMap model) {

    ModelAndView modelAndView = new ModelAndView("SystemAdminListInternalUserRequests");
    List<InternalAccount> internalAccounts = internalAccountBO.getAllInternalUserAccounts();
    modelAndView.addObject("internalAccounts", internalAccounts);
    InternalAccount singleinternalAccount = new InternalAccount();
    modelAndView.addObject("singleInternalAccount", singleinternalAccount);
    return modelAndView;

  }
View Full Code Here


  @RequestMapping(value="/authorizeUserRequest")
  public synchronized ModelAndView authorizeUserRequest(@ModelAttribute("singleInternalAccount") InternalAccount internalUserAccount,
      BindingResult result) {

    ModelAndView modelAndView = new ModelAndView("InternalUserAuthorized");
    InternalAccount internalAccount = internalAccountBO.findUserByid(internalUserAccount.getEmployeeId());
    internalAccount.setAuthorized(true);
    internalAccountBO.update(internalAccount);
    return modelAndView;

  }
View Full Code Here

  @RequestMapping(value="/assignRoleInternalUserAccount")

  public synchronized ModelAndView assignroleInternalUserAccount(@ModelAttribute("singleInternalAccount") InternalAccount intuser) {

    InternalAccount internalAccount = internalAccountBO.findUserByid(intuser.getEmployeeId());

    return new ModelAndView("AssignRoleInternalUserAccount","user",internalAccount);
  }
View Full Code Here


  @RequestMapping(value="/internalUsersAccounts")
  public synchronized String internalUsersAccounts(ModelMap model) {

    InternalAccount internalAccount = new InternalAccount();

    //command object
    model.addAttribute("internalAccount", internalAccount);

    //return form view
View Full Code Here

  @RequestMapping(value="/findInternalAccount")
  public synchronized ModelAndView findAccountById(@ModelAttribute("internalAccount") InternalAccount account,
      BindingResult result) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("SystemAdminInternalAccount");
    InternalAccount accountbyid = internalAccountBO.findUserByid(account.getEmployeeId());
    modelAndView.addObject("accountbyid", accountbyid);
    return modelAndView;
  }
View Full Code Here

  @RequestMapping(value="/findInternalRequest")
  public synchronized ModelAndView findInternalRequest(@ModelAttribute("internalAccount") InternalAccount account,
      BindingResult result) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("SystemAdminInternalRequest");
    InternalAccount accountbyid = internalAccountBO.findUserByid(account.getEmployeeId());
    modelAndView.addObject("accountbyid", accountbyid);
    return modelAndView;
  }
View Full Code Here

    return modelAndView;
  }

  @RequestMapping("/SystemAdminCreateInternal")
  public synchronized ModelAndView showCreateInternalAccount() {
    return new ModelAndView("SystemAdminCreateInternalAccount", "command", new InternalAccount());
  }
View Full Code Here

  @RequestMapping(value="/displayInternalUsersAccounts")

  public synchronized ModelAndView listOfInternalUserAccounts() {
    ModelAndView modelAndView = new ModelAndView("SystemAdminInternalUserAccounts");
    List<InternalAccount> internalAccounts = internalAccountBO.getAllInternalUserAccounts();
    InternalAccount singleInternalAccount = new InternalAccount();
    modelAndView.addObject("singleInternalAccount", singleInternalAccount);
    modelAndView.addObject("internalAccounts", internalAccounts);
    return modelAndView;
  }
View Full Code Here

  @RequestMapping(value="/viewInternalUserAccount")

  public synchronized ModelAndView viewInternalUserAccount(@ModelAttribute("singleInternalAccount") InternalAccount internalAccount) {

    InternalAccount internalAccount1 = internalAccountBO.findUserByid(internalAccount.getEmployeeId());

    return new ModelAndView("SystemAdminViewInternalAccount","user",internalAccount1);
  }
View Full Code Here

  @RequestMapping(value="/updateInternalUserAccount")

  public synchronized ModelAndView showUpdateInternalUserAccount(@ModelAttribute("singleInternalAccount") InternalAccount internalAccount) {

    InternalAccount internalAccount1 = internalAccountBO.findUserByid(internalAccount.getEmployeeId());

    return new ModelAndView("SystemAdminUpdateInternalUserAccount","user",internalAccount1);
  }
View Full Code Here

TOP

Related Classes of edu.asu.securebanking.model.InternalAccount

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.