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.
OfferDescriptionAccessBean
OfferAccessBean
, OfferPriceAccessBean
, ListPriceAccessBean
OfferAccessBean
, OfferPriceAccessBean
, ListPriceAccessBean
OfferDescriptionAccessBean
OfferAccessBean
, OfferPriceAccessBean
, ListPriceAccessBean
OfferAccessBean
, OfferPriceAccessBean
, ListPriceAccessBean
DeleteOfferCmd
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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public 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 OfferDeleteCmd
public java.lang.Long getIdentifier()
public java.lang.String getCurrency()
getCurrency
in interface OfferDeleteCmd
public 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setCatentryId(java.lang.Long anCatentryId)
setCatentryId
in interface OfferDeleteCmd
anCatentryId
- java.lang.Longpublic void setCurrency(java.lang.String astrCurrency)
setCurrency
in interface OfferDeleteCmd
astrCurrency
- java.lang.Stringpublic void setDescLanguage(java.lang.Integer anDescLanguage)
setDescLanguage
in interface OfferDeleteCmd
anDescLanguage
- java.lang.Integerpublic void setIdentifier(java.lang.Long anIdentifier)
setIdentifier
in interface OfferDeleteCmd
anIdentifier
- java.lang.Longpublic void setOfferId(java.lang.Long anOfferId)
setOfferId
in interface OfferDeleteCmd
anOfferId
- java.lang.Longpublic void setPrecedence(java.lang.Double adPrecedence)
setPrecedence
in interface OfferDeleteCmd
adPrecedence
- java.lang.Doublepublic void setQtyunitId(java.lang.String astrQtyunitId)
setQtyunitId
in interface OfferDeleteCmd
astrQtyunitId
- java.lang.Stringpublic void setForce(java.lang.Integer anForce)
setForce
in interface OfferDeleteCmd
anForce
- java.lang.Integerpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setTradeposcnId(java.lang.Long anTradeposcnId)
setTradeposcnId
in interface OfferDeleteCmd
anTradeposcnId
- java.lang.Longpublic void setURL(java.lang.String astrURL)
setURL
in interface OfferDeleteCmd
astrURL
- the redirect URLpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException