com.ibm.commerce.orderquotation.commands

Class OrderQuotationDisplayCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderQuotationDisplayCmd, 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 OrderQuotationDisplayCmdImpl
    extends ControllerCommandImpl
    implements OrderQuotationDisplayCmd
    This is the default implementation of the OrderQuotationDisplayCmd controller command.

    Parameter values

    orderQuotationRelId
    Specifies the ID of the OrderQuotationRel objects to be checked. The default value of this parameter is "*initial*parent.", an OrderQuotationRel abbreviation specifying all of the OrderQuotationRel objects. The objects are those whose types are "initial" and whose parents are one of the current pending orders for the current user. (OrderQuotationRel abbreviations are described in more detail in the help for Order Management subsystem URLs.) This parameter can be repeated.
    viewName
    The valid value is the name of a view in the Struts configuration file. The default value is OrderQuotationDisplayView. The name of the view must start with `OrderQuotationDisplay. It prevents a malicious user from executing an arbitrary view while allowing a store developer to define as many views as may be required.
    outOrderQuotationRelIdName
    Specifies the list of name value pairs that should be provided to the View. The values of the name-value pairs are the identifiers of the OrderQuotationRel objects whose parent and child orders should be displayed.

    Behavior

    • Populates databeans for the specified OrderQuotationRel objects, and the parent and child orders they reference.
    • Sets the specified view.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • OrderQuotationDisplayCmdImpl

        public OrderQuotationDisplayCmdImpl()
        Constructor for OrderQuotationDisplayCmdImpl.
    • Method Detail

      • reset

        public void reset()
        Resets the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setOrderQuotationRelAbbreviations

        public void setOrderQuotationRelAbbreviations(java.lang.String[] astrOrderQuotationRelAbbreviations)
        Sets the OrderQuotationRel objects whose quotation Orders should be displayed.
        Specified by:
        setOrderQuotationRelAbbreviations in interface OrderQuotationDisplayCmd
        Parameters:
        astrOrderQuotationRelAbbreviations - the OrderQuotationRel abbreviations. Default is new String[] { "*parent." }.
      • setViewName

        public void setViewName(java.lang.String astrViewName)
        Sets the View to be invoked. The name of the View must start with "OrderQuotationDisplay". It prevents a malicious user from executing an arbitrary View while allowing a Store developer to define as many Views as may be required.
        Specified by:
        setViewName in interface OrderQuotationDisplayCmd
        Parameters:
        astrViewName - the view name. Default is "OrderQuotationDisplayView".
      • setOutOrderQuotationRelIdNames

        public void setOutOrderQuotationRelIdNames(java.lang.String[] astrOutOrderQuotationRelIdNames)
        Sets the names of name value pairs that should be provided to the View. The values of the added name value pairs are the identifiers of the OrderQuotationRel objects whose parent and child Orders should be displayed.
        Specified by:
        setOutOrderQuotationRelIdNames in interface OrderQuotationDisplayCmd
        Parameters:
        astrOutOrderQuotationRelIdNames - the names of the output orderQuotationRelId name-value pairs. Default is new String[] { "orderQuotationRelId" }.
      • getResources

        public AccessVector getResources()
                                  throws ECException
        Gets the vector of resources accessed by this command.
        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        The vector of resource action pairs - none.
        Throws:
        ECSystemException - Raised with message _ERR_CREATE_EXCEPTION if there is a javax.ejb.CreateException, _ERR_FINDER_EXCEPTION if there is a javax.ejb.FinderException, _ERR_NAMING_EXCEPTION if there is a javax.naming.NamingException, _ERR_REMOTE_EXCEPTION if there is a java.rmi.RemoteException.
        ECException