org.csapi.jr.se.am
Interface UpdateBalance

All Superinterfaces:
Activity, CsapiInterface, java.io.Serializable

public interface UpdateBalance
extends Activity

This interface represents a UpdateBalance activity object.


Field Summary
 
Fields inherited from interface org.csapi.jr.se.Activity
ACTIVE_STATE, IDLE_STATE, INVALID_STATE
 
Method Summary
 void addUpdateBalanceListener(UpdateBalanceListener updateBalanceListener)
          Adds a UpdateBalanceListener which is interested in events generated by the UpdateBalance.
 AccountManager getAccountManager()
          Returns a reference to the AccountManager responsible for creation of the UpdateBalance.
 void removeUpdateBalanceListener(UpdateBalanceListener updateBalanceListener)
          Removes a UpdateBalanceListener which is no longer interested events generated by the UpdateBalance.
 void updateBalanceReq(Address user, boolean debit, BalanceInfo amount, int period)
          Invokes the updateBalanceReq() method on the Parlay Gateway.
 
Methods inherited from interface org.csapi.jr.se.Activity
addActivityStateChangeListener, getState, removeActivityStateChangeListener
 

Method Detail

getAccountManager

public AccountManager getAccountManager()
Returns a reference to the AccountManager responsible for creation of the UpdateBalance.

Returns:
A reference to the AccountManager responsible for creation of the UpdateBalance.

addUpdateBalanceListener

public void addUpdateBalanceListener(UpdateBalanceListener updateBalanceListener)
Adds a UpdateBalanceListener which is interested in events generated by the UpdateBalance.

Parameters:
updateBalanceListener - A reference to the UpdateBalanceListener which is to be added as a listener.

removeUpdateBalanceListener

public void removeUpdateBalanceListener(UpdateBalanceListener updateBalanceListener)
Removes a UpdateBalanceListener which is no longer interested events generated by the UpdateBalance.

Parameters:
updateBalanceListener - A reference to the UpdateBalanceListener which is to be removed as a listener.

updateBalanceReq

public void updateBalanceReq(Address user,
                             boolean debit,
                             BalanceInfo amount,
                             int period)
                      throws PlatformException,
                             java.lang.IllegalStateException,
                             CommonException,
                             UnknownSubscriberException,
                             UnauthorizedApplicationException
Invokes the updateBalanceReq() method on the Parlay Gateway.

Throws:
PlatformException
java.lang.IllegalStateException
CommonException
UnknownSubscriberException
UnauthorizedApplicationException