Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.ExternalUserTransaction


  }

  @RequestMapping(value="/externalUsersTransactions")
  public String externalUsers(ModelMap model) {

    ExternalUserTransaction user = new ExternalUserTransaction();

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

    //return form view
View Full Code Here


    InternalAccount currentuser = intBo.findUserByusername(name);

    if(currentuser.getDeptid() == 3){
      ModelAndView modelAndView = new ModelAndView("ExternalUserTransactionCreation");

      ExternalUserTransaction exttrans = new ExternalUserTransaction();
      exttrans.setStatus("Pending");
      modelAndView.addObject("exttrans", exttrans);
      modelAndView.addObject("currentuser", currentuser);

      return modelAndView;
    }else{
View Full Code Here

  @RequestMapping(value="/findExternalTransaction", method = RequestMethod.POST)
  public synchronized ModelAndView findExternalTransactionById(@ModelAttribute("transaction") ExternalUserTransaction transaction,
      BindingResult result) throws InternalException {
    ModelAndView modelAndView = new ModelAndView("FindExternalTransaction");
    ExternalUserTransaction transactionbyid = externalTransactionBO.findTransactionById(transaction.getTransId());
    modelAndView.addObject("transactionbyid", transactionbyid);
    return modelAndView;
  }
View Full Code Here

  public synchronized ModelAndView authorizetransactionbyid(@ModelAttribute("transactionbyid") ExternalUserTransaction transaction) {

    ModelAndView modelAndView = new ModelAndView("TransactionMonAuthTrans");


    ExternalUserTransaction transactionbyid = externalTransactionBO.findTransactionById(transaction.getTransId());

    transactionbyid.setStatus("Approved");;

    externalTransactionBO.update(transactionbyid);

    modelAndView.addObject("message", transaction.getTransId());
View Full Code Here

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

    if(currentuser.getDeptid() == 3){
      ModelAndView modelAndView = new ModelAndView("UpdateExternalTransaction");
      ExternalUserTransaction externalTransaction = externalTransactionBO.findTransactionById(transaction.getTransId());
      modelAndView.addObject("currentuser", currentuser);
      modelAndView.addObject("externalTransaction", externalTransaction);

      return modelAndView;
    }else{
View Full Code Here

    if(currentuser.getDeptid() == 3){
      ModelAndView modelAndView = new ModelAndView("ListExternalTransactions");
      List<ExternalUserTransaction> transactions = externalTransactionBO.getAllExternalUsersTransactions();
      modelAndView.addObject("transactions", transactions);
      ExternalUserTransaction transactionbyid = new ExternalUserTransaction();
      modelAndView.addObject("transactionbyid", transactionbyid);
      modelAndView.addObject("currentuser", currentuser);
      return modelAndView;
    }else{
      ModelAndView modelAndView = new ModelAndView("accessdenied");
View Full Code Here

    

      String name = principal.getName();
      ExternalAccount currentuser = externalAccountBO.findAccountByName(name);
    
     ExternalUserTransaction debit = new ExternalUserTransaction();
    
     debit.setUserId(currentuser.getUserid());
    
     debit.setAccessGranted(1);
    
     debit.setStatus("Pending");
    
     debit.setTransType("Debit");
    
     debit.setTransType("Debit");
      ModelAndView modelAndView = new ModelAndView("MerchantDebit");
      modelAndView.addObject("debit", debit);

      return modelAndView;
    }
View Full Code Here

    

      String name = principal.getName();
      ExternalAccount currentuser = externalAccountBO.findAccountByName(name);
    
     ExternalUserTransaction debit = new ExternalUserTransaction();
    
     debit.setUserId(currentuser.getUserid());
    
     debit.setAccessGranted(1);
    
     debit.setStatus("Pending");
    
     debit.setTransType("Credit");
    
     debit.setTransType("Credit");
      ModelAndView modelAndView = new ModelAndView("MerchantCredit");
      modelAndView.addObject("credit", debit);

      return modelAndView;
    }
View Full Code Here

    public synchronized ModelAndView transferMoney(Principal principal) {
    
     String name = principal.getName();
      ExternalAccount currentuser = externalAccountBO.findAccountByName(name);
    
     ExternalUserTransaction transfer = new ExternalUserTransaction();
    
     transfer.setUserId(currentuser.getUserid());
    
     transfer.setAccessGranted(1);
    
     transfer.setStatus("Pending");
    
     transfer.setTransType("Transfer");
      ModelAndView modelAndView = new ModelAndView("MerchantTransfer");
      modelAndView.addObject("transfer", transfer);

      return modelAndView;
    }
View Full Code Here

                           pkiBO.delete(publicKey);
                          
                      
                          // Create an External Transaction
                             
                              ExternalUserTransaction external = new ExternalUserTransaction();
                             
                              external.setAccessGranted(1);
                              external.setAmountInvolved(publicKey.getAmountInvolved());
                              external.setStatus("Approved");
                              external.setTransDetail(publicKey.getTransDetail());
                              external.setTransType("Debit");
                              external.setUserId(merchant.getUserid());
                             externalTransactionBO.save(external);

                         }
                       }
                     
View Full Code Here

TOP

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

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.