com.ibm.commerce.collaboration.livehelp.commands

Class CCQueueAddCmdImpl

  • java.lang.Object
    • com.ibm.commerce.collaboration.livehelp.commands.CCQueueAddCmdImpl


  • public class CCQueueAddCmdImpl
    extends java.lang.Object
    Controller command to be used by Commerce Accelerator to create a new Customer Care Queue for the store This command is not intended for customization It uses QueueAccessBean to create a new Queue, and uses QueueDescAccessBean to create a new QueueDesc object, if either dispaly name or description has been specified. then it redirect to "DialogNavigation" view command to complete the command
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright info
    • Constructor Summary

      Constructors 
      Constructor and Description
      CCQueueAddCmdImpl()
      Constructor for CCQueueAddCmdImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      com.ibm.commerce.accesscontrol.AccessVector getResources()
      Gets the access vector accessed by this command.
      void performExecute()
      Contains the business logic for the command.
      void validateParameters()
      Validates the parameters expected in the request properties.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • CCQueueAddCmdImpl

        public CCQueueAddCmdImpl()
        Constructor for CCQueueAddCmdImpl
    • Method Detail

      • getResources

        public com.ibm.commerce.accesscontrol.AccessVector getResources()
                                                                 throws com.ibm.commerce.exception.ECException
        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 responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

        Returns:
        AccessVector - a vector of resource action pairs.
        Throws:
        com.ibm.commerce.exception.ECException - - if anything goes wrong with the resources being instantiated.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Contains the business logic for the command. It uses QueueAccessBean to create a new Queue, and uses QueueDescAccessBean to create a new QueueDesc object, if either dispaly name or description has been specified. then it redirect to "DialogNavigation" view command to complete the command
        Throws:
        com.ibm.commerce.exception.ECSystemException - Raised with message key : ECMessage._ERR_CREATE_EXCEPTION or ECMessage._ERR_FINDER_EXCEPTION or ECMessage._ERR_NAMING_EXCEPTION or ECMessage._ERR_REMOTE_EXCEPTION if anything goes wrong with the data resources being queried.
        com.ibm.commerce.exception.ECException
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Validates the parameters expected in the request properties. it also make sure queue name and display name does not existing in the system validated parameters are: storeId store Id (required) queueName queue name (required) langId language id (required) queueDisplayname queue display name (optional) queueDescription queue description (optional)
        Throws:
        com.ibm.commerce.exception.ECApplicationException - Raised with message key ECMessage._ERR_BAD_MISSING_CMD_PARAMETER if fails the validation, detailed error code can be found in UIProperties.SUBMIT_ERROR_STATUS
        com.ibm.commerce.exception.ECException