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.


Field Summary
protected static java.lang.String CMD
           
protected  java.lang.String contextName
           
protected static java.lang.String METHODcheckParameters
           
protected static java.lang.String METHODlogAccess
           
protected static java.lang.String METHODperformExecute
           
protected static java.lang.String METHODsetRequestProperties
           
protected static java.lang.String NEW_DYNAMIC_LIST_VIEW
           
protected  java.lang.String urlParamName
           
protected  java.lang.String viewName
           
 
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.bi.commands.ShowContextListCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
ShowContextListCmdImpl()
          ShowContextListCmdImpl constructor.
 
Method Summary
protected  java.lang.String getContextName()
          Returns the context name.
 AccessVector getResources()
          Gets the access vector accessed by this command.
protected  java.lang.String getURLParamName()
          Returns the URL parameter name.
protected  java.lang.String getViewName()
          Returns the name of the context list view.
protected  void logAccess()
          Writes user ID to the log.
 void performExecute()
          Passes the name of context to the view.
protected  void setContextName(java.lang.String curContext)
          Sets the context name.
 void setRequestProperties(TypedProperty reqProperties)
          Reads in the context name from the requestProperties.
protected  void setURLParamName()
          Sets the default URL parameter name.
protected  void setViewName()
          Sets the default Context List view name.
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
 
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

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
Constructor Detail

ShowContextListCmdImpl

public ShowContextListCmdImpl()
ShowContextListCmdImpl constructor.
Method Detail

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.