com.ibm.commerce.giftregistry.struts

Class GiftRegistryLogoffActionForm

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


    public class GiftRegistryLogoffActionForm
    extends GiftRegistryBaseValidatorActionForm
    This action form prepares request data that removes users from accessing gift registries, so that they can log off.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      MappingResult getServiceMappingResult(org.apache.struts.action.ActionMapping mapping, java.util.Map inMap, javax.servlet.http.HttpServletRequest request)
      Returns a MappingResult object that is corresponding to the given name value pairs.
      java.lang.String getURL()
      The get URL
      void setURL(java.lang.String string)
      Sets the success URL view
      org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      Validates the input of the GiftRegistryAuthenticationBaseActionForm and sets the URL for redirection after logging off.
      • 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

      • GiftRegistryLogoffActionForm

        public GiftRegistryLogoffActionForm()
    • Method Detail

      • setURL

        public void setURL(java.lang.String string)
        Sets the success URL view
        Parameters:
        string - - the success URL view
      • getURL

        public java.lang.String getURL()
        The get URL
        Returns:
        URL
      • getServiceMappingResult

        public MappingResult getServiceMappingResult(org.apache.struts.action.ActionMapping mapping,
                                                     java.util.Map inMap,
                                                     javax.servlet.http.HttpServletRequest request)
                                              throws ECException
        Returns a MappingResult object that is corresponding to the given name value pairs. The MappingResult will contain the name of a GC1 service, and the service input document, which is instance of BusinessObjectDocument.
        Overrides:
        getServiceMappingResult in class GiftRegistryBaseValidatorActionForm
        Parameters:
        mapping - the ActionMapping used by this action
        map - the input data of a request. Each entry in the map is of the form key: Object[]. For example, if a name-value pair in a request query is lastName = Smith, then the corresponding entry in the inMap is lastName->[Smith]. If the query is orderItemId=1&orderItemId=2&orderItemId=3, then the query is orderItemId->[1, 2, 3]
        request - the request object that represents the current request for which this action is called
        Returns:
        The service request information that is mapped from the given request. If there is no corresponding request found, an empty MappingResult will be returned.
        Throws:
        ECException - if the conversion from the map to the BOD fails
      • validate

        public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
        Validates the input of the GiftRegistryAuthenticationBaseActionForm and sets the URL for redirection after logging off.
        Overrides:
        validate in class GiftRegistryBaseValidatorActionForm
        Parameters:
        mapping - - action mapping
        request - - Http servlet request
        Returns:
        ActionErrors