org.csapi.jr.se.am
Interface CreateVoucher

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

public interface CreateVoucher
extends Activity

This interface represents a CreateVoucher activity object.


Field Summary
 
Fields inherited from interface org.csapi.jr.se.Activity
ACTIVE_STATE, IDLE_STATE, INVALID_STATE
 
Method Summary
 void addCreateVoucherListener(CreateVoucherListener createVoucherListener)
          Adds a CreateVoucherListener which is interested in events generated by the CreateVoucher.
 void createVoucherReq(Address user, BalanceInfo amount)
          Invokes the createVoucherReq() method on the Parlay Gateway.
 AccountManager getAccountManager()
          Returns a reference to the AccountManager responsible for creation of the CreateVoucher.
 void removeCreateVoucherListener(CreateVoucherListener createVoucherListener)
          Removes a CreateVoucherListener which is no longer interested events generated by the CreateVoucher.
 
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 CreateVoucher.

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

addCreateVoucherListener

public void addCreateVoucherListener(CreateVoucherListener createVoucherListener)
Adds a CreateVoucherListener which is interested in events generated by the CreateVoucher.

Parameters:
createVoucherListener - A reference to the CreateVoucherListener which is to be added as a listener.

removeCreateVoucherListener

public void removeCreateVoucherListener(CreateVoucherListener createVoucherListener)
Removes a CreateVoucherListener which is no longer interested events generated by the CreateVoucher.

Parameters:
createVoucherListener - A reference to the CreateVoucherListener which is to be removed as a listener.

createVoucherReq

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

Throws:
PlatformException
java.lang.IllegalStateException
CommonException
UnknownSubscriberException
UnauthorizedApplicationException