com.ibm.commerce.promotion.facade.server.commands

Class FetchPromotionCmdImpl

    • Constructor Summary

      Constructors 
      Constructor and Description
      FetchPromotionCmdImpl()
      Create an instance of the fetch noun command that uses the business object manager to execute the search expression.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List getPromotions()
      This method returns a list of Promotions that result because of the fetch operation.
      static java.lang.Boolean isListOnlyPromotionsNotInFolders()
      A get method to return the value of config flag which determines all promotions get displayed on the main list (default) or only display the ones not already in folder in the main list
      void performExecute()
      This method gets the XPath parameter for CouponRequired from the search expression and maps the 'true' value to '1' and the 'false' value to 0.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Field Detail

      • COPYRIGHT

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

      • FetchPromotionCmdImpl

        public FetchPromotionCmdImpl()
        Create an instance of the fetch noun command that uses the business object manager to execute the search expression.
    • Method Detail

      • isListOnlyPromotionsNotInFolders

        public static java.lang.Boolean isListOnlyPromotionsNotInFolders()
        A get method to return the value of config flag which determines all promotions get displayed on the main list (default) or only display the ones not already in folder in the main list
        Returns:
        returns the value of listOnlyPromotionsNotInFolders flag set by config
      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method gets the XPath parameter for CouponRequired from the search expression and maps the 'true' value to '1' and the 'false' value to 0. It then calls the super.performExecute() method.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractFetchNounUsingBusinessObjectMediatorCmdImpl
        Throws:
        java.lang.Exception - if an exception is encountered while invoking the business object manager to execute the request