java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.contract.tc.commands.ContractTCCreateCmdImpl
This is the default implementation of ContractTCCreateCmd (WebSphere Commerce Business Edition only). Create a terms and conditions based on the TermCondition element XML string to the specified contract. The contract has to be in Draft state. The following AccessBeans are used in this default implementation: ContractAccessBean, TermConditionDescriptionAccessBean, ParticipantAccessBean, OrderApprovalTCAccessBean, PriceTCMasterCatalogWithFilteringAccessBean, PriceTCPriceListWithOptionalAdjustmentAccessBean, PriceTCMasterCatalogWithOptionalAdjustmentAccessBean, PriceTCPriceListWithSelectiveAdjustmentAccessBean, ReferralInterfaceTCAccessBean, FulfillmentTCAccessBean, ObligationToBuyTCByAmountAccessBean, PaymentTCAccessBean, OrderTCOrderCommentAccessBean, OrderTCOrderItemPAttributeAccessBean, PriceTCCustomPriceListAccessBean, ProductSetTCCustomExclusionAccessBean, ProductSetTCCustomInclusionAccessBean, ProductSetTCExclusionAccessBean, ProductSetTCInclusionAccessBean, ReturnTCRefundPaymentMethodAccessBean, ReturnTCReturnChargeAccessBean, RightToBuyTCByAmountAccessBean, ShippingTCShipToAddressAccessBean, ShippingTCShippingChargeAccessBean, ShippingTCShippingModeAccessBean
Field Summary | |
static java.lang.String | CLASSNAME The name of this command. |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.tc.commands.ContractTCCreateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ContractTCCreateCmdImpl() |
Method Summary | |
org.w3c.dom.Element | getElement() Returns the term condition element. |
AccessVector | getResources() Gets the access vector accessed by this command. |
void | parseXMLElement(org.w3c.dom.Element anTCElement) Parses the term and condition element and gets the long description and the short description of the term and condition. |
void | performExecute() The method creates the term and condition . |
void | setContractId(java.lang.Long contractId) Sets the ID of the contract which the term and condition will be added to. |
void | setElement(org.w3c.dom.Element anElement) Sets term and condition Element object. |
void | setLanguageId(java.lang.Integer langId) Deprecated. |
void | setRequestProperties(TypedProperty aRequestProperties) Retrieves input parameters from the request properties. |
void | setTcLongDescription(java.lang.String tcLongDescription) Deprecated. |
void | setTcReferenceNumber(java.lang.Long tcId) Deprecated. |
void | setTcReferenceNumber(java.lang.String tcIdStr) Deprecated. |
void | setTcShortDescription(java.lang.String tcShortDescription) Deprecated. |
void | setXMLEntityPath(java.lang.String path) Sets the XML entity path. |
void | validateParameters() Checks if the contract object exists. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
Constructor Detail |
public ContractTCCreateCmdImpl()
Method Detail |
public org.w3c.dom.Element getElement()
public AccessVector getResources() throws ECException
public void parseXMLElement(org.w3c.dom.Element anTCElement)
public void performExecute() throws ECException
public void setContractId(java.lang.Long contractId)
public void setElement(org.w3c.dom.Element anElement)
public void setLanguageId(java.lang.Integer langId)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void setTcLongDescription(java.lang.String tcLongDescription)
public void setTcReferenceNumber(java.lang.Long tcId)
public void setTcReferenceNumber(java.lang.String tcIdStr)
public void setTcShortDescription(java.lang.String tcShortDescription)
public void setXMLEntityPath(java.lang.String path)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.