Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.InternalAccount


  }

  @RequestMapping(value="/deleteInternalUserAccount")
  public synchronized ModelAndView deleteInternalAccount(@ModelAttribute("accountbyid") InternalAccount internalAccount) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("SystemAdminInternalAccountDeleted");
    InternalAccount accountbyname = internalAccountBO.findUserByusername(internalAccount.getUsername());
    internalAccountBO.deleteUser(accountbyname);
    return modelAndView;
  }
View Full Code Here


  @Override
  public void delete(int employeeid) {
    // TODO Auto-generated method stub
    Session session = sessionFactory.getCurrentSession();
    InternalAccount user = (InternalAccount) session.get(InternalAccount.class, employeeid);
    if (user != null)
      session.delete(user);
   
    logger.info("Internal Account -- Deleted-- Employee Id " + employeeid);
View Full Code Here

   
    int size = list.size();
   
    for(int i=0;i<size;i++)
    {
      InternalAccount test = (InternalAccount) list.get(i);
     
     
   
     
     
      if(!(test.getDeptid()==100))
      {
       
        returnList.add(test);
      }
     
View Full Code Here

    else if (deptid == 0)
    {
      throw new InternalException("Please select a department!");
    }

    InternalAccount temp = (InternalAccount) query2.list().get(0);
   
    if (temp.getDeptid() == 100){
      throw new InternalException("Cannot transfer Corporate Level officials!");
    }
    else{
      Query query = session.getNamedQuery("findinternaluserbyidanddeptid");
      query.setParameter("employeeId", id);
View Full Code Here

    return new ModelAndView("createExternalAccount", "command", new ExternalAccount());
  }

  @RequestMapping("/createInternal")
  public ModelAndView showCreateInternalAccount() {
    return new ModelAndView("createInternalAccount", "command", new 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="/displayInternalUsersAccounts")

  public synchronized ModelAndView listOfInternalUserAccounts() {
    ModelAndView modelAndView = new ModelAndView("listInternalUserAccounts");
    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("accountbyid") InternalAccount internalAccount) {

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

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

  @RequestMapping(value="/updateInternalUserAccount")

  public ModelAndView showUpdateInternalUserAccount(@ModelAttribute("accountbyid") InternalAccount internalAccount) {

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

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

  @RequestMapping(value="/findInternalAccount")
  public synchronized ModelAndView findAccountById(@ModelAttribute("internalAccount") InternalAccount account,
      BindingResult result) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("findInternalAccount");
    InternalAccount accountbyid = internalAccountBO.findUserByid(account.getEmployeeId());
    modelAndView.addObject("accountbyid", accountbyid);
    return modelAndView;
  }
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.