com.ibm.commerce.interestitems.commands

Class InterestItemListDeleteCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The fully qualified name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InterestItemListDeleteCmdImpl

        public InterestItemListDeleteCmdImpl()
        No value constructor.
    • Method Detail

      • getResources

        public AccessVector getResources()
                                  throws ECException
        Description copied from class: AbstractECTargetableCommand
        This method gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibility of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.
        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        This method returns an AccessVector object of resource/action pairs.
        Throws:
        ECException
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Description copied from class: AbstractECTargetableCommand
        This method is called by the targetable command framework. This is where client side parameter checking is performed (before the execution of the command). The default implementation is to return true.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        This method returns a boolean value; true if we can execute the command and false otherwise. This default implementation will return true.
      • reset

        public void reset()
        Description copied from class: AbstractECTargetableCommand
        This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setListId

        public void setListId(java.lang.String[] asaListId)
        Specifies zero or more interest item lists to be deleted. In addition to interest item list reference numbers it can be specified as one of the special abbreviations ".", "*". Sets the interest item list ID parameters (optional with default "."). If "." is specified, the GetCurrentIILists process task is invoked to obtain the shopper's current interest item lists. The command behaves as if the current interest item lists were specified. If GetCurrentIILists process task determines that there are no current interest item lists; the most recently updated item interest item list is used. If "*" is specified, the command behaves as if all shopper's interest item lists were specified. If a specified interest item list no longer exists, it is not deleted.
        Specified by:
        setListId in interface InterestItemListDeleteCmd
        Parameters:
        asaListId - the ListId
      • setListIdName

        public void setListIdName(java.lang.String[] asaListIdName)
        Specifies the names of name-value pairs to be added to the redirection URL. The values of the added name-value pairs are the reference numbers of the interest lists specified by ListId This is provided to make it possible to obtain the reference numbers of the interest lists when ListId is not explicitly specified.
        Specified by:
        setListIdName in interface InterestItemListDeleteCmd
        Parameters:
        asaListIdName - the array of names