java.lang.Objectcom.ibm.commerce.discount.rules.MiscHelper
This is a Helper for addressing Blaze's bugs, privoding some utility methods which used by Blaze rule project.
Field Summary | |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
MiscHelper() Constructor for MiscHelper. |
Method Summary | |
NdModifiableIndexedCollection | getCategories(java.lang.Object objType, OrderItemAccessBean item) Return an Array of all CatalogGroupAccessBean which associated with this order item. |
java.lang.Long | getCatEntryId(java.lang.String partNumber, java.lang.String dN) Return catentry ID in Long type for Blaze rule engine. |
java.lang.String | getDNByCatentryId(java.lang.String catentryId) Return owner's distinguished name (DN) of a catentry ID for Blaze rule engine. |
java.lang.String | getDNByMemberId(java.lang.String memberId) Return distinguished name (DN) of a member ID for Blaze rule engine. |
NdModifiableIndexedCollection | getMemberGroups(java.lang.Object objType, UserAccessBean currentUser, CommandContext commandContext, java.lang.Integer storeID) Return all the segments and convert to Blaze NdModifiableIndexedCollection. |
NdModifiableIndexedCollection | getOrderDiscountsFromTaskCommand(java.lang.Object objType, NdModifiableIndexedCollection inputDiscounts, CommandContext commandContext, java.lang.Integer storeId) Return order level discounts from task command and convert to Blaze collection. |
CatalogEntryAccessBean | getProduct(OrderItemAccessBean item) Return a catalogEntryAccessBean which specifies the product. |
NdModifiableIndexedCollection | getProductDiscountsFromTaskCommand(java.lang.Object objType, NdModifiableIndexedCollection inputDiscounts, CommandContext commandContext, java.lang.Integer storeId) Return product level discounts from task command and convert to Blaze collection. |
java.lang.String | getShipModeId(java.lang.Integer storeId, java.lang.String code, java.lang.String carrier) Return ship mode ID in string type for Blaze rule engine. |
NdModifiableIndexedCollection | getSortedOrderItemsByPrice(NdModifiableIndexedCollection orderItemABs) Return a Blaze dynamic array of OrderItemAccessBean sorted by OrderItem's price. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public MiscHelper()
Method Detail |
public NdModifiableIndexedCollection getMemberGroups(java.lang.Object objType, UserAccessBean currentUser, CommandContext commandContext, java.lang.Integer storeID) throws ECException
public NdModifiableIndexedCollection getOrderDiscountsFromTaskCommand(java.lang.Object objType, NdModifiableIndexedCollection inputDiscounts, CommandContext commandContext, java.lang.Integer storeId) throws ECException
public CatalogEntryAccessBean getProduct(OrderItemAccessBean item) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
public NdModifiableIndexedCollection getCategories(java.lang.Object objType, OrderItemAccessBean item) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
public NdModifiableIndexedCollection getProductDiscountsFromTaskCommand(java.lang.Object objType, NdModifiableIndexedCollection inputDiscounts, CommandContext commandContext, java.lang.Integer storeId) throws ECException
public java.lang.String getShipModeId(java.lang.Integer storeId, java.lang.String code, java.lang.String carrier) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
public java.lang.Long getCatEntryId(java.lang.String partNumber, java.lang.String dN) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
public java.lang.String getDNByMemberId(java.lang.String memberId) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
public java.lang.String getDNByCatentryId(java.lang.String catentryId) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
public NdModifiableIndexedCollection getSortedOrderItemsByPrice(NdModifiableIndexedCollection orderItemABs) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.