com.ibm.commerce.store.commands

Class AdminBroadcastMessageCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.ControllerCommandImpl
            • com.ibm.commerce.store.commands.AdminBroadcastMessageCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.security.Protectable, AdminBroadcastMessageCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class AdminBroadcastMessageCmdImpl
    extends com.ibm.commerce.command.ControllerCommandImpl
    implements AdminBroadcastMessageCmd
    The default implementation of AdminBroadcastMessageCmd.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performExecute()
      Main business logic for the class.
      void setMessageContent(java.lang.String astrMessageContent)
      Set the message content.
      void setMessageProperties(com.ibm.commerce.datatype.TypedProperty aMessageProperties)
      Set the message properties.
      void setMessageTypeName(java.lang.String astrMessageTypeName)
      Set the message type name.
      void setRecipient(java.lang.String astrRecipient)
      Set the email addresses of the additional recipients.
      void setSender(java.lang.String astrSender)
      Set the sender of the message.
      void setSendImmediate(boolean abSendImmediate)
      Set the delivery method of the broadcast message.
      void setSubject(java.lang.String astrSubject)
      Set the subject of the message.
      void setTargetStoreStates(java.util.Vector avTargetStoreStates)
      Set the states of the stores that will be targetted with this broadcast message.
      void validateParameters()
      Validate the mandatory parameters for this command.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl

        checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.command.ControllerCommand

        checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
      • Methods inherited from interface com.ibm.commerce.command.AccCommand

        accessControlCheck, getForUserId, getResourceOwners, setForUserId, setOwner
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.security.Protectable

        fulfills, getOwner
    • Field Detail

      • COPYRIGHT

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

      • AdminBroadcastMessageCmdImpl

        public AdminBroadcastMessageCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Main business logic for the class.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - The exception
      • setMessageContent

        public void setMessageContent(java.lang.String astrMessageContent)
        Set the message content.
        Parameters:
        astrMessageContent - The message content
      • setMessageProperties

        public void setMessageProperties(com.ibm.commerce.datatype.TypedProperty aMessageProperties)
        Set the message properties.
        Parameters:
        aMessageProperties - The request properties
      • setMessageTypeName

        public void setMessageTypeName(java.lang.String astrMessageTypeName)
        Set the message type name.
        Parameters:
        astrMessageTypeName - The message type name
      • setRecipient

        public void setRecipient(java.lang.String astrRecipient)
        Set the email addresses of the additional recipients.
        Parameters:
        astrRecipient - The email addresses of the additional number of recipients.
      • setSender

        public void setSender(java.lang.String astrSender)
        Set the sender of the message.
        Parameters:
        astrSender - The sender of the message
      • setSendImmediate

        public void setSendImmediate(boolean abSendImmediate)
        Set the delivery method of the broadcast message.
        Parameters:
        abSendImmediate - The delivery method of the broadcast message.
      • setSubject

        public void setSubject(java.lang.String astrSubject)
        Set the subject of the message.
        Parameters:
        astrSubject - The subject of the message.
      • setTargetStoreStates

        public void setTargetStoreStates(java.util.Vector avTargetStoreStates)
        Set the states of the stores that will be targetted with this broadcast message.
        Parameters:
        avTargetStoreStates - The states of the target stores for this broadcast message.
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Validate the mandatory parameters for this command. Must have either a message type or message content specified. Must have a recipient or targetStoreStates specified.
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - The exception