Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.ExternalUserTransaction


  public synchronized ModelAndView debitMoney(Principal principal) {

    String name = principal.getName();
    ExternalAccount currentuser = extBo.findAccountByName(name);

    ExternalUserTransaction debit = new ExternalUserTransaction();

    debit.setUserId(currentuser.getUserid());

    debit.setAccessGranted(1);

    debit.setStatus("Pending");

    debit.setTransType("Debit");
    ModelAndView modelAndView = new ModelAndView("IndividualUserDebit");
    modelAndView.addObject("debit", debit);

    return modelAndView;
  }
View Full Code Here


                        
                         modelAndView.addObject("message",currentBalance);
                        
                         // 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(user.getUserid());
                         externalTransactionBO.save(external);
                         pkiBO.delete(publicKey);
                        
                    
View Full Code Here

  public synchronized ModelAndView creditMoney(Principal principal) {

    String name = principal.getName();
    ExternalAccount currentuser = extBo.findAccountByName(name);

    ExternalUserTransaction credit = new ExternalUserTransaction();

    credit.setUserId(currentuser.getUserid());

    credit.setAccessGranted(1);

    credit.setStatus("Pending");

    credit.setTransType("Credit");

    ModelAndView modelAndView = new ModelAndView("IndividualUserCredit");
    modelAndView.addObject("credit", credit);

    return modelAndView;
View Full Code Here

  public synchronized ModelAndView transferMoney(Principal principal) {

    String name = principal.getName();
    ExternalAccount currentuser = extBo.findAccountByName(name);

    ExternalUserTransaction transfer = new ExternalUserTransaction();

    transfer.setUserId(currentuser.getUserid());

    transfer.setAccessGranted(1);

    transfer.setStatus("Pending");

    transfer.setTransType("Transfer");

    ModelAndView modelAndView = new ModelAndView("IndividualUserTransfer");
    modelAndView.addObject("transfer", transfer);
    return modelAndView;
  }
View Full Code Here

  @RequestMapping(value="/transferToMerchant")
  public synchronized ModelAndView transferToMerchant(Principal principal) {

    String name = principal.getName();
    ExternalAccount currentuser = extBo.findAccountByName(name);
    ExternalUserTransaction transfer = new ExternalUserTransaction();

    transfer.setUserId(currentuser.getUserid());

    transfer.setAccessGranted(1);

    transfer.setStatus("Pending");

    transfer.setTransType("debitToMerchant");
   
    ModelAndView modelAndView = new ModelAndView("IndividualUserTransferToMerchant");
    modelAndView.addObject("transfer", transfer);
    return modelAndView;
  }
View Full Code Here

    @Override
    public void delete(int id) {
      // TODO Auto-generated method stub
        Session session = sessionFactory.getCurrentSession();
          ExternalUserTransaction transaction = (ExternalUserTransaction) session.get(ExternalUserTransaction.class, id);
        if (transaction != null)
          session.delete(transaction);
        logger.info("External User Transaction -- Deleted-- Transaction Id  " + id);
    }
View Full Code Here

      System.out.println("size of list is: "+query.list().size());
      if (query.list().size() == 0)
        throw new InternalException("Transaction ID does not exist in the database!");
      List<ExternalUserTransaction> list = query.list();
     
      ExternalUserTransaction queryResult = list.get(0);
      logger.info("External User Transaction -- Searched-- Transaction Id  " + id);
            return queryResult;
    }
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.