com.ibm.commerce.marketingcenter.events.runtime
Class AddEventControllerCommandTestImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--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
- public class AddEventControllerCommandTestImpl
- extends
ControllerCommandImpl
- implements
AddEventControllerCommandTest
Controller command for testing purposes. It adds an entry into the CPGNLOG
table.
- See Also:
-
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
static java.lang.String |
NEXTURL_PARAMETER
Constant to define the next URL parameter. |
Method Summary |
boolean |
isGeneric()
Check to see if this is a generic command. |
boolean |
isReadyToCallExecute()
Checks to see if the command is ready to call. |
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 |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setRequestProperties,
setResponseProperties,
setRetriable,
setViewInputProperties |
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 |
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.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
NEXTURL_PARAMETER
public static final java.lang.String NEXTURL_PARAMETER
- Constant to define the next URL parameter.
- See Also:
-
Constant Field Values
AddEventControllerCommandTestImpl
public AddEventControllerCommandTestImpl()
- Constructs a AddEventControllerCommandTestImpl object.
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:
-
ECException
- See Also:
-
ECCommand.validateParameters()
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:
- true if this command can be called by a generic user; false
otherwise.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Checks to see if the command is ready to call.
-
- Overrides:
-
isReadyToCallExecute
in class
AbstractECTargetableCommand
-
- Returns:
- true if the command is ready to go; false otherwise.
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:
- true if this command is retryable; false otherwise.
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
- See Also:
-
ECCommand.performExecute()