|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecebs.rtd.enabler.TransactionController
public class TransactionController
Carries out operations that interact with a presented CM,
asynchronously. Only one operation can be carried out at a time.
Attempting to start another operation when one is in progress
will result in an IllegalStateException
being thrown.
The operation that was being executed will continue if this
situation occurs.
Method Summary | |
---|---|
void |
addStoredUse(AddStoredUseRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The DEDUCT JOURNEYS/PASSES function can be called by the APPLICATION to request the RTD SERVER deducts a number of stored passes from an ITSO TYP22 product, or a number of journeys from an ITSO TYP23 or TYP24 product. |
void |
addStrValue(AddSTRRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The ADD STR VALUE function can be called by the APPLICATION to request the RTD SERVER adds or credits value to the STR Product of the specified CM . |
void |
cancelRequest(String requestId,
ITransactionControllerCallback listener)
Cancels a previously registered request. |
void |
deductStoredUse(DeductStoredUseRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The ADD JOURNEYS/PASSES function can be called by the APPLICATION to request the RTD SERVER adds a number of stored passes to an ITSO TYP22 product, or a number of journeys to an ITSO TYP23 or TYP24 product. |
void |
deductStrValue(DeductSTRRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The DEDUCT STR VALUE function can be called by the APPLICATION to request the RTD SERVER deduct or debit value from the STR Product of the specified CM . |
void |
deleteProduct(DeleteProductRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The DELETE PRODUCT function is called by the APPLICATION to request the RTD SERVER deletes one or more products from the CM. |
static ITransactionController |
getInstance()
Get an instance of ITransactionController . |
void |
loadProduct(LoadProductRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The LOAD PRODUCT function is called by the application to request a Product from the RTD SERVER and load it onto the specified CM. |
void |
performPendingRequests(ITransactionControllerCallback callback)
The PERFORM PENDING REQUESTS function is called by the application to download one or more previously requested product loads and/or modifications. |
void |
performPendingRequests(String cardId,
CardType cardType,
ITransactionControllerCallback callback)
The PERFORM PENDING REQUESTS function is called by the application to download one or more previously requested product loads and/or modifications. |
void |
performPendingRequests(String requestId,
ITransactionControllerCallback callback)
The PERFORM PENDING REQUESTS function is called by the application to download one or more previously requested product loads and/or modifications. |
void |
performPendingRequests(String requestId,
String cardId,
CardType cardType,
ITransactionControllerCallback callback)
The PERFORM PENDING REQUESTS function is called by the application to download one or more previously requested product loads and/or modifications. |
void |
queryStatus(String requestId,
QueryMode mode,
ITransactionControllerCallback listener)
Get details about the requests handled during the last download involving the CM with the specified Id |
void |
updatePassExpiryDate(UpdatePassExpiryDateRequest product,
DownloadMode mode,
ITransactionControllerCallback callback)
The UPDATE PASS EXPIRY DATE function can be called by the APPLICATION to request the RTD SERVER updates the current pass expiry date of a ITSO TYP22 product. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ITransactionController getInstance()
ITransactionController
. The instance returned will be
appropriate for the platform associated with the initialised ConfigManager
.
Note that the instance is a singleton.
ITransactionController
public void addStoredUse(AddStoredUseRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
addStoredUse
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void deductStoredUse(DeductStoredUseRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
deductStoredUse
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void addStrValue(AddSTRRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
addStrValue
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void deductStrValue(DeductSTRRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
deductStrValue
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void deleteProduct(DeleteProductRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
deleteProduct
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void loadProduct(LoadProductRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
loadProduct
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void updatePassExpiryDate(UpdatePassExpiryDateRequest product, DownloadMode mode, ITransactionControllerCallback callback)
ITransactionController
updatePassExpiryDate
in interface ITransactionController
product
- An instance containing the details of the operation to be carried outmode
- Specifies what to do, i.e. just register, register and download, etccallback
- Callback used to inform the application on the progress of the operationpublic void performPendingRequests(ITransactionControllerCallback callback)
ITransactionController
performPendingRequests
in interface ITransactionController
callback
- Callback used to inform the application on the progress of the operationpublic void performPendingRequests(String requestId, ITransactionControllerCallback callback)
ITransactionController
performPendingRequests
in interface ITransactionController
requestId
- ID of a specific request that should be completedcallback
- Callback used to inform the application on the progress of the operationpublic void performPendingRequests(String cardId, CardType cardType, ITransactionControllerCallback callback)
ITransactionController
performPendingRequests
in interface ITransactionController
cardId
- ID of a specific card to perform pending requests forcardType
- Type of card to perform pending requests forcallback
- Callback used to inform the application on the progress of the operationpublic void performPendingRequests(String requestId, String cardId, CardType cardType, ITransactionControllerCallback callback)
ITransactionController
performPendingRequests
in interface ITransactionController
requestId
- ID of a specific request that should be completedcardId
- ID of a specific card to perform pending requests forcardType
- Type of card to perform pending requests forcallback
- Callback used to inform the application on the progress of the operationpublic void queryStatus(String requestId, QueryMode mode, ITransactionControllerCallback listener)
ITransactionController
queryStatus
in interface ITransactionController
requestId
- ID that is of interestlistener
- Used to pass back the outcome of the operation asynchronouslypublic void cancelRequest(String requestId, ITransactionControllerCallback listener)
ITransactionController
cancelRequest
in interface ITransactionController
requestId
- ID of the request to be cancelledlistener
- Used to pass back the outcome of the operation asynchronously
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |