edu.cmu.mse.vault.client
Class VaultClient

java.lang.Object
  extended byedu.cmu.mse.vault.client.VaultClient

public class VaultClient
extends java.lang.Object

Author:
Soumya

Field Summary
static java.lang.String cfgFn
           
 
Constructor Summary
VaultClient()
           
 
Method Summary
 boolean addAccount(java.lang.String strCustomerId, java.lang.String strBalance)
          Is used to create a new account for an existing customer
 boolean addCustomer(java.lang.String firstName, java.lang.String lastName)
           
 boolean deposit(java.lang.String accountid, java.lang.String amountOfMoney, boolean deposit)
           
 boolean depositMoney(java.lang.String accountID, java.lang.String amount)
           
 boolean editCustomer(java.lang.String strCustomerId, java.lang.String firstName, java.lang.String lastName)
           
protected  void finalize()
           
static javax.naming.Context getInitialContext()
           
static void main(java.lang.String[] args)
           
 boolean showTransactionHistory(java.lang.String accountId)
           
 boolean transfer(java.lang.String sourceaccountid, java.lang.String destaccountid, java.lang.String amountOfMoney)
           
 boolean transferMoney(java.lang.String fromAccountID, java.lang.String toAccountID, java.lang.String amount)
           
 boolean withdrawMoney(java.lang.String accountID, java.lang.String amount)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cfgFn

public static final java.lang.String cfgFn
See Also:
Constant Field Values
Constructor Detail

VaultClient

public VaultClient()
Method Detail

main

public static void main(java.lang.String[] args)

showTransactionHistory

public boolean showTransactionHistory(java.lang.String accountId)

deposit

public boolean deposit(java.lang.String accountid,
                       java.lang.String amountOfMoney,
                       boolean deposit)

addCustomer

public boolean addCustomer(java.lang.String firstName,
                           java.lang.String lastName)

editCustomer

public boolean editCustomer(java.lang.String strCustomerId,
                            java.lang.String firstName,
                            java.lang.String lastName)

getInitialContext

public static javax.naming.Context getInitialContext()
                                              throws javax.naming.NamingException
Throws:
javax.naming.NamingException

addAccount

public boolean addAccount(java.lang.String strCustomerId,
                          java.lang.String strBalance)
Is used to create a new account for an existing customer

Parameters:
strCustomerId -
strBalance -
Returns:

transfer

public boolean transfer(java.lang.String sourceaccountid,
                        java.lang.String destaccountid,
                        java.lang.String amountOfMoney)

depositMoney

public boolean depositMoney(java.lang.String accountID,
                            java.lang.String amount)

withdrawMoney

public boolean withdrawMoney(java.lang.String accountID,
                             java.lang.String amount)

transferMoney

public boolean transferMoney(java.lang.String fromAccountID,
                             java.lang.String toAccountID,
                             java.lang.String amount)

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable