com.ibm.commerce.marketingcenter.events.runtime
Class MarketingEventUpdateCommandImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.marketingcenter.events.runtime.MarketingEventUpdateCommandImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, MarketingEventUpdateCommand, TaskCommand
Direct Known Subclasses:
AddEventCommandImpl, ClickEventUpdateCommandImpl

public class MarketingEventUpdateCommandImpl
extends TaskCommandImpl
implements MarketingEventUpdateCommand

Task command to handle marketing events. How the event is handled is determined by a parameter, usually a URL parameter, (defined by EVENTTYPE_PARAMETER) value.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
protected  java.lang.String eventType
          Type of this marketing event.
static java.lang.String EVENTTYPE_PARAMETER
          Parameter name in the requestParams to specify the type of event.
  TypedProperty requestProps
          Request properties object that contains all the current request attributes.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.marketingcenter.events.runtime. MarketingEventUpdateCommand
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
MarketingEventUpdateCommandImpl()
          Construct a MarketingEventUpdateCommandImpl object.
 
Method Summary
protected  java.lang.String getEventType()
          Getter for eventType.
  TypedProperty getRequestProps()
          Getter for requestProps.
protected  void setEventType(java.lang.String newEventType)
          Setter for eventType.
 void setRequestProps( TypedProperty newRequestParams)
          Setter for the request properties (requestProps) from the controller command.
 void validateParameters()
          Check the parameters and set the eventType.
 
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, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
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
IBM copyright notice field.
See Also:
Constant Field Values

EVENTTYPE_PARAMETER

public static final java.lang.String EVENTTYPE_PARAMETER
Parameter name in the requestParams to specify the type of event.
See Also:
Constant Field Values

requestProps

public TypedProperty requestProps
Request properties object that contains all the current request attributes.

eventType

protected java.lang.String eventType
Type of this marketing event.
Constructor Detail

MarketingEventUpdateCommandImpl

public MarketingEventUpdateCommandImpl()
Construct a MarketingEventUpdateCommandImpl object.
Method Detail

validateParameters

public void validateParameters()
                        throws ECException
Check the parameters and set the eventType.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
See Also:
ECCommand#validateParameters()

getEventType

protected java.lang.String getEventType()
Getter for eventType.
Returns:
The event type.

getRequestProps

public TypedProperty getRequestProps()
Getter for requestProps.
Returns:
The request properties.

setEventType

protected void setEventType(java.lang.String newEventType)
Setter for eventType.
Parameters:
newEventType - The event type to use.

setRequestProps

public void setRequestProps(TypedProperty newRequestParams)
Setter for the request properties (requestProps) from the controller command.
Specified by:
setRequestProps in interface MarketingEventUpdateCommand
Parameters:
newRequestParams - The request properties to use.