com.ibm.commerce.marketing.commands

Class CouponManageCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, CouponManageCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class CouponManageCmdImpl
    extends ControllerCommandImpl
    implements CouponManageCmd

    This command displays the page from where Coupons and Promotion Codes can be managed. It implements the CouponManageCmd interface. This command is mapped to the CouponsManage URL.

    If the command is executed as a URL Command the following URL parameters must be set

    • orderId (OrderId)
    Optionally the following url parameters can be set
    • URL (URL to which the request should be redirected after the command is successfuly executed)
    • VIEW (VIEW to which the request should be forwarded after the command is successfuly executed)
    • userIdentifier (If for guest shopper we need to set a token which uniquely identifies her/him)
              Note: If both URL & VIEW parameters are specified, the request will be redirected to URL. 
                        If both are not specified the request will be forwarded to CouponsManageView.
     

    If executing this Command as a task Command,the methods listed below must be invoked before calling the command

    • setOrderId
    • setURL or setViewName

    Optionally the following methods can be invoked

    • setUserIdentifier (If for guest shopper we need to set a token which uniquely identifies her/him)
    See Also:
    Serialized Form
    • Constructor Detail

      • CouponManageCmdImpl

        public CouponManageCmdImpl()
        Constructor
    • Method Detail

      • setURL

        public void setURL(java.lang.String _URL)
        This method sets the redirect url.
        Parameters:
        _URL - java.lang.String is the redirect url to set.
      • setUserIdentifier

        public void setUserIdentifier(java.lang.String _userIdentifier)
        This method sets the userIdentifier.
        Parameters:
        _userIdentifier - java.lang.String is the user Identifier to set.
      • setOrderId

        public void setOrderId(java.lang.Long _orderId)
        This method sets the orderId.
        Parameters:
        _orderId - java.lang.Long is the orderId to set.
      • setViewName

        public void setViewName(java.lang.String _viewName)
        This method sets the view name.
        Parameters:
        _viewName - java.lang.String is the view name to set
      • getViewName

        public java.lang.String getViewName()
        This methods returns the View Name.
        Returns:
        java.lang.String the View Name to return.
      • getURL

        public java.lang.String getURL()
        This methods returns the redirect URL.
        Returns:
        java.lang.String the redirect URL.
      • getUserIdentifier

        public java.lang.String getUserIdentifier()
        This method returns the user Identifier.
        Returns:
        java.lang.String the user Identifier.
      • getOrderId

        public java.lang.Long getOrderId()
        This method gets the orderId.
        Returns:
        java.lang.Long gets the orderId.