public class DeployPriceTCCmdImpl extends DeployTCCmdImpl implements DeployPriceTCCmd
DeployPriceTCCmd Task Command Implementation
deploys the Price Terms & Conditions defined in a Trading Agreements.
Three types of price Terms&Conditions to be deployed:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1, product set id in INTEGERFIELD1.
the price list id will be stored in BIGINTFIELD1, adjustment in FLAOTFIELD1, product set id in INTEGERFIELD1 and adjustment product set in INTEGERFIELD2.
the price list id will be stored in BIGINTFIELD1, producst set id in INTEGERFIELD1.
This command calls the following TaskCommands:
PublishCustomPriceListCmdProductSetAddCmdProductSetPublishCmd StoreAccessBeanBusinessPolicyAccessBeanOfferAccessBeanOfferPriceAccessBeanTermConditionAccessBean PriceTCMasterCatalogWithOptionalAdjustmentAccessBean PriceTCMasterCatalogWithFilteringAccessBean PriceTCPriceListWithOptionalAdjustmentAccessBean PriceTCPriceListWithSelectiveAdjustmentAccessBean OrganizationAccessBean CatalogAccessBean TradingPositionContainerAccessBean | Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
CLASSNAMEdefaultCommandClassName, NAME| Constructor and Description |
|---|
DeployPriceTCCmdImpl()
ContractCreateCommand constructor comment.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createPriceListProductSetXML(java.lang.Long priceListId)
If the product set DTD or XML is changed, customer need to overwrite this method
|
java.lang.String |
createPriceListXML(java.lang.Long priceListId,
boolean saveFlag)
If the price list DTD or XML is change, customer need to overwrite this method
|
void |
deployConfigBuildBlock()
Deploys PriceTCConfigBuildBlock:
the percentage price list id will be stored in BIGINTFIELD2, if there is only one percentage price list
associated with the tc;
product set id will be stored in INTEGERFIELD1.
|
void |
deployCustomPriceList()
Deploys PriceTCCustomPriceList:
the price list id will be stored in BIGINTFIELD1, producst set id in
INTEGERFIELD1.
|
void |
deployMasterCatalogWOptAdj()
Deploys PriceTCMasterCatalogWithOptionalAdjustment:
the price list id will be stored in BIGINTFIELD1
|
void |
deployPriceListWOptAdj()
Deploys PriceTCPriceListWithOptionalAdjustment:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1.
|
void |
deployPriceListWSelAdj()
Deploys PriceTCPriceListWithSelectiveAdjustment:
the price list id will be stored in BIGINTFIELD1, adjustment in FLOATFIELD1,
product set id in INTEGERFIELD1 and adjustment product set in INTEGERFIELD2.
|
void |
performExecute()
Execute the command.
|
void |
setTermCondition(com.ibm.commerce.contract.objects.TermConditionAccessBean aTCAB)
Sets the Term&Condition Access Bean to be deployed.
|
void |
setXMLFlag(boolean aXMLFlag)
Sets the indicator for XML creation (not being used).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTargetStoreId, setTargetStoreIdaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersgetTargetStoreId, setTargetStoreIdcheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public DeployPriceTCCmdImpl()
public java.lang.String createPriceListProductSetXML(java.lang.Long priceListId)
throws com.ibm.commerce.exception.ECException,
java.sql.SQLException
priceListId - the priceList to create productset XMLcom.ibm.commerce.exception.ECExceptionjava.sql.SQLExceptionpublic java.lang.String createPriceListXML(java.lang.Long priceListId,
boolean saveFlag)
throws com.ibm.commerce.exception.ECException,
java.sql.SQLException
priceListId - a prictlist ID to be used to create XML stringsaveFlag - true if save to DBcom.ibm.commerce.exception.ECExceptionjava.sql.SQLExceptionpublic void deployConfigBuildBlock()
throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECExceptionpublic void deployCustomPriceList()
throws com.ibm.commerce.exception.ECException,
java.sql.SQLException
com.ibm.commerce.exception.ECExceptionjava.sql.SQLExceptionpublic void deployMasterCatalogWOptAdj()
throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECExceptionpublic void deployPriceListWOptAdj()
throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECExceptionpublic void deployPriceListWSelAdj()
throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECExceptionpublic void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionpublic void setTermCondition(com.ibm.commerce.contract.objects.TermConditionAccessBean aTCAB)
setTermCondition in interface DeployTCCmdsetTermCondition in interface DeployPriceTCCmdsetTermCondition in class DeployTCCmdImplaTCAB - the termcondition accessbean to be deployedpublic void setXMLFlag(boolean aXMLFlag)
setXMLFlag in interface DeployPriceTCCmdaXMLFlag - true to create xml string