com.ibm.commerce.bi.commands
Class ShowContextListCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
|
+--com.ibm.commerce.bi.commands.ShowContextListCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ShowContextListCmd, ToolsControllerCommand
- public class ShowContextListCmdImpl
- extends ToolsControllerCommandImpl
- implements ShowContextListCmd
Forwards the request to the Context List View.
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, 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, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
CMD
protected static final java.lang.String CMD
contextName
protected java.lang.String contextName
METHODcheckParameters
protected static final java.lang.String METHODcheckParameters
METHODlogAccess
protected static final java.lang.String METHODlogAccess
METHODperformExecute
protected static final java.lang.String METHODperformExecute
METHODsetRequestProperties
protected static final java.lang.String METHODsetRequestProperties
NEW_DYNAMIC_LIST_VIEW
protected static final java.lang.String NEW_DYNAMIC_LIST_VIEW
urlParamName
protected java.lang.String urlParamName
viewName
protected java.lang.String viewName
ShowContextListCmdImpl
public ShowContextListCmdImpl()
- ShowContextListCmdImpl constructor.
getContextName
protected java.lang.String getContextName()
- Returns the context name.
- Returns:
- The context name.
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector accessed by this command.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Returns:
- The vector of resource action pairs.
getURLParamName
protected java.lang.String getURLParamName()
- Returns the URL parameter name.
- Returns:
- The URL parameter name.
getViewName
protected java.lang.String getViewName()
- Returns the name of the context list view.
- Returns:
- The view name.
logAccess
protected void logAccess()
Writes user ID to the log.
performExecute
public void performExecute()
throws ECException
- Passes the name of context to the view.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setContextName
protected void setContextName(java.lang.String curContext)
- Sets the context name.
- Parameters:
curContext
- The context name.
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECApplicationException
Reads in the context name from the requestProperties.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ToolsControllerCommandImpl
- Parameters:
reqProperties
- The request properties.- Throws:
ECApplicationException
- If the URL parameter is not passed in.
setURLParamName
protected void setURLParamName()
Sets the default URL parameter name.
setViewName
protected void setViewName()
Sets the default Context List view name.