com.ibm.commerce.catalogmanagement.commands
Class OfferDeleteCmdImpl

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

Implementation for OfferDelete command which is the URL command for Deleteing an Offer, Offer Description, and OfferPrice


Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 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
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT

GENERIC_CURRENCY

public java.lang.Boolean GENERIC_CURRENCY

idPrecedence

protected java.lang.Double idPrecedence

inCatentryId

protected java.lang.Long inCatentryId

inDescLanguage

protected java.lang.Integer inDescLanguage

inForce

protected java.lang.Integer inForce

inIdentifier

protected java.lang.Long inIdentifier

inOfferId

protected java.lang.Long inOfferId

inTradeposcnId

protected java.lang.Long inTradeposcnId

istrCurrency

protected java.lang.String istrCurrency

istrQtyunitId

protected java.lang.String istrQtyunitId

istrURL

protected java.lang.String istrURL
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

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

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

getIdentifier

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

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

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

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

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

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
Following copied from interface: com.ibm.commerce.catalogmanagement.commands.OfferDeleteCmd
Parameters:
astrURL - java.lang.String

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 -