com.ibm.commerce.rules.commands
Class ConfigureRuleServerCommandImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.rules.commands.ConfigureRuleServerCommandImpl
All Implemented Interfaces:
ConfigureRuleServerCommand, ECCommand, TaskCommand
Direct Known Subclasses:
ConfigureRuleServerCommandNoDatabaseImpl

public class ConfigureRuleServerCommandImpl
extends TaskCommandImpl
implements ConfigureRuleServerCommand

Default implementation of ConfigureBlazeRulesSystem.

Behavior:

  1. Retrieve the server configuration information from the database for the specified server. Indicate through an exception if the server is not found.
  2. Retrieve all the service configurations corresponding to the specified server.
  3. Build the appropriate objects to represent that information.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.rules.commands.ConfigureRuleServerCommand
defaultCommandClassName, NAME
 
Constructor Summary
ConfigureRuleServerCommandImpl()
           
 
Method Summary
 com.ibm.commerce.rules.commands.BlazeRuleServerConfiguration getBlazeRuleServerConfiguration()
           
protected  java.lang.String getServerName()
           
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
protected  boolean ruleServerExists()
           
 void setServerName(java.lang.String newServerName)
           
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

ConfigureRuleServerCommandImpl

public ConfigureRuleServerCommandImpl()
Method Detail

getBlazeRuleServerConfiguration

public com.ibm.commerce.rules.commands.BlazeRuleServerConfiguration getBlazeRuleServerConfiguration()
Specified by:
getBlazeRuleServerConfiguration in interface ConfigureRuleServerCommand

getServerName

protected java.lang.String getServerName()

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

ruleServerExists

protected boolean ruleServerExists()

setServerName

public void setServerName(java.lang.String newServerName)
Specified by:
setServerName in interface ConfigureRuleServerCommand

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -