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

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.marketingcenter.events.runtime.MarketingEventUpdateCommandImpl
All Implemented Interfaces:
ECCommand, 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.


Field Summary
static java.lang.String COPYRIGHT
           
protected  java.lang.String eventType
           
static java.lang.String EVENTTYPE_PARAMETER
           
 TypedProperty requestProps
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.marketingcenter.events.runtime.MarketingEventUpdateCommand
defaultCommandClassName, NAME
 
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.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

eventType

protected java.lang.String eventType

EVENTTYPE_PARAMETER

public static final java.lang.String EVENTTYPE_PARAMETER

requestProps

public TypedProperty requestProps
Constructor Detail

MarketingEventUpdateCommandImpl

public MarketingEventUpdateCommandImpl()
Construct a MarketingEventUpdateCommandImpl object.
Method Detail

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.

validateParameters

public void validateParameters()
                        throws ECException
Check the parameters and set the eventType.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Throws:
ECApplicationException - This happens if the request property is null.