com.ibm.commerce.tools.epromotion.commands
Class CreateRLPromotionCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.tools.epromotion.commands.CreateRLPromotionCmdImpl
All Implemented Interfaces:
CreateRLPromotionCmd, ECCommand, ECTargetableCommand, RLConstants, TaskCommand

public class CreateRLPromotionCmdImpl
extends TaskCommandImpl
implements CreateRLPromotionCmd, RLConstants

This command creates a promotion

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          the copyright information
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.epromotion.commands. CreateRLPromotionCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.tools.epromotion. RLConstants
CATEGORY_LEVEL_DISPLAY_FLAG, DISCOUNT_DEPLOYMENT, EC_CALCODE_ID, EC_CODE, EC_DESCRIPTION, EC_DISCOUNTNAME, EC_ENDDATE, EC_ORDERBY, EC_PRIORITY, EC_RANGE_MAX, EC_STARTDATE, EC_STATUS, ERROR_PROMOTION_DELETED_DUPLICATE_CODE, ERROR_PROMOTION_DUPLICATE_CODE, ERROR_PROMOTION_NOT_SAVED, ERROR_PROMOTION_NOT_UPDATED, MSG_PROMOTION_SAVED, MSG_PROMOTION_UPDATED, NEVER_EXPIRE, ORDER_LEVEL_DISPLAY_FLAG, PRODUCT_LEVEL_DISPLAY_FLAG, REST_OF_TIMESTRING, RLPROMOTION, RLPROMOTION_ASSIGNEDSEGMENTS, RLPROMOTION_CATEGORYLEVELBUYXGETYFREE, RLPROMOTION_CATEGORYLEVELPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_CATEGORYLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELVALUEDISCOUNT, RLPROMOTION_CATENTRY_ID, RLPROMOTION_CATENTRY_TYPE, RLPROMOTION_CATGROUP_CODE, RLPROMOTION_CATGROUP_ID, RLPROMOTION_CURRENCY, RLPROMOTION_DATERANGED, RLPROMOTION_DAYSINWEEK, RLPROMOTION_DESCRIPTION, RLPROMOTION_DESCRIPTION_LONG_NL, RLPROMOTION_DESCRIPTION_NL, RLPROMOTION_DISCOUNT_ITEM_QTY, RLPROMOTION_DISCOUNT_ITEM_SKU, RLPROMOTION_DISPLAY_LEVEL, RLPROMOTION_ENDDAY, RLPROMOTION_ENDHOUR, RLPROMOTION_ENDMONTH, RLPROMOTION_ENDYEAR, RLPROMOTION_FRIDAY, RLPROMOTION_GWP_CATENTRY_ID, RLPROMOTION_INCOMBINATIONWITH, RLPROMOTION_ISEVERYDAYFLAG, RLPROMOTION_ITEMLEVELBUYXGETYFREE, RLPROMOTION_ITEMLEVELPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_ITEMLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELVALUEDISCOUNT, RLPROMOTION_MAX_DISCOUNT_ITEM_QTY, RLPROMOTION_MERCHANDISE_TYPE, RLPROMOTION_MONDAY, RLPROMOTION_NAME, RLPROMOTION_ORDERLEVELFIXEDSHIPPINGDISCOUNT, RLPROMOTION_ORDERLEVELFREEGIFT, RLPROMOTION_ORDERLEVELPERCENTDISCOUNT, RLPROMOTION_ORDERLEVELVALUEDISCOUNT, RLPROMOTION_PRIORITY, RLPROMOTION_PROD_SEARCH_PAGE, RLPROMOTION_PRODUCT_SKU, RLPROMOTION_PRODUCTLEVELBUYXGETYFREE, RLPROMOTION_PRODUCTLEVELPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_PRODUCTLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELVALUEDISCOUNT, RLPROMOTION_RANGES, RLPROMOTION_REQUIRED_QTY, RLPROMOTION_RESOURCES, RLPROMOTION_SATURDAY, RLPROMOTION_SHIPMODEID, RLPROMOTION_STARTDAY, RLPROMOTION_STARTHOUR, RLPROMOTION_STARTMONTH, RLPROMOTION_STARTYEAR, RLPROMOTION_SUNDAY, RLPROMOTION_TARGETSALES, RLPROMOTION_THURSDAY, RLPROMOTION_TIMERANGED, RLPROMOTION_TUESDAY, RLPROMOTION_TYPE, RLPROMOTION_VALIDFORALLCUSTOMERS, RLPROMOTION_VALUE, RLPROMOTION_VALUES, RLPROMOTION_WEDNESDAY, ZERO_STRING
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CreateRLPromotionCmdImpl()
          CreateDiscountCmdImpl constructor comment.
 
Method Summary
 void createCalCodeBean()
          Create and populate the calCodeBean
 void createCalCodeMgpBean()
          Create and populate calcodeMgp Bean
 void createCalDescBean()
          Creates Calcode Description
 void createCatEntCalCodeBean()
          create catEntCalcode
 void createRlDiscountBean()
          create RLDiscount
 void createShippingCalCodeBean()
          create Shipping entry for the calcode if shipping discount
 boolean isReadyToCallExecute()
          isReadyToCallExecute
 void performExecute()
          Command execution body
 void setRLPromotion( RLPromotion newRLPromotion)
          Stores RLPromotion
 
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
the copyright information
See Also:
Constant Field Values
Constructor Detail

CreateRLPromotionCmdImpl

public CreateRLPromotionCmdImpl()
CreateDiscountCmdImpl constructor comment.
Method Detail

createCalCodeBean

public void createCalCodeBean()
                       throws ECSystemException
Create and populate the calCodeBean
Throws:
ECApplicationException
ECSystemException

createCalCodeMgpBean

public void createCalCodeMgpBean()
                          throws ECSystemException
Create and populate calcodeMgp Bean
Throws:
ECApplicationException
ECSystemException

createCalDescBean

public void createCalDescBean()
                       throws ECSystemException
Creates Calcode Description
Throws:
ECSystemException

createShippingCalCodeBean

public void createShippingCalCodeBean()
                               throws ECSystemException
create Shipping entry for the calcode if shipping discount
Throws:
ECSystemException

createCatEntCalCodeBean

public void createCatEntCalCodeBean()
                             throws ECSystemException
create catEntCalcode
Throws:
ECSystemException

createRlDiscountBean

public void createRlDiscountBean()
                          throws ECSystemException
create RLDiscount
Throws:
ECSystemException

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
boolean

performExecute

public void performExecute()
                    throws ECSystemException,
ECException
Command execution body
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECSystemException
ECException

setRLPromotion

public void setRLPromotion(RLPromotion newRLPromotion)
Stores RLPromotion
Specified by:
setRLPromotion in interface CreateRLPromotionCmd