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

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.marketingcenter.events.runtime.AddEventControllerCommandTestImpl
All Implemented Interfaces:
AccCommand, AddEventControllerCommandTest, ControllerCommand, ECCommand, ECTargetableCommand, Protectable

public class AddEventControllerCommandTestImpl
extends ControllerCommandImpl
implements AddEventControllerCommandTest

Controller command for testing purposes. It adds an entry into the CPGNLOG table.


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String NEXTURL_PARAMETER
           
 
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
AddEventControllerCommandTestImpl()
          Constructs a AddEventControllerCommandTestImpl object.
 
Method Summary
 boolean isGeneric()
          Check to see if this is a generic command.
 boolean isReadyToCallExecute()
          isReadyToCallExecute method
 boolean isRetriable()
          Check to see if this command is retryable on errors like rollback exception
 void performExecute()
          This is a command for testing purposes.
 void validateParameters()
          The default implementation of validateParameters is just a no op.
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, 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, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setGeneric, setRequestProperties, 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

COPYRIGHT

public static final java.lang.String COPYRIGHT

NEXTURL_PARAMETER

public static final java.lang.String NEXTURL_PARAMETER
Constructor Detail

AddEventControllerCommandTestImpl

public AddEventControllerCommandTestImpl()
Constructs a AddEventControllerCommandTestImpl object.
Method Detail

isGeneric

public boolean isGeneric()
Check to see if this is a generic command. A generic command can be called by a generic user. The default is false.
Specified by:
isGeneric in interface ControllerCommand
Overrides:
isGeneric in class ControllerCommandImpl
Returns:
boolean - true if this command can be called by a generic user - false if this command cannot be called by a generic user

isReadyToCallExecute

public boolean isReadyToCallExecute()
isReadyToCallExecute method
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Following copied from class: com.ibm.commerce.command.AbstractECTargetableCommand
Returns:
boolean - true if we can execute the command false if we canot execute the command

isRetriable

public boolean isRetriable()
Check to see if this command is retryable on errors like rollback exception
Specified by:
isRetriable in interface ControllerCommand
Overrides:
isRetriable in class ControllerCommandImpl
Returns:
boolean - true if this command is retryable - false if this command is not retryable

performExecute

public void performExecute()
                    throws ECException
This is a command for testing purposes. Through a URL, an entry into the CPGNLOG can be created.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - The exception description.

validateParameters

public void validateParameters()
                        throws ECException
The default implementation of validateParameters is just a no op. ControllerCommandImpl calls validateParameters in performExecute. It is the responsibility of the command writers to implements this method if they want to perform server side parameter checking. They should either calls validateParameters inside their performExecute or calls super() as the first line in their performExecute method.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
com.ibm.commerce.exception.ECException. -