public class OfferDeleteCmdImpl extends ControllerCommandImpl implements OfferDeleteCmd
OfferDeleteCmd is a URL and controller command that:
ListPriceDeleteCmd with the currency and catalog entry ID found in the offer.
ListPriceDeleteCmd with the catalog entry ID found in the offer.
ListPriceDeleteCmd for
the specied catalog entry ID and currency.
ListPriceDeleteCmd with the
catalog entry ID.
OfferDescriptionAccessBeanOfferAccessBean, OfferPriceAccessBean, ListPriceAccessBeanOfferAccessBean, OfferPriceAccessBean, ListPriceAccessBeanOfferDescriptionAccessBeanOfferAccessBean, OfferPriceAccessBean, ListPriceAccessBeanOfferAccessBean, OfferPriceAccessBean, ListPriceAccessBeanDeleteOfferCmd ListpriceDeleteCmd
Mandatory Parameters: offerId, or catentryId.
Additional Parameters: None.
Optional Parameters: precedence, qtyunitId, descLangId, currency, force, URL.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.OfferDeleteCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
java.lang.Boolean |
GENERIC_CURRENCY |
defaultCommandClassName| Constructor and Description |
|---|
OfferDeleteCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getCatentryId()
Get the catalog entry Id
|
java.lang.String |
getCurrency()
Get the currency
|
java.lang.Integer |
getDescLanguage()
Get the description language Id
|
java.lang.Integer |
getForce()
Get the force delete option
0 = offer will be marked for deletion
1 = offer will be force deleted
|
java.lang.Long |
getIdentifier()
Get the offer identifier
|
java.lang.Long |
getOfferId()
Get the offer Id
|
java.lang.Long |
getTradeposcnId()
Get trading position container Id
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for OfferDelete command
|
void |
reset()
This method reset all the variables used in OfferDelete command
|
void |
setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
|
void |
setCurrency(java.lang.String astrCurrency)
Set the currency
|
void |
setDescLanguage(java.lang.Integer anDescLanguage)
Set language Id of the offer description
|
void |
setForce(java.lang.Integer anForce)
Set the force delete option of the offer
0 = offer will be marked for delete
1 = offer will be force deleted
|
void |
setIdentifier(java.lang.Long anIdentifier)
Set the offer identifier
|
void |
setOfferId(java.lang.Long anOfferId)
Set the offer Id
|
void |
setPrecedence(java.lang.Double adPrecedence)
Set the precedence of the offer
When more than one offer is effective at a particular time, the one with
the highest precedence is used.
|
void |
setQtyunitId(java.lang.String astrQtyunitId)
Set the quantity unit Id.
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtain the input parameters for OfferDelete command
|
void |
setTradeposcnId(java.lang.Long anTradeposcnId)
Set trading positioning container Id for the offer
|
void |
setURL(java.lang.String astrURL)
Set a redirect URL
param astrURL java.lang.String
|
void |
validateParameters()
This method validates the parameters for OfferDelete command
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Boolean GENERIC_CURRENCY
public java.lang.Long getCatentryId()
getCatentryId in interface OfferDeleteCmdpublic java.lang.Long getIdentifier()
public java.lang.String getCurrency()
getCurrency in interface OfferDeleteCmdpublic java.lang.Integer getDescLanguage()
public java.lang.Long getOfferId()
public java.lang.Long getTradeposcnId()
public java.lang.Integer getForce()
public java.lang.String getURL()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setCatentryId(java.lang.Long anCatentryId)
setCatentryId in interface OfferDeleteCmdanCatentryId - java.lang.Longpublic void setCurrency(java.lang.String astrCurrency)
setCurrency in interface OfferDeleteCmdastrCurrency - java.lang.Stringpublic void setDescLanguage(java.lang.Integer anDescLanguage)
setDescLanguage in interface OfferDeleteCmdanDescLanguage - java.lang.Integerpublic void setIdentifier(java.lang.Long anIdentifier)
setIdentifier in interface OfferDeleteCmdanIdentifier - java.lang.Longpublic void setOfferId(java.lang.Long anOfferId)
setOfferId in interface OfferDeleteCmdanOfferId - java.lang.Longpublic void setPrecedence(java.lang.Double adPrecedence)
setPrecedence in interface OfferDeleteCmdadPrecedence - java.lang.Doublepublic void setQtyunitId(java.lang.String astrQtyunitId)
setQtyunitId in interface OfferDeleteCmdastrQtyunitId - java.lang.Stringpublic void setForce(java.lang.Integer anForce)
setForce in interface OfferDeleteCmdanForce - java.lang.Integerpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqParms - This is an object that represents the request properties.ECApplicationExceptionpublic void setTradeposcnId(java.lang.Long anTradeposcnId)
setTradeposcnId in interface OfferDeleteCmdanTradeposcnId - java.lang.Longpublic void setURL(java.lang.String astrURL)
setURL in interface OfferDeleteCmdastrURL - the redirect URLpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException