com.ibm.commerce.marketingcenter.events.runtime
Class ClickMonitorCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.marketingcenter.events.runtime.ClickMonitorCommandImpl
- All Implemented Interfaces:
- AccCommand, ClickMonitorCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class ClickMonitorCommandImpl
- extends ControllerCommandImpl
- implements ClickMonitorCommand
Controller command implementation to capture page-level click events.
Method Summary |
java.lang.String |
getUrl()
Getter for urlParameter. |
boolean |
isGeneric()
Check to see if this is a generic command. |
void |
performExecute()
The business logic for this controller command. |
void |
setRequestProperties(TypedProperty reqProps)
This method will call the super.setRequestProperties and then will
set the URL parameter. |
void |
setUrl(java.lang.String aUrl)
Setter for urlParameter. |
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, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, 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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
urlParameter
protected java.lang.String urlParameter
ClickMonitorCommandImpl
public ClickMonitorCommandImpl()
- Constructs a ClickMonitorCommandImpl object.
getUrl
public java.lang.String getUrl()
- Getter for urlParameter.
- Returns:
- The URL parameter.
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
performExecute
public void performExecute()
throws ECException
- The business logic for this controller command. For this default implementation
we simply calls checkParameters. Command writers who overwrites this method
should do a super() as the first line in their method if they want checkParameters to be called.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Throws:
ECException
- The exception description.
setRequestProperties
public void setRequestProperties(TypedProperty reqProps)
throws ECException
- This method will call the super.setRequestProperties and then will
set the URL parameter.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Parameters:
reqProps
- The request properties to be used.- Throws:
ECApplicationException
- The exception description.
setUrl
public void setUrl(java.lang.String aUrl)
- Setter for urlParameter.
- Parameters:
aUrl
- The url parameter to be used.
validateParameters
public void validateParameters()
throws ECException
- The default implementation of validateParameters is just a no op.
ControllerCommandImpl calls validateParameter 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.
-