com.ibm.commerce.negotiation.commands

Class DeleteMailCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, DeleteMailCmd, Protectable, 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


    public class DeleteMailCmdImpl
    extends ControllerCommandImpl
    implements DeleteMailCmd
    Deletes a list of messages from a member's Mail. This command calls the following TaskCommands:
    • ApplyCalculationUsageCmd
    This command uses the following AccessBeans:
    • OrderItemAccessBean
    • TradingAgreementAccessBean
    • TermConditionAccessBean
    • BusinessPolicyAccessBean
    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

      • DeleteMailCmdImpl

        public DeleteMailCmdImpl()
        DeleteMailImpl constructor.
    • Method Detail

      • getMsgId

        public java.lang.String[] getMsgId()
        This method returns the Message Reference number which has to be deleted. getMessageId Accessor method for member field.
        Returns:
        java.lang.Long
      • getUrl

        public java.lang.String getUrl()
        Fetches the url.
        Returns:
        java.lang.String
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Verifies that the this command is ready to be executed.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        boolean true if command is ready, otherwise false.
      • setMsgId

        public void setMsgId(java.lang.String[] newMsgId)
        Sets message ID list for deletion .
        Parameters:
        newMsgId -
      • setUrl

        public void setUrl(java.lang.String newUrl)
        Sets the url.
        Parameters:
        newUrl - java.lang.String
      • setUserId

        public void setUserId(java.lang.Long newUserId)
        Sets the user ID.
        Parameters:
        newUserId - java.lang.Long