com.ibm.commerce.giftregistry.struts

Class GiftRegistryItemBaseActionForm

    • 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 map with resolved item personalization attributes.
      org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Validates the given request properties, making sure URL, externalId, and quantity are mandatory
      • 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
    • Constructor Detail

      • GiftRegistryItemBaseActionForm

        public GiftRegistryItemBaseActionForm()
    • Method Detail

      • validate

        public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
        Validates the given request properties, making sure URL, externalId, and quantity are mandatory
        Overrides:
        validate in class GiftRegistryBaseValidatorActionForm
        Parameters:
        mapping - The mapping used to select this instance
        request - The servlet request to be processed
        Returns:
        ActionErrors
      • 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 map with resolved item personalization attributes.
        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)