com.ibm.commerce.experimentation.commands

Interface MigrateExperimentResultCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    MigrateExperimentResultCmdImpl


    public interface MigrateExperimentResultCmd
    extends TaskCommand
    This command is used to migrate experiment results. By default, this command is invoked when a customer logs on to the site, and the experiment result that is associated with the current session is migrated and associated with the customer. By doing this, the content generated by the experiment remains the same after the customer logs on. This is required if the persistency of the experiment result is scoped to the lifetime of the experiment.
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        defaultCommandClassName is the default implementation class used by the command factory to instantiate this command if the interface com.ibm.commerce.experimentation.commands.MigrateExperimentResultCmd is not defined in the CMDREG table.
        See Also:
        Constant Field Values
    • Method Detail

      • setSessionId

        void setSessionId(java.lang.String sessionId)
        This method sets the ID of the session that the experiment results are associated with.
        Parameters:
        sessionId - The ID of the session.
      • setOldUserId

        void setOldUserId(java.lang.Long oldUserId)
        This method sets the old ID of the user who owns the experiment results before the user logged on.
        Parameters:
        userId - The old ID of the user.
      • setUserId

        void setUserId(java.lang.Long userId)
        This method sets the ID of the user who owns the experiment results.
        Parameters:
        userId - The ID of the user.