com.ibm.commerce.tools.experimentation.commands

Class ExperimentCompleteControllerCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • ExperimentCompleteControllerCmdImpl

        public ExperimentCompleteControllerCmdImpl()
    • Method Detail

      • validateParameters

        public void validateParameters()
                                throws ECException
        Parses and validates the parameters passed to this controller command. The following parameters are valid:
        • experimentId - The experiment ID.
        • preferredElementId - The ID of the preferred element of the given experiment.
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - Thrown when an exception occurred while this method attempted to retrieve all of the required parameters from the request object.
        See Also:
        ECCommand#validateParameters()
      • getResources

        public AccessVector getResources()
                                  throws ECException
        Gets the resources that are accessed by this controller command. Returns the experiment access bean for the specified experiment ID.
        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        A vector of resources.
        Throws:
        ECException - Thrown when an exception occurred while this method attempted to retrieve the experiment access bean for the specified experiment ID.
        See Also:
        ECCommand#getResources()
      • performExecute

        public void performExecute()
                            throws ECException
        The performExecute method is called to when the Marketing Manager asks to complete the experiment by updating the status and populates the preferred element field.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - Thrown when an exception occurred while this method attempted to update the status and preferred element fields for the given experiment.
        See Also:
        ECCommand#performExecute()