public class CreateContractCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements CreateContractCmd
CreateContractCmd
task command.
com.ibm.commerce.contract.objects.ContractJDBCHelperAccessBean#addEntryToContractName(java.lang.String, java.lang.Long, java.lang.Integer)
TermConditionDescriptionAccessBean
TradingDescriptionAccessBean
ParticipantAccessBean
OrderApprovalTCAccessBean
PriceTCPriceListWithSelectiveAdjustmentAccessBean
PriceTCPriceListWithOptionalAdjustmentAccessBean
PriceTCMasterCatalogWithOptionalAdjustmentAccessBean
FulfillmentTCAccessBean
ObligationToBuyTCByAmountAccessBean
PaymentTCAccessBean
OrderTCOrderCommentAccessBean
OrderTCOrderItemPAttributeAccessBean
PriceTCCustomPriceListAccessBean
ProductSetTCCustomExclusionAccessBean
ProductSetTCCustomInclusionAccessBean
ProductSetTCExclusionAccessBean
ProductSetTCInclusionAccessBean
ReturnTCRefundPaymentMethodAccessBean
ReturnTCReturnChargeAccessBean
RightToBuyTCByAmountAccessBean
ShippingTCShipToAddressAccessBean
ShippingTCShippingChargeAccessBean
ShippingTCShippingModeAccessBean
TradingAgreementAccessBean
OrganizationAccessBean
UserAccessBean
MemberGroupAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this command.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CreateContractCmdImpl()
Constructor for CreateContractCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
getContractDescriptionElement()
Returns the contract description Element object.
|
java.lang.Long |
getContractId()
Returns ID of the new created contract.
|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
parseXMLDocument()
Parses the contract XML document.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setContractDescriptionElement(org.w3c.dom.Element newContractDescriptionElement)
Sets the contract description Element object.
|
void |
setContractElement(org.w3c.dom.Element contractElement)
Sets the contract Element object.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public CreateContractCmdImpl()
public org.w3c.dom.Element getContractDescriptionElement()
public java.lang.Long getContractId()
getContractId
in interface CreateContractCmd
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- Raised with message _ERR_FINDER_EXCEPTION if the FinderException occurred.
Raised with message _ERR_REMOTE_EXCEPTION if the RemoteException occurred.
Raised with message _ERR_NAMING_EXCEPTION if the NamingException occurred.
Raised with message _ERR_CREATE_EXCEPTION if the CreateException occurred.AbstractECTargetableCommand.getResources()
public void parseXMLDocument()
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
- Raised with message _ERR_RETRIEVE_STORE_ID if the store id cannot be retrieved from
the information provided in StoreRef element in one of the terms and conditions.
Raised with message _ERR_RETRIEVE_POLICY_TYPE if the policy type cannot be retrieved based on information
in policy reference element.
Raised with message _ERR_RETRIEVE_ORG_ID if an error occurred when retrieving the organization ID.
Raised with message _ERR_RETRIEVE_USER_ID if an error occurred when retrieving the user ID.
Raised with message _ERR_RETRIEVE_MEMBER_GROUP_ID if an error occurred when retrieving the member group ID.
Raised with message _ERR_RETRIEVE_OPERATOR_ID if an error occurred when retrieving opeartor_id.
The value of "operator" in "AttributeValue" element is incorrect.
Raised with message _ERR_RETRIEVE_pattribute_id if an error occurred when retrieving pattribute_id. The
value of "attributeName" in "AttributeDetail" element is incorrect.
Raised with message _ERR_RETRIEVE_catentry_id if an error occurred when retrieving catentry_id. The
information specified in "OrderTCOrderItemPAttribute" element is incorrect.
Raised with message _ERR_RETRIEVE_POLICY_ID if an error occurred when retrieving policy_id.
The information specified in the policy reference element is incorrect.
Raised with message _ERR_RETRIEVE_FFMCENTER_ID if an error occurred when
retrieving ffmcenter_id. The information specified in "FilfillmentCenterRef" element is incorrect.
Raised with message _ERR_COLUMN_ACCESSBEANNAME_IN_PATTRIBUTE_NOT_POPULATED if an error occurred when
retrieving personalization attribute value accessbean. Column accessbeanname in table pattribute is not
populated correctly.
Raised with message _ERR_PATTRIBUTE_NOT_REGISTERED_IN_TABLE_PATTRPROD_FOR_CATENTRY
if an error occurred when validating whether catentry has the corresponding personalization attribute
registered in table PattrProd. catentry_id and pattribute_id retrieved from OrderTCOrderItemPAttribute
element should be registered in table PattrProd.
Raised with message _ERR_TOO_MANY_FULFILLMENT_TC if a contract has more than three
fulfillment centers defined in a term and condition.
Raised with message _ERR_DUPLICATE_KEY_IN_PROCESSING_TC if a duplicate key error
occurred when processing a term and condition.
Raised with message _ERR_FINDER_EXCEPTION if the FinderException occurred.
Raised with message _ERR_REMOTE_EXCEPTION if the RemoteException occurred.
Raised with message _ERR_NAMING_EXCEPTION if the NamingException occurred.
Raised with message _ERR_CREATE_EXCEPTION if the CreateException occurred.
Raised with message _ERR_REMOVE_EXCEPTION if the RemoveException occurred.
Raised with message _ERR_SQL_EXCEPTION if the SQLException occurred.public void setContractDescriptionElement(org.w3c.dom.Element newContractDescriptionElement)
newContractDescriptionElement
- the XML Element object of the contract description.public void setContractElement(org.w3c.dom.Element contractElement)
setContractElement
in interface CreateContractCmd
contractElement
- the XML Element object of the contract