com.ibm.commerce.price.commands

Class ResolvePriceListsCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.command.BusinessPolicyCommandImpl
              • com.ibm.commerce.price.commands.ResolvePriceListsCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, ResolvePriceListsCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class ResolvePriceListsCmdImpl
    extends com.ibm.commerce.command.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 retrieving the price lists, it will return a list of price lists with their associated business policies.

    If unsuccessful, it will return an empty list.

    Behaviour

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

    This command calls the following TaskCommands:

    This command uses the following AccessBeans:
    • BusinessPolicyAccessBean
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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.
      void setPricePolicyABs(com.ibm.commerce.contract.objects.BusinessPolicyAccessBean[] aPricePolicyABs)
      Sets the input price business policy access beans for determining the price lists.
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
      Sets the request properties for the policy.
      void validateParameters()
      Checks mandatory parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl

        getPolicyId, getRequestProperties, setPolicyId
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand

        getPolicyId, getRequestProperties, setPolicyId
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
    • Field Detail

      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        Class name field.
        See Also:
        Constant Field Values
      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResolvePriceListsCmdImpl

        public ResolvePriceListsCmdImpl()
        constructor
    • 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
        Returns:
        price list hashtable
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Executes main business logic of the command.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
      • setPricePolicyABs

        public void setPricePolicyABs(com.ibm.commerce.contract.objects.BusinessPolicyAccessBean[] aPricePolicyABs)
        Sets the input price business policy access beans for determining the price lists.
        Specified by:
        setPricePolicyABs in interface ResolvePriceListsCmd
        Parameters:
        price - policies access beans
      • setRequestProperties

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty requestProperties)
        Sets the request properties for the policy.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.command.BusinessPolicyCommand
        Overrides:
        setRequestProperties in class com.ibm.commerce.command.BusinessPolicyCommandImpl
        Parameters:
        requestProperties - the request properties for the policy
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Checks mandatory parameters.
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException