com.ibm.commerce.price.commands
Class ResolvePriceListsCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.command.BusinessPolicyCommandImpl
                    |
                    +--com.ibm.commerce.price.commands.ResolvePriceListsCmdImpl
All Implemented Interfaces:
BusinessPolicyCommand, ECCommand, ResolvePriceListsCmd, TaskCommand

public class ResolvePriceListsCmdImpl
extends BusinessPolicyCommandImpl
implements ResolvePriceListsCmd

This ResolvePriceListsCmd Task Command Implementation retrieves the price lists referenced by each of the input price business policies.

If the command is successful in retreiving the price lists, it will return a list of price lists with their assciated business policies.

If unsuccessful, it wil return an empty list.

Behaviour

Resolve the reference number of the price lists referenced by the input list of price business policies.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl
policyId, requestProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.price.commands.ResolvePriceListsCmd
defaultCommandClassName, NAME
 
Constructor Summary
ResolvePriceListsCmdImpl()
           
 
Method Summary
 java.util.Hashtable getPolicyPriceLists()
          Returns a list of price business policies and their associated price lists.
 void performExecute()
          Executes main business logic of the command.
protected  void resolvePriceLists()
          Obtains the price list referenced by a list of input price business policies.
 void setPricePolicyABs(BusinessPolicyAccessBean[] aPricePolicyABs)
          Sets the input price business policy access beans for determining the price lists.
 void setRequestProperties(TypedProperty requestProperties)
          Sets the request properties for the policy.
 void validateParameters()
          Checks mandatory parameters.
 
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl
getPolicyId, getRequestProperties, setPolicyId
 
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.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId
 
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

ResolvePriceListsCmdImpl

public ResolvePriceListsCmdImpl()
Method Detail

getPolicyPriceLists

public java.util.Hashtable getPolicyPriceLists()
Returns a list of price business policies and their associated price lists.
Specified by:
getPolicyPriceLists in interface ResolvePriceListsCmd
Following copied from interface: com.ibm.commerce.price.commands.ResolvePriceListsCmd
Returns:
The list of price business policies and their associated price lists.

performExecute

public void performExecute()
                    throws ECException
Executes main business logic of the command.
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.

resolvePriceLists

protected void resolvePriceLists()
                          throws ECException
Obtains the price list referenced by a list of input price business policies.

setPricePolicyABs

public void setPricePolicyABs(BusinessPolicyAccessBean[] aPricePolicyABs)
Sets the input price business policy access beans for determining the price lists.
Specified by:
setPricePolicyABs in interface ResolvePriceListsCmd
Following copied from interface: com.ibm.commerce.price.commands.ResolvePriceListsCmd
Parameters:
aPricePolicyABs - The access beans of a list of price business policies.

setRequestProperties

public void setRequestProperties(TypedProperty requestProperties)
Sets the request properties for the policy.
Specified by:
setRequestProperties in interface BusinessPolicyCommand
Overrides:
setRequestProperties in class BusinessPolicyCommandImpl
Parameters:
requestProperties - the request properties for the policy

validateParameters

public void validateParameters()
                        throws ECException
Checks mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -