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:
PublishCustomPriceListCmd
ProductSetAddCmd
ProductSetPublishCmd
StoreAccessBean
BusinessPolicyAccessBean
OfferAccessBean
OfferPriceAccessBean
TermConditionAccessBean
PriceTCMasterCatalogWithOptionalAdjustmentAccessBean
PriceTCMasterCatalogWithFilteringAccessBean
PriceTCPriceListWithOptionalAdjustmentAccessBean
PriceTCPriceListWithSelectiveAdjustmentAccessBean
OrganizationAccessBean
CatalogAccessBean
TradingPositionContainerAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
CLASSNAME
defaultCommandClassName, 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, wait
getTargetStoreId, setTargetStoreId
accessControlCheck, 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, validateParameters
getTargetStoreId, setTargetStoreId
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 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.ECException
java.sql.SQLException
public 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.ECException
java.sql.SQLException
public void deployConfigBuildBlock() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public void deployCustomPriceList() throws com.ibm.commerce.exception.ECException, java.sql.SQLException
com.ibm.commerce.exception.ECException
java.sql.SQLException
public void deployMasterCatalogWOptAdj() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public void deployPriceListWOptAdj() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public void deployPriceListWSelAdj() throws com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECException
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
public void setTermCondition(com.ibm.commerce.contract.objects.TermConditionAccessBean aTCAB)
setTermCondition
in interface DeployTCCmd
setTermCondition
in interface DeployPriceTCCmd
setTermCondition
in class DeployTCCmdImpl
aTCAB
- the termcondition accessbean to be deployedpublic void setXMLFlag(boolean aXMLFlag)
setXMLFlag
in interface DeployPriceTCCmd
aXMLFlag
- true to create xml string