com.ibm.commerce.marketing.commands.ranking

Class AbstractGenerateRankingPolicyCmdImpl

  • All Implemented Interfaces:
    BusinessPolicyCommand, com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GenerateRankingPolicyCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
    Direct Known Subclasses:
    GenerateRankingPolicyCmdImpl


    public class AbstractGenerateRankingPolicyCmdImpl
    extends BusinessPolicyCommandImpl
    implements GenerateRankingPolicyCmd
    This is the abstract class to implement the GenerateRankingPolicyCmd interface. It implements the method performExecute and invokes the following methods to generate the ranking list:
    • preGenerate - perform any set up
    • generate - create the ranking list
    • postGenerate - update the ranking list if necessary
    • publishRanking - persist the ranking list to the DMRANKINGITEM database table
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • AbstractGenerateRankingPolicyCmdImpl

        public AbstractGenerateRankingPolicyCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method calls the following methods to generate the ranking list:
        • preGenerate - perform any set up
        • generate - create the ranking list
        • postGenerate - update the ranking list if necessary
        • publishRanking - persist the ranking list to the DMRANKINGITEM database table
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • getRanking

        public Ranking getRanking()
        This method returns the definition of the ranking list.
        Specified by:
        getRanking in interface GenerateRankingPolicyCmd
        Returns:
        The definition of the ranking list.
      • setRanking

        public void setRanking(Ranking newRanking)
        This method sets the definition of the ranking list.
        Specified by:
        setRanking in interface GenerateRankingPolicyCmd
        Parameters:
        newRanking - The definition of the ranking list.
      • getParameterProperties

        public TypedProperty getParameterProperties()
        This method returns the command parameters.
        Returns:
        The command parameters.
      • getRankingResult

        public java.util.Map getRankingResult()
        This method returns the map containing the ranking list.
        Specified by:
        getRankingResult in interface GenerateRankingPolicyCmd
        Returns:
        A map containing the ranking list.
      • setRankingResult

        public void setRankingResult(java.util.Map newRankingResult)
        This method sets the map containing the ranking list.
        Specified by:
        setRankingResult in interface GenerateRankingPolicyCmd
        Parameters:
        newRankingResult - A map containing the ranking list.