com.ibm.commerce.rules.commands
Class ChangePersonalizationRuleServiceCommandJitImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.rules.commands.PersonalizationRuleServiceCommandBase
                    |
                    +--com.ibm.commerce.rules.commands.PersonalizationRuleServiceDetailsCommandBase
                          |
                          +--com.ibm.commerce.rules.commands.ChangePersonalizationRuleServiceCommandJitImpl
All Implemented Interfaces:
ChangePersonalizationRuleServiceCommand, ECCommand, PersonalizationRuleServiceCommand, PersonalizationRuleServiceDetailsCommand, TaskCommand

public class ChangePersonalizationRuleServiceCommandJitImpl
extends PersonalizationRuleServiceDetailsCommandBase
implements ChangePersonalizationRuleServiceCommand

A "just-in-time" implementation of ChangePersonalizationRuleServiceCommand. The rule service configuration change will not affect the rule service until the next time it is invoked.


Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.rules.commands.PersonalizationRuleServiceCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
ChangePersonalizationRuleServiceCommandJitImpl()
           
ChangePersonalizationRuleServiceCommandJitImpl(RulesSystemDataModel aRulesSystemDataModel)
           
ChangePersonalizationRuleServiceCommandJitImpl(java.lang.String aPersonalizationRuleServerName, RulesSystemDataModel aRulesSystemDataModel)
           
 
Method Summary
protected  void checkParameters()
          Performs server side parameter checking.
protected  void doPerformExecute()
          Changes the rule service configuration in the data model.
protected  RuleServiceConfiguration getRuleServiceConfiguration()
          Retrieves the rule service configuration matching the input parameters.
 
Methods inherited from class com.ibm.commerce.rules.commands.PersonalizationRuleServiceDetailsCommandBase
getAgents, getEnabled, getProjectPath, getSessionTimeout, reset, setAgents, setEnabled, setProjectPath, setRuleServiceConfigurationProperties, setSessionTimeout
 
Methods inherited from class com.ibm.commerce.rules.commands.PersonalizationRuleServiceCommandBase
doCheckParameter, getDefaultPersonalizationRuleServerName, getDefaultRulesSystemDataModel, getPersonalizationRuleServerName, getRuleServiceKey, getRulesSystemDataModel, getServiceName, performExecute, setServiceName, unsetParameters, validateParameters
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, 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.rules.commands.PersonalizationRuleServiceDetailsCommand
setAgents, setEnabled, setProjectPath, setSessionTimeout
 
Methods inherited from interface com.ibm.commerce.rules.commands.PersonalizationRuleServiceCommand
setServiceName
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Constructor Detail

ChangePersonalizationRuleServiceCommandJitImpl

public ChangePersonalizationRuleServiceCommandJitImpl()
See Also:
PersonalizationRuleServiceCommandBase

ChangePersonalizationRuleServiceCommandJitImpl

public ChangePersonalizationRuleServiceCommandJitImpl(RulesSystemDataModel aRulesSystemDataModel)
See Also:
PersonalizationRuleServiceCommandBase

ChangePersonalizationRuleServiceCommandJitImpl

public ChangePersonalizationRuleServiceCommandJitImpl(java.lang.String aPersonalizationRuleServerName,
                                                      RulesSystemDataModel aRulesSystemDataModel)
See Also:
PersonalizationRuleServiceCommandBase
Method Detail

checkParameters

protected void checkParameters()
                        throws ECException
Description copied from class: AbstractECCommand
Performs server side parameter checking. This method is replaced by the validateParameters() method in this current release. Command writers should NOT implement this method but implement validateParameters() instead. The default implementation of checkParameters is just a no op.

Overrides:
checkParameters in class AbstractECCommand
Following copied from class: com.ibm.commerce.command.AbstractECCommand
Throws:
ECException. -  

doPerformExecute

protected void doPerformExecute()
                         throws ECException
Changes the rule service configuration in the data model.
Overrides:
doPerformExecute in class PersonalizationRuleServiceCommandBase
See Also:
PersonalizationRuleServiceCommandBase

getRuleServiceConfiguration

protected RuleServiceConfiguration getRuleServiceConfiguration()
                                                        throws ParameterNotFoundException
Retrieves the rule service configuration matching the input parameters. Changes the project path and other properties as set in the input parameters. Neither the rule server name nor rule service name is changed.
Overrides:
getRuleServiceConfiguration in class PersonalizationRuleServiceDetailsCommandBase
See Also:
PersonalizationRuleServiceDetailsCommandBase