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 |
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)
ahshAttrName
- the hash table of attribute
namespublic void setAttrValue(java.util.Hashtable ahshAttrValue)
ahshAttrValue
- the hash table of attribute
valuespublic void setCatEntryId(java.util.Hashtable ahshCatEntryId)
ahshCatEntryId
- the hash table of catalog entry
IDspublic void setField1(java.util.Hashtable ahshField1)
ahshField1
- the hash table of custom
fieldspublic void setField2(java.util.Hashtable ahshField2)
ahshField2
- the hash table of custom
fieldspublic void setField3(java.util.Hashtable ahshField3)
ahshField3
- the hash table of custom
fieldspublic void setListId(java.lang.String[] asaListId)
asaListId
- the interest item list IDspublic void setListIdName(java.lang.String[] asaListIdName)
asaListIdName
- the interest item list ID
namespublic void setMemberId(java.util.Hashtable ahshMemberId)
ahshMemberId
- a hash table of member IDspublic void setPartNumber(java.util.Hashtable ahshPartNumber)
ahshPartNumber
- a hash table of part
numberspublic void setQuantity(java.util.Hashtable ahshQuantity)
ahshQuantity
- a hash table of quantitiespublic void setUOM(java.util.Hashtable ahshUOM)
ahshUOM
- a hash table of unitspublic void setUpdateable(java.util.Hashtable ahshUpdatable)
ahshUpdatable
- a hash table of updateable
flags