Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.InternalAccount


  @RequestMapping(value="/updateInternalUserTransaction")
  public synchronized ModelAndView updatetransaction(@ModelAttribute("internalTransaction") InternalUserTransaction transaction,
      BindingResult result, Principal principal) {
    String name = principal.getName();
    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 2){
      boolean res;
      String errors = "";
     
      res = StringValidator.inputvalidation(transaction.getDescription(), "genpattern");
      if(!res){
View Full Code Here


  @RequestMapping(value="/displaytransactions")

  public synchronized ModelAndView listOfUTransactions(Principal principal) {
    String name = principal.getName();
    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 2){
      ModelAndView modelAndView = new ModelAndView("ITlistInternalTransactions");
      List<InternalUserTransaction> transactions = transactionBO.getDeptInternalUserTransactions(2); //2:IT dept
      System.out.println(transactions.listIterator());
      modelAndView.addObject("currentuser", currentuser);
      modelAndView.addObject("transactions", transactions);
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.