com.ibm.commerce.catalogmanagement.commands
Class OfferDeleteCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.ControllerCommandImpl
              com.ibm.commerce.catalogmanagement.commands.OfferDeleteCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OfferDeleteCmd, Protectable

public class OfferDeleteCmdImpl
extends ControllerCommandImpl
implements OfferDeleteCmd

The OfferDeleteCmd is a URL and controller command that:

Parameters: Access Beans: Task Commands: DeleteOfferCmd
Other Controller Commands: ListpriceDeleteCmd Mandatory Parameters: offerId, or catentryId. Additional Parameters: None. Optional Parameters: precedence, qtyunitId, descLangId, currency, force, URL.
See Also:
Serialized Form

Field Summary
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
protected java.lang.Double idPrecedence
protected java.lang.Long inCatentryId
protected java.lang.Integer inDescLanguage
protected java.lang.Integer inForce
protected java.lang.Long inIdentifier
protected java.lang.Long inOfferId
protected java.lang.Long inTradeposcnId
protected java.lang.String istrCurrency
protected java.lang.String istrQtyunitId
protected java.lang.String istrURL
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.command.ECCommand
defaultCommandClassName
Constructor Summary
OfferDeleteCmdImpl()
Method Summary
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
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, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.OfferDeleteCmdImpl".
See Also:
Constant Field Values

GENERIC_CURRENCY

public java.lang.Boolean GENERIC_CURRENCY

istrURL

protected java.lang.String istrURL

inCatentryId

protected java.lang.Long inCatentryId

inIdentifier

protected java.lang.Long inIdentifier

inOfferId

protected java.lang.Long inOfferId

idPrecedence

protected java.lang.Double idPrecedence

istrQtyunitId

protected java.lang.String istrQtyunitId

inTradeposcnId

protected java.lang.Long inTradeposcnId

inDescLanguage

protected java.lang.Integer inDescLanguage

istrCurrency

protected java.lang.String istrCurrency

inForce

protected java.lang.Integer inForce
Constructor Detail

OfferDeleteCmdImpl

public OfferDeleteCmdImpl()
Method Detail

getCatentryId

public java.lang.Long getCatentryId()
Get the catalog entry Id
Specified by:
getCatentryId in interface OfferDeleteCmd
Returns:
java.lang.Long

getIdentifier

public java.lang.Long getIdentifier()
Get the offer identifier
Returns:
java.lang.Long

getCurrency

public java.lang.String getCurrency()
Get the currency
Specified by:
getCurrency in interface OfferDeleteCmd
Returns:
java.lang.String

getDescLanguage

public java.lang.Integer getDescLanguage()
Get the description language Id
Returns:
java.lang.Integer

getOfferId

public java.lang.Long getOfferId()
Get the offer Id
Returns:
java.lang.Long

getTradeposcnId

public java.lang.Long getTradeposcnId()
Get trading position container Id
Returns:
java.lang.Long

getForce

public java.lang.Integer getForce()
Get the force delete option 0 = offer will be marked for deletion 1 = offer will be force deleted
Returns:
java.lang.Integer

getURL

public java.lang.String getURL()
Get the redirect URL
Returns:
java.lang.String

performExecute

public void performExecute()
                    throws ECException
The main program for OfferDelete command
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

reset

public void reset()
This method reset all the variables used in OfferDelete command
Overrides:
reset in class AbstractECTargetableCommand

setCatentryId

public void setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
Specified by:
setCatentryId in interface OfferDeleteCmd
Parameters:
anCatentryId - java.lang.Long

setCurrency

public void setCurrency(java.lang.String astrCurrency)
Set the currency
Specified by:
setCurrency in interface OfferDeleteCmd
Parameters:
astrCurrency - java.lang.String

setDescLanguage

public void setDescLanguage(java.lang.Integer anDescLanguage)
Set language Id of the offer description
Specified by:
setDescLanguage in interface OfferDeleteCmd
Parameters:
anDescLanguage - java.lang.Integer

setIdentifier

public void setIdentifier(java.lang.Long anIdentifier)
Set the offer identifier
Specified by:
setIdentifier in interface OfferDeleteCmd
Parameters:
anIdentifier - java.lang.Long

setOfferId

public void setOfferId(java.lang.Long anOfferId)
Set the offer Id
Specified by:
setOfferId in interface OfferDeleteCmd
Parameters:
anOfferId - java.lang.Long

setPrecedence

public 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.
Specified by:
setPrecedence in interface OfferDeleteCmd
Parameters:
adPrecedence - java.lang.Double

setQtyunitId

public void setQtyunitId(java.lang.String astrQtyunitId)
Set the quantity unit Id. This is the unit of measure for minimum quantity and maximum quantity
Specified by:
setQtyunitId in interface OfferDeleteCmd
Parameters:
astrQtyunitId - java.lang.String

setForce

public 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
Specified by:
setForce in interface OfferDeleteCmd
Parameters:
anForce - java.lang.Integer

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
This method obtain the input parameters for OfferDelete command
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Throws:
ECApplicationException

setTradeposcnId

public void setTradeposcnId(java.lang.Long anTradeposcnId)
Set trading positioning container Id for the offer
Specified by:
setTradeposcnId in interface OfferDeleteCmd
Parameters:
anTradeposcnId - java.lang.Long

setURL

public void setURL(java.lang.String astrURL)
Set a redirect URL param astrURL java.lang.String
Specified by:
setURL in interface OfferDeleteCmd
Parameters:
astrURL - the redirect URL

validateParameters

public void validateParameters()
                        throws ECException
This method validates the parameters for OfferDelete command
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException

Feedback