org.csapi.jr.se.cs
Interface ChargingManager

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

public interface ChargingManager
extends Service

This interface represents a ChargingManager.


Field Summary
 
Fields inherited from interface org.csapi.jr.se.Service
IN_SERVICE_STATE, OUT_OF_SERVICE_STATE
 
Method Summary
 void addChargingManagerListener(ChargingManagerListener chargingManagerListener)
          Adds a ChargingManagerListener which is interested in events generated by the ChargingManager.
 ChargingSession createChargingSession(java.lang.String sessionDescription, MerchantAccountID merchantAccount, Address user, CorrelationID correlationID)
          Invokes the createChargingSession() method on the Parlay Gateway and returns a reference to a transient interface.
 ChargingSession createSplitChargingSession(java.lang.String sessionDescription, MerchantAccountID merchantAccount, Address[] users, CorrelationID correlationID)
          Invokes the createSplitChargingSession() method on the Parlay Gateway and returns a reference to a transient interface.
 void removeChargingManagerListener(ChargingManagerListener chargingManagerListener)
          Removes a ChargingManagerListener which is no longer interested in events generated by the ChargingManager.
 
Methods inherited from interface org.csapi.jr.se.Service
addServiceStateChangeListener, getServiceState, removeServiceStateChangeListener
 

Method Detail

addChargingManagerListener

public void addChargingManagerListener(ChargingManagerListener chargingManagerListener)
Adds a ChargingManagerListener which is interested in events generated by the ChargingManager.

Parameters:
chargingManagerListener - A reference to the ChargingManagerListener which is to be added as a listener.

removeChargingManagerListener

public void removeChargingManagerListener(ChargingManagerListener chargingManagerListener)
Removes a ChargingManagerListener which is no longer interested in events generated by the ChargingManager.

Parameters:
chargingManagerListener - A reference to the ChargingManagerListener which is to be removed as a listener.

createChargingSession

public ChargingSession createChargingSession(java.lang.String sessionDescription,
                                             MerchantAccountID merchantAccount,
                                             Address user,
                                             CorrelationID correlationID)
                                      throws PlatformException,
                                             CommonException,
                                             InvalidUserException,
                                             InvalidAccountException
Invokes the createChargingSession() method on the Parlay Gateway and returns a reference to a transient interface.

Throws:
PlatformException
CommonException
InvalidUserException
InvalidAccountException

createSplitChargingSession

public ChargingSession createSplitChargingSession(java.lang.String sessionDescription,
                                                  MerchantAccountID merchantAccount,
                                                  Address[] users,
                                                  CorrelationID correlationID)
                                           throws PlatformException,
                                                  CommonException,
                                                  InvalidUserException,
                                                  InvalidAccountException
Invokes the createSplitChargingSession() method on the Parlay Gateway and returns a reference to a transient interface.

Throws:
PlatformException
CommonException
InvalidUserException
InvalidAccountException