com.ibm.commerce.ruleservice.admin.commands
Class RuleServiceDetailsCommandBase

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.ruleservice.admin.commands.RuleServiceAdministrationCommandBase
                    |
                    +--com.ibm.commerce.ruleservice.admin.commands.RuleServiceDetailsCommandBase
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, RuleServiceAdminCommand, ToolsControllerCommand
Direct Known Subclasses:
AddRuleServiceCommandImpl, EditRuleServiceCommandImpl

public abstract class RuleServiceDetailsCommandBase
extends RuleServiceAdministrationCommandBase

A base for commands that operate on the details of a rule service.


Field Summary
static java.lang.String NUMBER_OF_AGENTS_URL_PARAM_NAME
           
protected  java.lang.Integer numberOfAgents
           
static java.lang.String PROJECT_PATH_URL_PARAM_NAME
           
protected  java.lang.String projectPath
           
protected  java.lang.Long sessionTimeout
           
static java.lang.String TIMEOUT_URL_PARAM_NAME
           
 
Fields inherited from class com.ibm.commerce.ruleservice.admin.commands.RuleServiceAdministrationCommandBase
COPYRIGHT, METHODsetRequestProperties, resourceProxy, RULE_SERVICE_URL_PARAM_NAME, ruleServiceName
 
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.tools.command.ToolsControllerCommand
NAME
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
RuleServiceDetailsCommandBase()
           
RuleServiceDetailsCommandBase(RuleServiceResourceProxy aRuleServiceResourceProxy)
           
 
Method Summary
protected abstract  PersonalizationRuleServiceDetailsCommand createPersonalizationRuleServiceDetailsCommand()
          Subclasses implement this to return the appropriate command instance.
protected  void doPerformExecute()
          Instantiates the command, sets it parameters, then executes it.
protected  java.lang.Integer getNumberOfAgents()
           
protected  java.lang.String getProjectPath()
           
protected  java.lang.Long getSessionTimeout()
           
protected  void setNumberOfAgents(java.lang.Integer newNumberOfAgents)
           
protected  void setProjectPath(java.lang.String newProjectPath)
           
 void setRequestProperties(TypedProperty reqProps)
          Retrieves input parameters from the request properties.
protected  void setSessionTimeout(java.lang.Long newSessionTimeout)
           
 
Methods inherited from class com.ibm.commerce.ruleservice.admin.commands.RuleServiceAdministrationCommandBase
doRedirect, getResourceProxy, getResources, getRuleServiceName, performExecute, setRuleServiceName, validateParameters
 
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
 
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
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

NUMBER_OF_AGENTS_URL_PARAM_NAME

public static final java.lang.String NUMBER_OF_AGENTS_URL_PARAM_NAME

numberOfAgents

protected java.lang.Integer numberOfAgents

PROJECT_PATH_URL_PARAM_NAME

public static final java.lang.String PROJECT_PATH_URL_PARAM_NAME

projectPath

protected java.lang.String projectPath

sessionTimeout

protected java.lang.Long sessionTimeout

TIMEOUT_URL_PARAM_NAME

public static final java.lang.String TIMEOUT_URL_PARAM_NAME
Constructor Detail

RuleServiceDetailsCommandBase

public RuleServiceDetailsCommandBase()

RuleServiceDetailsCommandBase

public RuleServiceDetailsCommandBase(RuleServiceResourceProxy aRuleServiceResourceProxy)
Method Detail

createPersonalizationRuleServiceDetailsCommand

protected abstract PersonalizationRuleServiceDetailsCommand createPersonalizationRuleServiceDetailsCommand()
                                                                                                    throws ECException
Subclasses implement this to return the appropriate command instance.

doPerformExecute

protected void doPerformExecute()
                         throws ECException
Instantiates the command, sets it parameters, then executes it. All exceptions are propagated to the WCS command framework.
Overrides:
doPerformExecute in class RuleServiceAdministrationCommandBase

getNumberOfAgents

protected java.lang.Integer getNumberOfAgents()

getProjectPath

protected java.lang.String getProjectPath()

getSessionTimeout

protected java.lang.Long getSessionTimeout()

setNumberOfAgents

protected void setNumberOfAgents(java.lang.Integer newNumberOfAgents)

setProjectPath

protected void setProjectPath(java.lang.String newProjectPath)

setRequestProperties

public void setRequestProperties(TypedProperty reqProps)
                          throws ECApplicationException
Retrieves input parameters from the request properties.
Overrides:
setRequestProperties in class RuleServiceAdministrationCommandBase
Following copied from interface: com.ibm.commerce.command.ControllerCommand
Parameters:
requestProperties - com.ibm.commerce.datatype.TypedProperty
Throws:
com.ibm.commerce.exception.ECException. -  

setSessionTimeout

protected void setSessionTimeout(java.lang.Long newSessionTimeout)