|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectibilling.client.TransformationContext
public class TransformationContext
Helper class used to resolve references (convert object to ids and ids back to objects) during object to xml and xml to object conversion processing
| Field Summary | |
|---|---|
private java.util.Map<java.lang.Integer,AssetTransaction> |
assetTransactions
The asset transactions. |
private java.util.Map<java.lang.Integer,CustomerAccount> |
customerAccounts
The customer accounts. |
private java.util.Map<java.lang.Integer,PaymentOption> |
paymentOptions
The payment options. |
private java.util.Map<java.lang.Integer,PaymentPlan> |
paymentPlans
The payment plans. |
private java.util.Map<java.lang.Integer,RevenueTransaction> |
revenueTransactions
The revenue transactions. |
| Constructor Summary | |
|---|---|
TransformationContext()
Instantiates a new transformation context. |
|
TransformationContext(SessionContext sessionContext)
/** Instantiates a new transformation context. |
|
| Method Summary | |
|---|---|
private void |
addAssetTransactionElement(ElementFacade root,
AssetTransaction transaction)
Adds the asset transaction element. |
private void |
addPaymentOptionElement(ElementFacade root,
PaymentOption paymentOption)
Adds the payment option element. |
private void |
addPaymentPlanElement(ElementFacade root,
PaymentPlan paymentPlan)
Adds the payment plan element. |
private void |
addRevenueTransactionElement(ElementFacade root,
RevenueTransaction transaction)
Adds the revenue transaction element. |
private void |
checkAndReplaceAssetTransaction(AssetTransaction clientObject)
|
private void |
checkAndReplaceCustomerAccount(CustomerAccount clientObject)
|
private void |
checkAndReplacePaymentOption(PaymentOption clientObject)
|
private void |
checkAndReplacePaymentPlan(PaymentPlan clientObject)
|
private void |
checkAndReplaceRevenueTransaction(RevenueTransaction clientObject)
|
java.util.Map<java.lang.String,java.lang.Object> |
deserealizeQueryParameters(ElementFacade facade)
Deserealize query parameters. |
java.util.List<ClientObject> |
deserializeList(ElementFacade facade,
boolean isQueryResponse)
Deserialize list. |
void |
deserializeMapConfig(ElementFacade facade,
java.util.Map<java.lang.String,java.lang.Object> config)
Deserialize config parameters |
AssetTransaction |
getAssetTransaction(ElementFacade facade,
java.lang.String attributeName)
Gets the asset transaction. |
CustomerAccount |
getCustomerAccount(ElementFacade facade,
java.lang.String attributeName)
Gets the customer account. |
java.lang.Integer |
getMerchantAccountCode(ElementFacade facade)
Gets the merchant account code. |
java.lang.String |
getPassword(ElementFacade facade)
Gets the password. |
PaymentOption |
getPaymentOption(ElementFacade facade,
java.lang.String attributeName)
Gets the payment option. |
PaymentPlan |
getPaymentPlan(ElementFacade facade,
java.lang.String attributeName)
Gets the payment plan. |
java.lang.String |
getQueryName(ElementFacade facade)
Gets the query name. |
RevenueTransaction |
getRevenueTransaction(ElementFacade facade,
java.lang.String attributeName)
Gets the revenue transaction. |
boolean |
isQueryRequest(ElementFacade facade)
Checks if is query request. |
ElementFacade |
serealizeQuery(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.util.Map<java.lang.String,java.lang.Object> config)
Serealize query. |
ElementFacade |
serializeList(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.util.List<ClientObject> list,
java.util.Map<java.lang.String,java.lang.Object> config)
Serialize list. |
private java.util.List<CustomerAccount> |
takeCustomerAccounts()
Gets the customer accounts. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.Map<java.lang.Integer,CustomerAccount> customerAccounts
private java.util.Map<java.lang.Integer,PaymentOption> paymentOptions
private java.util.Map<java.lang.Integer,RevenueTransaction> revenueTransactions
private java.util.Map<java.lang.Integer,AssetTransaction> assetTransactions
private java.util.Map<java.lang.Integer,PaymentPlan> paymentPlans
| Constructor Detail |
|---|
public TransformationContext()
public TransformationContext(SessionContext sessionContext)
sessionContext - | Method Detail |
|---|
public ElementFacade serializeList(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.util.List<ClientObject> list,
java.util.Map<java.lang.String,java.lang.Object> config)
merchantAccountCode - the merchant account codepassword - the passwordlist - the listconfig - the config
public java.util.List<ClientObject> deserializeList(ElementFacade facade,
boolean isQueryResponse)
facade - the facadeisQueryResponse - the is query response
public void deserializeMapConfig(ElementFacade facade,
java.util.Map<java.lang.String,java.lang.Object> config)
facade - ElementFacadeconfig - Map
public ElementFacade serealizeQuery(java.lang.Integer merchantAccountCode,
java.lang.String password,
java.lang.String queryName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.util.Map<java.lang.String,java.lang.Object> config)
merchantAccountCode - the merchant account codepassword - the passwordqueryName - the query nameparameters - the parameters
public java.util.Map<java.lang.String,java.lang.Object> deserealizeQueryParameters(ElementFacade facade)
facade - the facade
public java.lang.Integer getMerchantAccountCode(ElementFacade facade)
facade - the facade
public java.lang.String getPassword(ElementFacade facade)
facade - the facade
public java.lang.String getQueryName(ElementFacade facade)
facade - the facade
public boolean isQueryRequest(ElementFacade facade)
facade - the facade
public CustomerAccount getCustomerAccount(ElementFacade facade,
java.lang.String attributeName)
facade - the facadeattributeName - the attribute name
public PaymentOption getPaymentOption(ElementFacade facade,
java.lang.String attributeName)
facade - the facadeattributeName - the attribute name
public RevenueTransaction getRevenueTransaction(ElementFacade facade,
java.lang.String attributeName)
facade - the facadeattributeName - the attribute name
public AssetTransaction getAssetTransaction(ElementFacade facade,
java.lang.String attributeName)
facade - the facadeattributeName - the attribute name
public PaymentPlan getPaymentPlan(ElementFacade facade,
java.lang.String attributeName)
facade - the facadeattributeName - the attribute name
private java.util.List<CustomerAccount> takeCustomerAccounts()
private void addPaymentOptionElement(ElementFacade root,
PaymentOption paymentOption)
root - the rootpaymentOption - the payment option
private void addPaymentPlanElement(ElementFacade root,
PaymentPlan paymentPlan)
root - the rootpaymentPlan - the payment plan
private void addRevenueTransactionElement(ElementFacade root,
RevenueTransaction transaction)
root - the roottransaction - the transaction
private void addAssetTransactionElement(ElementFacade root,
AssetTransaction transaction)
root - the roottransaction - the transactionprivate void checkAndReplaceCustomerAccount(CustomerAccount clientObject)
clientObject - private void checkAndReplacePaymentOption(PaymentOption clientObject)
clientObject - private void checkAndReplacePaymentPlan(PaymentPlan clientObject)
clientObject - private void checkAndReplaceRevenueTransaction(RevenueTransaction clientObject)
clientObject - private void checkAndReplaceAssetTransaction(AssetTransaction clientObject)
clientObject -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||