Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.ExternalAccount


  @RequestMapping(value="/updateExternalUserAccount")

  public synchronized ModelAndView showUpdateExternalUserAccount(@ModelAttribute("singleExternalAccount") ExternalAccount externalAccount) {

    ExternalAccount externalAccount1 = externalAccountBO.findAccountByName(externalAccount.getUsername());

    return new ModelAndView("SystemAdminUpdateExternalUserAccount","user",externalAccount1);
  }
View Full Code Here



  @RequestMapping(value="/findExternalAccount")
  public synchronized ModelAndView findExternalAccount(@ModelAttribute("externalAccount") ExternalAccount account) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("SystemAdminExternalAccount");
    ExternalAccount accountbyname = externalAccountBO.findAccountByName(account.getUsername());
    if(accountbyname==null)
    {
      return new ModelAndView("SystemAdminUsernameNameNotFound");
    }
    modelAndView.addObject("accountbyname", accountbyname);
View Full Code Here

  }

  @RequestMapping(value="/findExternalRequest")
  public synchronized ModelAndView findExternalReques(@ModelAttribute("externalAccount") ExternalAccount account) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("SystemAdminExternalRequest");
    ExternalAccount accountbyname = externalAccountBO.findAccountByName(account.getUsername());
    if(accountbyname==null)
    {
      return new ModelAndView("SystemAdminUsernameNameNotFound");
    }
    modelAndView.addObject("accountbyname", accountbyname);
View Full Code Here


  @RequestMapping(value="/deleteExternalUserAccount")
  public synchronized ModelAndView deleteExternalAccount(@ModelAttribute("accountbyname") ExternalAccount externalAccount) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("SystemAdminExternalAccountDeleted");
    ExternalAccount accountbyname = externalAccountBO.findAccountByName(externalAccount.getUsername());
    externalAccountBO.delete(accountbyname);
    return modelAndView;
  }
View Full Code Here

  CreateInternalAccountBO intBo;


  @RequestMapping("/createExternal")
  public ModelAndView showCreateExternalAccount() {
    return new ModelAndView("createExternalAccount", "command", new ExternalAccount());
  }
View Full Code Here

    InternalAccount currentuser = intBo.findUserByusername(name);

    model.addAttribute("currentuser", currentuser);

    if(currentuser.getDeptid() == 3){
      ExternalAccount externalAccount = new ExternalAccount();

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

      //return form view
View Full Code Here

    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 3){
      ModelAndView modelAndView = new ModelAndView("ListExternalUserAccounts");
      List<ExternalAccount> externalAccounts = externalAccountBO.getAllExternalUserAccounts();
      ExternalAccount accountbyname = new ExternalAccount();
      modelAndView.addObject("accountbyname", accountbyname);
      modelAndView.addObject("externalAccounts", externalAccounts);
      modelAndView.addObject("currentuser", currentuser);
      return modelAndView;
    } else{
View Full Code Here

    String name = principal.getName();
    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 3){

      ExternalAccount externalAccount1 = externalAccountBO.findAccountByName(externalAccount.getUsername());
      ModelAndView modelAndView = new ModelAndView("ViewExternalAccount");

      modelAndView.addObject("currentuser", currentuser);
      modelAndView.addObject("user", externalAccount1);
View Full Code Here

    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 3){


      ExternalAccount externalAccount1 = externalAccountBO.findAccountByName(externalAccount.getUsername());
      ModelAndView modelAndView = new ModelAndView("UpdateExternalUserAccount");

      modelAndView.addObject("currentuser", currentuser);
      modelAndView.addObject("user", externalAccount1);
View Full Code Here

  @RequestMapping(value="/findExternalAccount")
  public synchronized ModelAndView findAccountById(@ModelAttribute("externalAccount") ExternalAccount account,
      BindingResult result) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("FindExternalAccount");
    ExternalAccount accountbyname = externalAccountBO.findAccountByName(account.getUsername());

    modelAndView.addObject("accountbyname", accountbyname);
    return modelAndView;
  }
View Full Code Here

TOP

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

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.