Package edu.asu.securebanking.model

Examples of edu.asu.securebanking.model.ExternalAccount


public synchronized ModelAndView MerchantUserTransferSuccess(Principal principal) {
 
  ModelAndView modelAndView = new ModelAndView("MerchantUserTransferSuccess");
 
  ExternalAccount externalAccount =  externalAccountBO.findAccountByName(principal.getName());

  modelAndView.addObject("message", externalAccount.getCurrentBalance());

  return modelAndView;
}
View Full Code Here


  @RequestMapping(value="/creditCardRequest")

  public synchronized ModelAndView creditCardRequest(Principal principal) {

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

    // Query the credit card request stable to find the request for the account number
    CreditcardRequests creditCardCheck = ccreqsBo.checkForCreditCardNumber(currentuser.getAccountNo());

    //if user populate with row
    if(creditCardCheck != null)
    {
      ModelAndView modelAndView = new ModelAndView("IndividualUserCreditCardRequest");

      modelAndView.addObject("creditCard", creditCardCheck);

      return modelAndView;
    }
    //If no credit new request and add to credit card request
    else{


      CreditcardRequests creditCardNewRequest = new CreditcardRequests();

      creditCardNewRequest.setApproved("no");

      creditCardNewRequest.setAccountNo(currentuser.getAccountNo());

      ccreqsBo.save(creditCardNewRequest);

      ModelAndView modelAndView = new ModelAndView("IndividualUserCreditCardRequest");
View Full Code Here

  public synchronized ModelAndView RequestCertificate(Principal principal) {
   
    ModelAndView modelAndView = new ModelAndView("MerchantUserTransferSuccess");
   
    ExternalAccount externalAccount =  externalAccountBO.findAccountByName(principal.getName());

    modelAndView.addObject("message", externalAccount.getCurrentBalance());

    return modelAndView;
  }
View Full Code Here

  @RequestMapping(value="/externalUsersNewRequests")
  public synchronized ModelAndView externalUsers(ModelMap model) {

    ModelAndView modelAndView = new ModelAndView("SystemAdminListExternalUserRequests");
    List<ExternalAccount> externalAccounts = externalAccountBO.getAllExternalUserAccounts();
    ExternalAccount singleExternalAccount = new ExternalAccount();
    modelAndView.addObject("singleExternalAccount", singleExternalAccount);
    modelAndView.addObject("externalAccounts", externalAccounts);
    return modelAndView;

  }
View Full Code Here

  @RequestMapping(value="/authorizeExtUserRequest")
  public synchronized ModelAndView authorizeUserRequest(@ModelAttribute("singleExternalAccount") ExternalAccount externalUserAccount,
      BindingResult result) {

    ModelAndView modelAndView = new ModelAndView("genericsuccess");
    ExternalAccount externalAccount = externalAccountBO.findAccountByName(externalUserAccount.getUsername());
    externalAccount.setAuthorized(true);
    externalAccountBO.update(externalAccount);
    modelAndView.addObject("message", "Customer Account Activated!");
    return modelAndView;

  }
View Full Code Here

  @RequestMapping(value="/assignTypeExternalUserAccount")

  public synchronized ModelAndView showUpdateExternalUserAccount(@ModelAttribute("singleExternalAccount") ExternalAccount externalUserAccount,BindingResult result) {

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

    return new ModelAndView("AssignTypeExternalUserAccount","user",externalAccount);
  }
View Full Code Here

  // External User Account Functionalities.


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

  }

  @RequestMapping(value="/externalUsersAccounts")
  public synchronized String externalUsersAccounts(ModelMap model) {

    ExternalAccount externalAccount = new ExternalAccount();

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

    //return form view
View Full Code Here

  @RequestMapping(value="/displayExternalUsersAccounts")

  public synchronized ModelAndView listOfExternalUserAccounts() {
    ModelAndView modelAndView = new ModelAndView("SystemAdminExternalUserAccounts");
    List<ExternalAccount> externalAccounts = externalAccountBO.getAllExternalUserAccounts();
    ExternalAccount singleExternalAccount = new ExternalAccount();

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

  @RequestMapping(value="/viewExternalUserAccount")

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

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

    return new ModelAndView("SystemAdminViewExternalAccount","user",externalAccount1);
  }
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.