com.ibm.commerce.likeminds
Class LikeMindsConfiguration

java.lang.Object
  |
  +--com.ibm.commerce.likeminds.LikeMindsConfiguration

public class LikeMindsConfiguration
extends java.lang.Object

LikeMinds configuration information class. Use static method singleton to obtain the singleton instance of this class.


Field Summary
static java.lang.String ATTR_VALUE_LIKEMINDS
           
static java.lang.String BESTBEt_ORDER
          The LikeMinds bestbet order.
static java.lang.String CLICKSTREAM_TYPE
          The LikeMinds ClickStreamEngine type.
static java.lang.String CONFIDENCE_ORDER
          The LikeMinds confidence order.
static java.lang.String COPYRIGHT
           
static java.lang.Integer DEFAULT_STORE_ID
          The ID of the default store in WCS.
static java.lang.String ITEM_AFFINITY_TYPE
          The LikeMinds ItemAffinityEngine type.
static java.lang.String ITEM_ORDER
          The LikeMinds item order.
static java.lang.String PRDUCT_MATCHING_TYPE
          The LikeMinds ProductMatchingEngine type.
static java.lang.String PREDICTION_ORDER
          The LikeMinds prediction order.
static java.lang.String PREFERENCE_TYPE
          The LikeMinds PreferenceEngine type.
static java.lang.String PURCHASE_TYPE
          The LikeMinds PurchaseEngine type.
static java.lang.String WORSTBET_ORDER
          The LikeMinds worstbet order.
 
Constructor Summary
protected LikeMindsConfiguration()
          Private default constructor.
 
Method Summary
 java.lang.String[] getAllWCSExternalEvents(java.lang.Integer storeId, java.lang.String txSetName)
          Returns all the event names associated with the specified store and transaction set name.
 LikeMindsInfo[] getLikeMindsInfo(java.lang.Integer storeId, java.lang.String engineType)
          Returns an array of LikeMindsInfo objects associated with the specified store and engine type.
 java.lang.Integer getTransactionTypeId(java.lang.Integer storeId, java.lang.String eventName, java.lang.String txSetName)
          Returns the transaction type identifier associated with the specified store, WCS event name and transaction set name.
static LikeMindsConfiguration singleton()
          Returns the singleton LikeMindsConfiguration object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_VALUE_LIKEMINDS

public static final java.lang.String ATTR_VALUE_LIKEMINDS

BESTBEt_ORDER

public static final java.lang.String BESTBEt_ORDER
The LikeMinds bestbet order.

CLICKSTREAM_TYPE

public static final java.lang.String CLICKSTREAM_TYPE
The LikeMinds ClickStreamEngine type. If your LikeMinds server uses this type, the LMENGINETYPE column of LMSERVER must match this string.

CONFIDENCE_ORDER

public static final java.lang.String CONFIDENCE_ORDER
The LikeMinds confidence order.

COPYRIGHT

public static final java.lang.String COPYRIGHT

DEFAULT_STORE_ID

public static final java.lang.Integer DEFAULT_STORE_ID
The ID of the default store in WCS.

ITEM_AFFINITY_TYPE

public static final java.lang.String ITEM_AFFINITY_TYPE
The LikeMinds ItemAffinityEngine type. If your LikeMinds server uses this type, the LMENGINETYPE column of LMSERVER must match this string.

ITEM_ORDER

public static final java.lang.String ITEM_ORDER
The LikeMinds item order.

PRDUCT_MATCHING_TYPE

public static final java.lang.String PRDUCT_MATCHING_TYPE
The LikeMinds ProductMatchingEngine type. If your LikeMinds server uses this type, the LMENGINETYPE column of LMSERVER must match this string.

PREDICTION_ORDER

public static final java.lang.String PREDICTION_ORDER
The LikeMinds prediction order.

PREFERENCE_TYPE

public static final java.lang.String PREFERENCE_TYPE
The LikeMinds PreferenceEngine type. If your LikeMinds server uses this type, the LMENGINETYPE column of LMSERVER must match this string.

PURCHASE_TYPE

public static final java.lang.String PURCHASE_TYPE
The LikeMinds PurchaseEngine type. If your LikeMinds server uses this type, the LMENGINETYPE column of LMSERVER must match this string.

WORSTBET_ORDER

public static final java.lang.String WORSTBET_ORDER
The LikeMinds worstbet order.
Constructor Detail

LikeMindsConfiguration

protected LikeMindsConfiguration()
Private default constructor.
Method Detail

getAllWCSExternalEvents

public java.lang.String[] getAllWCSExternalEvents(java.lang.Integer storeId,
                                                  java.lang.String txSetName)
                                           throws ConfigException
Returns all the event names associated with the specified store and transaction set name. Exception may be thrown when an irrecoverable error is detected. It is expected that all LikeMinds listeners should unregister themself from the WCSExternalEventSource when it happens to avoid unncessary events being forwarded.
Parameters:
storeId - The store identifier
txSetName - Name of the transaction set
Returns:
An array of event names. The array may be of 0 size if there is no relevant information.
Throws:
ConfigException - Configuration exception

getLikeMindsInfo

public LikeMindsInfo[] getLikeMindsInfo(java.lang.Integer storeId,
                                        java.lang.String engineType)
                                 throws ConfigException
Returns an array of LikeMindsInfo objects associated with the specified store and engine type. Exception may be thrown when an irrecoverable error is detected. It is expected that all LikeMinds listeners should unregister themself from the WCSExternalEventSource when it happens to avoid unncessary events being forwarded.
Parameters:
storeId - The store identifier
engineType - The name of the LikeMinds engine type
Returns:
An array of LikeMindsInfo objects. The array may be of size 0 if there is no revelant information.
Throws:
ConfigException - Configuration exception

getTransactionTypeId

public java.lang.Integer getTransactionTypeId(java.lang.Integer storeId,
                                              java.lang.String eventName,
                                              java.lang.String txSetName)
                                       throws ConfigException
Returns the transaction type identifier associated with the specified store, WCS event name and transaction set name. Exception may be thrown when an irrecoverable error is detected. It is expected that all LikeMinds listeners should "unregister" itself to the WCSExternalEventSource when it happens to avoid unncessary events being forwarded. Creation date: (9/29/00 4:15:31 PM)
Parameters:
storeId - The store identifier
eventName - The WCS external event name
txSetName - The transcation set name
Returns:
The transaction type identifier
Throws:
ConfigException - Configuration exception.

singleton

public static LikeMindsConfiguration singleton()
Returns the singleton LikeMindsConfiguration object
Returns:
com.ibm.commerce.likeminds.LikeMindsConfiguration