public class ComposePriceForCatalogEntryCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ComposePriceForCatalogEntryCmd
ComposePriceForCatalogEntryCmdImpl
Task Command
Implementation composes the PriceInfoType array for given catalog entries.
Input parameters:
Name | Type | Requirement | Description |
---|---|---|---|
catentryIds | String[] | mandatory | The catentry Ids |
contractIds | String[] | optional | The specified contract Ids for the given catentries | profileString | String[] | optional | The profile of the sub prices, the values should be StandardPrice, ContracePrice or FloorPrice |
Output parameters:
Name | Type | Description |
---|---|---|
iPriceTypes | PriceInfoType[] | The PriceInfoType array object which contain all the request prices type of the given catentries |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
NAME
Constructor and Description |
---|
ComposePriceForCatalogEntryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.exception.ECException[] |
getECException()
If the PriceInfoType the caller gotten is null, maybe there is exception
occurred, the caller could get ECException object using this method.
|
com.ibm.commerce.foundation.common.datatypes.PriceInfoType[] |
getPrice()
The function of this method is returning the PriceInfoType of the
catentry.
|
boolean |
isReadyToCallExecute()
This method will be invoked before execute performExecute(), this method
checks if the necessary parameter is specified.
|
void |
performExecute()
This method realizes the main business logic.
|
void |
reset()
This method is resetting all the global variable in this class.
|
void |
setCatalogEntryIds(java.lang.String[] catEntryIds)
Set the catentryID to the global variable.
|
void |
setContractIds(java.lang.String[] contractIds)
The function of this method is setting the contractIds to the global
variable.
|
void |
setProfile(java.lang.String[] profileString)
Set the profileString to the global variable.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public com.ibm.commerce.exception.ECException[] getECException()
public com.ibm.commerce.foundation.common.datatypes.PriceInfoType[] getPrice()
getPrice
in interface ComposePriceForCatalogEntryCmd
public final boolean isReadyToCallExecute()
isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute()
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void reset()
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void setCatalogEntryIds(java.lang.String[] catEntryIds)
setCatalogEntryIds
in interface ComposePriceForCatalogEntryCmd
catEntryIds
- the catentry id of the catentry which prices will be gotten in
this Command.public void setContractIds(java.lang.String[] contractIds)
setContractIds
in interface ComposePriceForCatalogEntryCmd
contractIds
- indicates the specified contractIds of the catentries.public void setProfile(java.lang.String[] profileString)
Value | Description |
---|---|
StandardPrice | indicates get Standard Price |
ContractPrice | indicates get Contract Price |
FloorPrice | indicates get Floor Price |
setProfile
in interface ComposePriceForCatalogEntryCmd
profileString
- indicates what kinds of price need to be retrieved.