The InterestItemAddCmd is a controller command that adds items or products to interest item lists. The interest items are stored in the IITEM table. This command accepts enumeration type of parameters. That is, it accepts parameterName_i=parameterValue. For example, to add three catalog entries with ID 15, 16, and 17 to certain interest item list, you can pass catEntryId_1=15&catEntryId_2=16&catEntryId_3=17 to the command. If you call the individual set method to pass the above parameters, you need to create a hashtable and add the following to the hashtable:
Field Summary | |
static java.lang.String | COPYRIGHT The internal copyright field. |
static java.lang.String | defaultCommandClassName The default implementation class is "com.ibm.commerce.interestitems.commands.InterestItemAddCmdImpl". |
static java.lang.String | NAME The name of this interface is "com.ibm.commerce.interestitems.commands.InterestItemAddCmd". |
Method Summary | |
void | setAttrName(java.util.Hashtable ahshAttrName) Sets the attribute name parameters (optional). |
void | setAttrValue(java.util.Hashtable ahshAttrValue) Sets the attribute value parameters (optional). |
void | setCatEntryId(java.util.Hashtable ahshCatEntryId) Sets the catentry ID parameters. |
void | setField1(java.util.Hashtable ahshField1) Sets the field1 parameters (optional). |
void | setField2(java.util.Hashtable ahshField2) Sets the field2 parameters (optional). |
void | setField3(java.util.Hashtable ahshField3) Sets the field3 parameters (optional). |
void | setListId(java.lang.String[] asaListId) Sets the interest item list ID parameters (optional with default "."). |
void | setListIdName(java.lang.String[] asaListIdName) Sets the names of the name-value pairs to be added to the redirection URL (optional). |
void | setMemberId(java.util.Hashtable ahshMemberId) Sets the member ID parameters. |
void | setPartNumber(java.util.Hashtable ahshPartNumber) Sets the part number parameters. |
void | setQuantity(java.util.Hashtable ahshQuantity) Sets the quantity parameters (optional with default is 1). |
void | setUOM(java.util.Hashtable ahshUOM) Set the unit of measure parameters (optional). |
void | setUpdateable(java.util.Hashtable ahshUpdatable) Set the updatable parameters (optional). |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
public void setAttrName(java.util.Hashtable ahshAttrName)
public void setAttrValue(java.util.Hashtable ahshAttrValue)
public void setCatEntryId(java.util.Hashtable ahshCatEntryId)
public void setField1(java.util.Hashtable ahshField1)
public void setField2(java.util.Hashtable ahshField2)
public void setField3(java.util.Hashtable ahshField3)
public void setListId(java.lang.String[] asaListId)
public void setListIdName(java.lang.String[] asaListIdName)
public void setMemberId(java.util.Hashtable ahshMemberId)
public void setPartNumber(java.util.Hashtable ahshPartNumber)
public void setQuantity(java.util.Hashtable ahshQuantity)
public void setUOM(java.util.Hashtable ahshUOM)
public void setUpdateable(java.util.Hashtable ahshUpdatable)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.