public class EventMapperHelper
extends java.lang.Object
id
which will be very specific to WebSphere Commerce.
id
make sense only in WebSphere Commerce System. In non-WebSphere Commerce system we will be sending
name
rather than id. The functions to get the name
of an item given its id
can be given in EventMapperHelper
classModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The full class name for this interface file.
|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
EventMapperHelper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
echoValue(java.lang.String input)
Echoes the input value to be used by the replace action
|
java.lang.String |
getAccountHierarchy(java.lang.String accountId,
java.lang.String storeId)
Return the account name in a hierarchial way delimited by '|'
|
java.lang.Long |
getAccountId(java.lang.String contractId,
java.lang.String storeId)
Returns the Account Id for a contract identified by
contractId , if the store is
a "B2B" Store. |
java.lang.String |
getCatEntryId(java.lang.String orderItemId)
Returns the Category Entry Id of an order item identified by
orderItemId |
java.lang.String |
getChannelName(java.lang.String channelId)
Returns the channel name associated with the channel id
|
java.lang.String |
getContractId(java.lang.String orderItemId,
java.lang.String storeId)
Returns the ContractId for an order Item identified by
orderItemId , if the store is
a "B2B" Store. |
java.lang.String |
getContractName(java.lang.String contractId,
java.lang.String storeId)
Returns the Contract Name for a contract identified by
contractId , if the store is
a "B2B" Store. |
java.lang.String |
getCSRId(java.lang.String userId)
Gets the login id of the CSR identified by
userId |
java.lang.String |
getCSRName(java.lang.String userId)
Gets the name of the CSR identified by
userId |
java.lang.String[] |
getCSRTeams(java.lang.String csrId)
Returns an array of teams to which the CSR belongs
|
java.lang.String |
getListPrice(java.lang.String catEntryId,
java.lang.String currency)
Returns the list price for a catalog entry identified by
catEntryId in the specified currency. |
java.lang.String |
getMasterCategoryId(java.lang.String storeId,
java.lang.String catEntryId)
Return the master category id of the catalog entry based on the master
catalog of the store A product could belong to a master catalog and
different sales catalogs.
|
org.w3c.dom.Node |
getOrderPromotions(java.lang.String orderId)
Returns the document fragment consisting of all the promotions associated
with the order as required by the external CBE.
|
java.lang.String |
getOrderType(java.lang.String orderId)
Return the type of this order (Whether order or quote)
|
java.lang.String |
getPrice(java.lang.String orderItemId)
Returns the price for an Order Item identified by
orderItemId . |
java.lang.String |
getProductName(java.lang.String catEntryId)
Return the Product Name of a Category Entry identified by
catEntryId |
java.lang.String |
getProductPartNumber(java.lang.String catEntryId)
Return the Product Part Number of a Category Entry identified by
catEntryId |
java.lang.String |
getPromotionCode(java.lang.Integer promoId)
Returns the promotion code associated with a promotion identified by
promoId |
java.lang.String |
getQuantity(java.lang.String orderItemId)
Returns the Quantity of an order item identified by
orderItemId |
java.lang.String |
getStoreTye(java.lang.String storeId)
Returns the storeType of the store identified by
storeId . |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.String getStoreTye(java.lang.String storeId)
storeId
.storeId
- public java.lang.String[] getCSRTeams(java.lang.String csrId)
csrId
- The Id of the Customer Service Representative (CSR)public java.lang.String getChannelName(java.lang.String channelId)
channelId
- The channel Idpublic java.lang.String getMasterCategoryId(java.lang.String storeId, java.lang.String catEntryId)
Catalog Type(Catalog ID) | Category Name(Category ID) |
Master Catalog(10101) | Coffee Makers(10125) |
Sales Catalog(10151) | Coffee and Espresso Makers(10128) |
storeId
- store Id to which the catalog entry belongscatEntryId
- catalog entry ID of the productpublic java.lang.String getAccountHierarchy(java.lang.String accountId, java.lang.String storeId)
accountId
- storeId
- public java.lang.String getOrderType(java.lang.String orderId)
orderId
- public org.w3c.dom.Node getOrderPromotions(java.lang.String orderId)
orderId
- The order id for which promotions should be looked uppublic java.lang.String getPromotionCode(java.lang.Integer promoId)
promoId
promoId
- The Promotion Idpublic java.lang.String echoValue(java.lang.String input)
input
- public java.lang.String getQuantity(java.lang.String orderItemId)
orderItemId
orderItemId
- public java.lang.String getCatEntryId(java.lang.String orderItemId)
orderItemId
orderItemId
- public java.lang.String getProductPartNumber(java.lang.String catEntryId)
catEntryId
catEntryId
- public java.lang.String getProductName(java.lang.String catEntryId)
catEntryId
catEntryId
- public java.lang.String getContractId(java.lang.String orderItemId, java.lang.String storeId)
orderItemId
, if the store is
a "B2B" Store. Otherwise returns null
orderItemId
- storeId
- public java.lang.String getContractName(java.lang.String contractId, java.lang.String storeId)
contractId
, if the store is
a "B2B" Store. Otherwise returns null
contractId
- storeId
- public java.lang.Long getAccountId(java.lang.String contractId, java.lang.String storeId)
contractId
, if the store is
a "B2B" Store. Otherwise returns null
contractId
- storeId
- public java.lang.String getPrice(java.lang.String orderItemId)
orderItemId
.orderItemId
- The order item idpublic java.lang.String getListPrice(java.lang.String catEntryId, java.lang.String currency)
catEntryId
in the specified currency.catEntryId
- The CatEntry Idcurrency
- public java.lang.String getCSRName(java.lang.String userId)
userId
userId
- public java.lang.String getCSRId(java.lang.String userId)
userId
userId
-