com.ibm.commerce.giftregistry.struts

Class GiftRegistryItemAddActionForm

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.commons.beanutils.DynaBean


    public class GiftRegistryItemAddActionForm
    extends GiftRegistryItemBaseActionForm
    This action form handles request data that adds gift registry items. This form by default assumes the following parameters must have indices. This is because sometimes existing JSP files may use , while other times, they use _.
    • partNumber - If a given partNumber is of form partNumber=10001, the form will normalize it to partNumber_1=10001
    • memberId - If a given memberId is of form memberId=10001, the form will normalize it to memberId_1=10001
    • quantity - If a given quantity is of form quantityId=10001, the form will normalize it to quantity_1=10001
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String CLASS_NAME
      the name of this class
      static java.lang.String COPYRIGHT
      IBM Copyright
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.Map updateMappingInput(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request, java.util.Map inMap)
      Updates the given input with possibly resolved partNumber and partAuxiliaryKey.
      • Methods inherited from class org.apache.struts.validator.DynaValidatorForm

        getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResults
      • Methods inherited from class org.apache.struts.action.DynaActionForm

        contains, get, get, get, getDynaClass, getMap, getString, getStrings, initialize, initialize, remove, reset, set, set, set, toString
      • Methods inherited from class org.apache.struts.action.ActionForm

        getMultipartRequestHandler, getServletWrapper, setMultipartRequestHandler, setServlet, validate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.apache.commons.beanutils.DynaBean

        contains, get, get, get, getDynaClass, remove, set, set, set
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
      • CLASS_NAME

        public static final java.lang.String CLASS_NAME
        the name of this class
    • Constructor Detail

      • GiftRegistryItemAddActionForm

        public GiftRegistryItemAddActionForm()
    • Method Detail

      • updateMappingInput

        public java.util.Map updateMappingInput(org.apache.struts.action.ActionMapping mapping,
                                                javax.servlet.http.HttpServletRequest request,
                                                java.util.Map inMap)
                                         throws ECException
        Updates the given input with possibly resolved partNumber and partAuxiliaryKey. An item to be added can not have a part number, but have a catentryId with optionally a list of attributes (if the catentryId is for a product). In this case, the catentryId with attributes will be resolved to its corresponding catalog entry item. The partNumber and memberId will then be retrieved and put back to the input map. This form handles only indexed parameters for partnumber, memberId, and quantity. However, a JSP file may mix the use of indexed and indexless parameters. This command will normalize the aforementioned parameter with an index. That is, if a parameter is of form , it will become _1.
        Overrides:
        updateMappingInput in class GiftRegistryItemBaseActionForm
        Parameters:
        mapping - the ActionMapping that is used by this action.
        request - the HTTP request handled by this action
        inMap - the input that will be feeded to a ServiceMapper. The mappingInput will contain all the parameters that come from the current HTTP request. Feel free to add/update/delete entries in this given input. The original set of the HTTP request parameters will not be polluted (that is, no clone operation needs to be done on the given input).
        Returns:
        a map that contains all the given mapping input plus any changes to the mapping made by this method
        Throws:
        ECException - thrown when the updating fails.
        See Also:
        GiftRegistryBaseValidatorActionForm.updateMappingInput(ActionMapping, HttpServletRequest, Map)