java.lang.Object | +--com.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
objType
- java.lang.ObjectcurrentUser
-
com.ibm.commerce.user.objects.UserAccessBeancommandContext
- CommandContextstoreID
- java.lang.IntegerECException
public NdModifiableIndexedCollection getOrderDiscountsFromTaskCommand(java.lang.Object objType, NdModifiableIndexedCollection inputDiscounts, CommandContext commandContext, java.lang.Integer storeId) throws ECException
objType
- java.lang.ObjectinputDiscounts
-
com.blazesoft.objects.java.NdModifiableIndexedCollectioncommandContext
- CommandContextstoreId
- java.lang.IntegerECException
public CatalogEntryAccessBean getProduct(OrderItemAccessBean item) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
item
- com.ibm.commerce.order.objects.OrderItemAccessBeanFinderException
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
item
- com.ibm.commerce.order.objects.OrderItemAccessBeanobjType
- java.lang.ObjectFinderException
java.rmi.RemoteException
javax.naming.NamingException
CreateException
public NdModifiableIndexedCollection getProductDiscountsFromTaskCommand(java.lang.Object objType, NdModifiableIndexedCollection inputDiscounts, CommandContext commandContext, java.lang.Integer storeId) throws ECException
objType
- java.lang.ObjectinputDiscounts
-
com.blazesoft.objects.java.NdModifiableIndexedCollectioncommandContext
- CommandContextstoreId
- java.lang.IntegerECException
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
storeId
- java.lang.Integercode
- java.lang.Stringcarrier
- java.lang.StringFinderException
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
partNumber
- java.lang.StringdN
- java.lang.StringFinderException
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
memberId
- java.lang.StringFinderException
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
catentryId
- java.lang.StringFinderException
java.rmi.RemoteException
javax.naming.NamingException
CreateException
public NdModifiableIndexedCollection getSortedOrderItemsByPrice(NdModifiableIndexedCollection orderItemABs) throws FinderException, java.rmi.RemoteException, javax.naming.NamingException, CreateException
FinderException
java.rmi.RemoteException
javax.naming.NamingException
CreateException