public class InterestItemAddCmdImpl extends ControllerCommandImpl implements InterestItemAddCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The fully qualified name of this class.
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
protected java.lang.String | partNumber
PartNumber of the interest item.
|
Constructor and Description |
---|
InterestItemAddCmdImpl()
No value constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | checkBuyable(java.lang.Long catEntrySKUId)
Checks whether the catalog entry with the given catalog entry ID is buyable.
|
void | checkIsAllowed(AccessVector resource, java.lang.String action)
Check to see if user can perform action on resource.
|
protected void | checkProductEntitlement(java.lang.Long catentry_id, java.lang.Long member_id)
Ensures that the given member is entitled to access the given catalog entry based on the user's trading agreements.
|
TypedProperty | getResolvedRequestProperties()
This method gets the resolved request properties associated with this command.
|
java.lang.Long[] | getResourceOwners()
This method gets all the organization units that own the resources accessed by this command.
|
boolean | isReadyToCallExecute()
This method is called by the targetable command framework.
|
void | performExecute()
The main program for InterestItemAddCmd command.
|
void | reset()
This method is called after a command has been executed.
|
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)
Specifies zero or more interest item lists from which to be added.
|
void | setListIdName(java.lang.String[] asaListIdName)
Specifies the names of name-value pairs to be added to the redirection URL.
|
void | setMemberId(java.util.Hashtable ahshMemberId)
Set the member id parameters.
|
void | setPartNumber(java.util.Hashtable ahshPartNumber)
Set the part number parameters.
|
void | setQuantity(java.util.Hashtable ahshQuantity)
The quantity of the item to add.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method sets the requestProperties for the command.
|
void | setUOM(java.util.Hashtable ahshUOM)
Set the unit of measure parameters (optional).
|
void | setUpdateable(java.util.Hashtable ahshUpdateable)
updateable={ 1 | 0 } If updateable=1: Add a new record.
|
protected double | updateQuantity(double newQuantity, double oldQuantity)
Returns the newly calculated quantity.
|
void | validateParameters()
This method performs server side parameter checking.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected java.lang.String partNumber
protected void checkBuyable(java.lang.Long catEntrySKUId) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public void checkIsAllowed(AccessVector resource, java.lang.String action) throws ECException
protected void checkProductEntitlement(java.lang.Long catentry_id, java.lang.Long member_id) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public TypedProperty getResolvedRequestProperties()
public java.lang.Long[] getResourceOwners() throws ECException
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
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 setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setUOM(java.util.Hashtable ahshUOM)
public void setUpdateable(java.util.Hashtable ahshUpdateable)
protected double updateQuantity(double newQuantity, double oldQuantity)
public void validateParameters() throws ECException